From b5ff77f6d641bfa7a51d4563aceaa8f87864fbe4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Wed, 14 Sep 2016 18:22:33 +0200 Subject: [PATCH] Fix the black page block style --- app/static/src/sass/modules/_page.scss | 10 +++++++++- app/templates/core/inc/block.html | 6 +++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/app/static/src/sass/modules/_page.scss b/app/static/src/sass/modules/_page.scss index 3234b26e..df2520ab 100644 --- a/app/static/src/sass/modules/_page.scss +++ b/app/static/src/sass/modules/_page.scss @@ -81,12 +81,20 @@ $module: ".page"; color: white; @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); + } + } &--red { diff --git a/app/templates/core/inc/block.html b/app/templates/core/inc/block.html index 8883640f..92ed63b1 100644 --- a/app/templates/core/inc/block.html +++ b/app/templates/core/inc/block.html @@ -3,13 +3,13 @@

{% for block in blocks %} + {% if not forloop.first and block.with_separator %} +
+ {% endif %}
- {% if not forloop.first and block.with_separator %} -
- {% endif %}

{{ block.title }}

{% if block.content %} {{ block.content|richtext_filters|safe }} -- 2.39.5