1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-19 13:19:42 +02:00

Add template for Delimiter Block (#61)

resolves #57
This commit is contained in:
Taly 2019-03-11 16:13:57 +03:00 committed by GitHub
parent c7c7e61ccf
commit 82a81ce96a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -106,7 +106,6 @@
line-height: 1.7em; line-height: 1.7em;
} }
/** /**
* List * List
* ================== * ==================
@ -117,3 +116,21 @@
} }
} }
/**
* Delimiter
* ==================
*/
.block-delimiter {
line-height: 1.6em;
width: 100%;
text-align: center;
&::before {
display: inline-block;
content: "***";
font-size: 30px;
line-height: 65px;
height: 30px;
letter-spacing: 0.2em;
}
}

View file

@ -0,0 +1 @@
<div class="block-delimiter"></div>

View file

@ -32,7 +32,7 @@
{% for block in page.body.blocks %} {% for block in page.body.blocks %}
{# Skip first header, because it is already showed as a Title #} {# Skip first header, because it is already showed as a Title #}
{% if not (loop.first and block.type == 'header') %} {% if not (loop.first and block.type == 'header') %}
{% if block.type in ['paragraph', 'header', 'list', 'code'] %} {% if block.type in ['paragraph', 'header', 'list', 'code', 'delimiter'] %}
{% include './blocks/' ~ block.type ~ '.twig' with block.data %} {% include './blocks/' ~ block.type ~ '.twig' with block.data %}
{% endif %} {% endif %}
{% endif %} {% endif %}