mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-19 13:19:42 +02:00
parent
c7c7e61ccf
commit
82a81ce96a
4 changed files with 21 additions and 3 deletions
2
public/dist/main.css
vendored
2
public/dist/main.css
vendored
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
1
src/views/pages/blocks/delimiter.twig
Normal file
1
src/views/pages/blocks/delimiter.twig
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<div class="block-delimiter"></div>
|
|
@ -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 %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue