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 {
|
#main-header {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
z-index: 2;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
padding-top: calc(var(--unit--vertical) / 2);
|
padding-top: calc(var(--unit--vertical) / 2);
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ p * {
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h1 {
|
||||||
font-size: var(--font-size-xl);
|
font-size: var(--font-size-xl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -87,7 +87,7 @@ button,
|
||||||
}
|
}
|
||||||
.fs-l {
|
.fs-l {
|
||||||
font-size: var(--font-size-l) !important;
|
font-size: var(--font-size-l) !important;
|
||||||
line-height: var(--unit--vertical);
|
line-height: calc(var(--unit--vertical) * 1.5);
|
||||||
}
|
}
|
||||||
.fs-xl {
|
.fs-xl {
|
||||||
font-size: var(--font-size-xl) !important;
|
font-size: var(--font-size-xl) !important;
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,15 @@ tabs:
|
||||||
label: Corps
|
label: Corps
|
||||||
type: fields
|
type: fields
|
||||||
fields:
|
fields:
|
||||||
|
subtitle:
|
||||||
|
label: Sous-titre
|
||||||
|
type: writer
|
||||||
|
help: optionnel
|
||||||
|
marks: false
|
||||||
|
node: false
|
||||||
chapo:
|
chapo:
|
||||||
label: Chapo
|
label: Chapo
|
||||||
extends: fields/body
|
extends: fields/body
|
||||||
help: Optionnel
|
help: optionnel
|
||||||
body: fields/body
|
body: fields/body
|
||||||
metaTab: tabs/meta
|
metaTab: tabs/meta
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,10 @@
|
||||||
<article>
|
<article>
|
||||||
<?php snippet('cover', array('isOpen' => true), slots: true) ?>
|
<?php snippet('cover', array('isOpen' => true), slots: true) ?>
|
||||||
<?php slot('title') ?>
|
<?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>
|
<p>
|
||||||
<span class="light">par</span>
|
<span class="light">par</span>
|
||||||
<a class="author" href="/auteurs/<?= Str::slug($page->author()->toPage()->title()) ?>"><?= $page->author()->toPage()->title() ?></a><br>
|
<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