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 @@
diff --git a/src/app/pages/answers/answers.component.html b/src/app/pages/answers/answers.component.html
index a8d31a85..ce775fd6 100644
--- a/src/app/pages/answers/answers.component.html
+++ b/src/app/pages/answers/answers.component.html
@@ -21,7 +21,7 @@
@@ -30,7 +30,7 @@
Voyons ce que ça donne
diff --git a/src/app/pages/base-page/base.component.html b/src/app/pages/base-page/base.component.html
index 3194aac9..a864ed80 100644
--- a/src/app/pages/base-page/base.component.html
+++ b/src/app/pages/base-page/base.component.html
@@ -1,2 +1,2 @@
Ce composant est celui de base pour les pages
-C'est parfait!
+C'est parfait!
diff --git a/src/app/pages/create-or-retrieve/create-or-retrieve.component.html b/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
index 319bab73..10bb98ed 100644
--- a/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
+++ b/src/app/pages/create-or-retrieve/create-or-retrieve.component.html
@@ -11,7 +11,7 @@
diff --git a/src/app/pages/dates/dates.component.html b/src/app/pages/dates/dates.component.html
index 6670e93d..6e7196e1 100644
--- a/src/app/pages/dates/dates.component.html
+++ b/src/app/pages/dates/dates.component.html
@@ -24,7 +24,7 @@
@@ -52,7 +52,7 @@
C'est parfait!
diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html
index f9f27499..c9bd2bcf 100644
--- a/src/app/pages/home/home.component.html
+++ b/src/app/pages/home/home.component.html
@@ -74,7 +74,7 @@
Continuer
diff --git a/src/app/pages/kind/kind.component.html b/src/app/pages/kind/kind.component.html
index a826fdb7..28c58b03 100644
--- a/src/app/pages/kind/kind.component.html
+++ b/src/app/pages/kind/kind.component.html
@@ -1,7 +1,7 @@
page de démo
cette étape est en cours de développement. S'inspirer de la page de Home pour réaliser d'autres pages
-C'est parfait!
+C'est parfait!
Atoms
@@ -33,26 +33,67 @@
Buttons
-
-
-
-
-
-
-
+
+ primary - default
+
-
- Button with border
- Button with background
- Button delete with background
- Button delete with background
- Button with background and white text
-
+
-
- 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 - small
+
+
+
+
+
+ primary - outline - default
+
+
+
+
+
+ primary - outline - small
+
+
+
+
+
+
+
+
+
+ alert - small
+
+
+
+
+
+ alert - outline - default
+
+
+
+
+
+ alert - outline - small
+
+
+
+
+
+ primary - full
+
+
+
+ primary - outline - full
+
+
+
+ alert - full
+
+
+
+ alert - outline - full
+
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}}
-C'est parfait!
+C'est parfait!
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