]> git.parisson.com Git - mezzo.git/commitdiff
Add a white button style
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Tue, 20 Sep 2016 08:21:33 +0000 (10:21 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Tue, 20 Sep 2016 08:21:33 +0000 (10:21 +0200)
app/static/src/sass/global/_buttons.scss
app/static/src/sass/global/_wysiwyg.scss

index 393df9bece7e224b33769eece2837f91820f371d..fe9b8d021b11a02c3e36fa66327cfff58a39acfc 100755 (executable)
@@ -41,6 +41,18 @@ $module: ".button";
 
     }
 
+    &--white {
+
+        background-color: white;
+        color: $color-black;
+
+        &:hover {
+            background-color: $color-black;
+            color: white;
+        }
+
+    }
+
     &--small {
         @include font-size(m);
         @include padding(.18 1);
index eb7318fbe7f14f2334c18923304b226573abc55c..9872880bca6c653fa8ef6448f81bc46a4013b361 100644 (file)
@@ -91,3 +91,53 @@ a.wys-button-black-xsmall {
     @include margin(1);
 
 }
+
+a.wys-button-white {
+
+    @extend .button;
+    @extend .button--white;
+
+    .page__block--black & {
+        color: $color-black;
+        &:hover {
+            color: white;
+        }
+    }
+
+    @include margin(1);
+
+}
+
+a.wys-button-white-small {
+
+    @extend .button;
+    @extend .button--white;
+    @extend .button--small;
+
+    .page__block--black & {
+        color: $color-black;
+        &:hover {
+            color: white;
+        }
+    }
+
+    @include margin(1);
+
+}
+
+a.wys-button-white-xsmall {
+
+    @extend .button;
+    @extend .button--white;
+    @extend .button--xsmall;
+
+    .page__block--black & {
+        color: $color-black;
+        &:hover {
+            color: white;
+        }
+    }
+
+    @include margin(1);
+
+}