This commit is contained in:
parent
4172bba4cc
commit
4cdb92017b
4 changed files with 25 additions and 3 deletions
|
|
@ -1,8 +1,26 @@
|
||||||
article #main-content {
|
article #main-content {
|
||||||
max-width: calc(18 * var(--unit--horizontal));
|
max-width: calc(18 * var(--unit--horizontal));
|
||||||
scroll-margin-block-start: calc(var(--unit--vertical) * 6);
|
scroll-margin-block-start: calc(var(--unit--vertical) * 6);
|
||||||
margin-top: calc(var(--unit--vertical) * 2);
|
|
||||||
padding-bottom: calc(var(--unit--vertical) * 2);
|
padding-bottom: calc(var(--unit--vertical) * 2);
|
||||||
|
margin-top: calc(2 * var(--unit--vertical));
|
||||||
|
}
|
||||||
|
|
||||||
|
#chapo {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
#chapo em {
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
article #main-content #chapo::after {
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
margin: calc(2 * var(--unit--vertical)) 0;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
height: 1px;
|
||||||
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
article #main-content li {
|
article #main-content li {
|
||||||
|
|
|
||||||
|
|
@ -115,8 +115,6 @@ button.toggle.right::before {
|
||||||
[data-template="category"] .page-cover
|
[data-template="category"] .page-cover
|
||||||
) {
|
) {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
padding: calc(10 * var(--unit--vertical)) 0;
|
|
||||||
padding-top: calc(var(--unit--vertical) * 8);
|
|
||||||
}
|
}
|
||||||
[data-template="home"] .page-cover {
|
[data-template="home"] .page-cover {
|
||||||
padding-top: calc(42.5vw) !important;
|
padding-top: calc(42.5vw) !important;
|
||||||
|
|
|
||||||
|
|
@ -18,5 +18,6 @@ tabs:
|
||||||
chapo:
|
chapo:
|
||||||
label: Chapo
|
label: Chapo
|
||||||
extends: fields/body
|
extends: fields/body
|
||||||
|
help: Optionnel
|
||||||
body: fields/body
|
body: fields/body
|
||||||
metaTab: tabs/meta
|
metaTab: tabs/meta
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,11 @@
|
||||||
<?php endsnippet() ?>
|
<?php endsnippet() ?>
|
||||||
|
|
||||||
<div id="main-content">
|
<div id="main-content">
|
||||||
|
<?php if ($page->chapo()->isNotEmpty()): ?>
|
||||||
|
<div id="chapo">
|
||||||
|
<?= $page->chapo() ?>
|
||||||
|
</div>
|
||||||
|
<?php endif ?>
|
||||||
<?= $page->body() ?>
|
<?= $page->body() ?>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue