diff --git a/src/app/debugger/debugger.component.html b/src/app/debugger/debugger.component.html index 5b504209..ba8cddca 100644 --- a/src/app/debugger/debugger.component.html +++ b/src/app/debugger/debugger.component.html @@ -32,7 +32,7 @@ (click)="config.set('pollType' , 'classic')" [class.active]="config.pollType == 'classic'" [disabled]="!formIsValid" - class="btn btn-primary next" + class="btn btn--primary next" > sondage classique @@ -46,7 +46,7 @@ (click)="selectOption('pollType' ,'dates')" [class.active]="config.pollType == 'dates'" [disabled]="!formIsValid" - class="btn btn-primary next" + class="btn btn--primary next" > sondage spécial date @@ -58,7 +58,7 @@ -

-
-
-
- - -

+
-

- Warning, in the mockups, some buttons have different paddings.
- Example: "Copier le lien" has smaller paddings, maybe a `btn_small` class could do the job, to check. -

+ + +
+ + + primary - outline - default + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +

+ + + + + + + + diff --git a/src/app/pages/pictures/pictures.component.html b/src/app/pages/pictures/pictures.component.html index ab6dd725..ddd7b9f9 100644 --- a/src/app/pages/pictures/pictures.component.html +++ b/src/app/pages/pictures/pictures.component.html @@ -2,5 +2,5 @@

Images

-ok +ok diff --git a/src/app/pages/resume/resume.component.html b/src/app/pages/resume/resume.component.html index 608a4299..1cc9fdc1 100644 --- a/src/app/pages/resume/resume.component.html +++ b/src/app/pages/resume/resume.component.html @@ -7,4 +7,4 @@ {{config |json}} - + diff --git a/src/app/pages/visibility/visibility.component.html b/src/app/pages/visibility/visibility.component.html index 43317d13..ec5df6f9 100644 --- a/src/app/pages/visibility/visibility.component.html +++ b/src/app/pages/visibility/visibility.component.html @@ -11,4 +11,4 @@

Accès au sondage

-C'est parfait! +C'est parfait! diff --git a/src/assets/scss/atoms/_buttons.scss b/src/assets/scss/atoms/_buttons.scss index 4c629dbe..d03435f0 100644 --- a/src/assets/scss/atoms/_buttons.scss +++ b/src/assets/scss/atoms/_buttons.scss @@ -1,55 +1,47 @@ @charset "UTF-8"; -button, -input[type="submit"] { - padding-right: 1.5rem; - padding-left: 1.5rem; - font-size: 1.6rem; - line-height: 1; - background-color: #fff; - border: 2px solid $primary_color; - border-radius: 0.3rem; -font-family: $default_font; - font-weight: 600; - - &.btn_background { - padding-top: 1rem; - padding-bottom: 1rem; - font-weight: 600; - background-color: $primary_color; - - &:hover { - background-color: $secondary_color; - border-color: $secondary_color; +@mixin btnTheme ($color) { + background-color: $color; + color: $white; + &.btn--outline { + background-color: transparent; + border-color: $color; + color: $font-color; } - - &.btn_delete { - color: #fff; - background-color: $red; - - &:hover { - color: $red; - background-color: #fff; - } + &:focus, + &:hover, + &:active { + background-color: rgba($color, .8); + &.btn--outline { + background-color: rgba($color, .2); + } } - &.btn_white_text{ - color:$white; - } - } - - &.btn_border { - padding-top: 0.8rem; - padding-bottom: 0.8rem; - - &:hover { - background-color: rgba($primary_color, 0.2); - } - } - - &.btn_delete { - &, - &:hover { - border-color: $red; - } - } } + +.btn { + margin: .5rem 0; + padding: 1rem 1.5rem; + font-size: 1.6rem; + line-height: normal; + border: .2rem solid transparent; + border-radius: .3rem; + font-weight: normal; + + &--primary { + @include btnTheme($primary_color); + } + + &--alert { + @include btnTheme($red); + } + + &--small { + padding: .75rem 1.25rem; + } + + &--full { + display: block; + min-width: 100%; + } + +} \ No newline at end of file