]> git.parisson.com Git - mezzo.git/commitdiff
Add brief box styles implementation (grey, yellow and black)
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Fri, 21 Oct 2016 15:54:27 +0000 (17:54 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Fri, 21 Oct 2016 15:54:27 +0000 (17:54 +0200)
app/static/src/sass/modules/boxes/_brief-box.scss
app/templates/magazine/brief/inc/brief_card.html

index f3e251fa95428a5a04ae80cb67a44fc444ab5203..853c509b0d085c425712d44d7fc25f350b5a2146 100644 (file)
@@ -62,6 +62,36 @@ $module: ".brief-box";
         @extend .button--small;
 
         @include margin-bottom(5);
+        margin-right: 0;
+
+    }
+
+    &--black {
+
+        background: $color-black;
+
+        #{$module}__title {
+            color: white;
+        }
+        #{$module}__desc {
+            color: white;
+        }
+
+    }
+
+    &--yellow {
+
+        background: $color-main;
+
+        #{$module}__title {
+            color: $color-black;
+        }
+        #{$module}__desc {
+            color: $color-black;
+        }
+        #{$module}__button {
+            @extend .button--black;
+        }
 
     }
 
index 2953f9697ec65fd69b1bdaedff0bfce94b3416b1..e0eca2261b9404acf54d5298d8f4b86025a2d3e4 100644 (file)
@@ -1,8 +1,7 @@
 {% load i18n mezzanine_tags %}
 
-<div class="brief-box">
-    {{ content.content_object.style }}
-
+<div class="brief-box brief-box--{{ content.content_object.style }}">
+    
     <div class="brief-box__head">
         {% trans 'Brief !' %}
     </div>