Fix spacing issues in various places

This commit is contained in:
Oliver Davies 2020-06-27 00:12:19 +01:00
parent d7aaeb0ca6
commit 2b061539d5
4 changed files with 9 additions and 7 deletions

View file

@ -90,11 +90,11 @@
} }
* + h2 { * + h2 {
@apply mt-8 @apply mt-6
} }
h2 + * { h2 + * {
@apply mt-4 @apply mt-3
} }
h3 { h3 {

View file

@ -25,13 +25,15 @@
* @see template_preprocess_block() * @see template_preprocess_block()
*/ */
#} #}
<div{{ attributes.addClass('mt-4 first:mt-0') }}> <section{{ attributes.addClass('mt-6 first:mt-0') }}>
{{ title_prefix }} {{ title_prefix }}
{% if label %} {% if label %}
<h2{{ title_attributes }}>{{ label }}</h2> <h2{{ title_attributes.addClass('mb-3') }}>
{{ label }}
</h2>
{% endif %} {% endif %}
{{ title_suffix }} {{ title_suffix }}
{% block content %} {% block content %}
{{ content }} {{ content }}
{% endblock %} {% endblock %}
</div> </section>

View file

@ -90,7 +90,7 @@
</footer> </footer>
{% endif %} {% endif %}
<div{{ content_attributes.addClass('space-y-4') }}> <div{{ content_attributes.addClass(['space-y-6', page ? 'markup']) }}>
{{ content }} {{ content }}
</div> </div>

View file

@ -90,7 +90,7 @@
</footer> </footer>
{% endif %} {% endif %}
<div{{ content_attributes.addClass('node-content') }}> <div{{ content_attributes.addClass('node-content space-y-6') }}>
{{ content }} {{ content }}
</div> </div>