This commit is contained in:
parent
4cdb92017b
commit
1c2c45e5ab
4 changed files with 14 additions and 4 deletions
|
|
@ -12,6 +12,7 @@ main article > div {
|
|||
|
||||
#main-header {
|
||||
position: fixed;
|
||||
z-index: 2;
|
||||
box-sizing: border-box;
|
||||
width: 100vw;
|
||||
padding-top: calc(var(--unit--vertical) / 2);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ p * {
|
|||
line-height: 1;
|
||||
}
|
||||
|
||||
h2 {
|
||||
h1 {
|
||||
font-size: var(--font-size-xl);
|
||||
}
|
||||
|
||||
|
|
@ -87,7 +87,7 @@ button,
|
|||
}
|
||||
.fs-l {
|
||||
font-size: var(--font-size-l) !important;
|
||||
line-height: var(--unit--vertical);
|
||||
line-height: calc(var(--unit--vertical) * 1.5);
|
||||
}
|
||||
.fs-xl {
|
||||
font-size: var(--font-size-xl) !important;
|
||||
|
|
|
|||
|
|
@ -15,9 +15,15 @@ tabs:
|
|||
label: Corps
|
||||
type: fields
|
||||
fields:
|
||||
subtitle:
|
||||
label: Sous-titre
|
||||
type: writer
|
||||
help: optionnel
|
||||
marks: false
|
||||
node: false
|
||||
chapo:
|
||||
label: Chapo
|
||||
extends: fields/body
|
||||
help: Optionnel
|
||||
help: optionnel
|
||||
body: fields/body
|
||||
metaTab: tabs/meta
|
||||
|
|
|
|||
|
|
@ -3,7 +3,10 @@
|
|||
<article>
|
||||
<?php snippet('cover', array('isOpen' => true), slots: true) ?>
|
||||
<?php slot('title') ?>
|
||||
<h2 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h2>
|
||||
<h1 class="main-title"><?= $page->title() ?></h1>
|
||||
<?php if ($page->subtitle()->isNotEmpty()): ?>
|
||||
<h2 class="main-subtitle fs-l"><?= $page->subtitle()->inline() ?></h2>
|
||||
<?php endif ?>
|
||||
<p>
|
||||
<span class="light">par</span>
|
||||
<a class="author" href="/auteurs/<?= Str::slug($page->author()->toPage()->title()) ?>"><?= $page->author()->toPage()->title() ?></a><br>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue