]> git.parisson.com Git - mezzo.git/commitdiff
Fix some block margins
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Thu, 15 Sep 2016 12:07:17 +0000 (14:07 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Thu, 15 Sep 2016 12:07:17 +0000 (14:07 +0200)
app/static/src/sass/modules/_page.scss
app/templates/core/inc/block.html

index a47d19c8d381f02a9296f6a9c42d5ff7a23f9ebe..0b52dd4d4e5659cc3e27b6dd21442c31cd32c7eb 100644 (file)
@@ -79,12 +79,20 @@ $module: ".page";
             background-color: $color-main;
             @include padding-top(2);
             @include padding-bottom(2);
-            @include margin(2 0);
+            @include margin(2 0 0 0);
 
             h2:first-child {
                 margin-top: 0;
             }
 
+            & + hr {
+                margin-top: 1px;
+            }
+
+            & + .page__block {
+                @include margin-top(2);
+            }
+
         }
 
         &--black {
index 92ed63b1d6f5cb0acb65dd409b9e5b81f507b03e..0a0985f8a81d1ea22120514993a8d52f8e9c6e8e 100644 (file)
@@ -1,6 +1,6 @@
 {% load i18n mezzanine_tags keyword_tags pages_tags organization_tags %}
 {% if blocks %}
-    <div class="white-bg pb2 ">
+    <div class="white-bg pb2">
         <hr class="mt0" />
         {% for block in blocks %}
             {% if not forloop.first and block.with_separator %}