1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-08 06:55:26 +02:00

Merge branch 'master' into feature/transport

This commit is contained in:
Taly 2019-03-11 17:27:44 +03:00
commit 46b18a30e0
4 changed files with 22 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;
}
/**
* List
* ==================
@ -164,3 +163,22 @@
color: var(--color-text-second);
}
}
/**
* 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 %}
{# Skip first header, because it is already showed as a Title #}
{% if not (loop.first and block.type == 'header') %}
{% if block.type in ['paragraph', 'header', 'list', 'code', 'image'] %}
{% if block.type in ['paragraph', 'header', 'list', 'code', 'image', 'delimiter'] %}
{% include './blocks/' ~ block.type ~ '.twig' with block.data %}
{% endif %}
{% endif %}