mobile : center text button. homogenize close / open nav btns
This commit is contained in:
parent
455801a0d2
commit
6c245966e1
9 changed files with 92 additions and 64 deletions
|
|
@ -1,20 +1,36 @@
|
|||
<?php snippet('header') ?>
|
||||
<main id="<?= $page->template() ?>">
|
||||
<article>
|
||||
<?php snippet('cover', array('isOpen' => true), slots: true) ?>
|
||||
<?php slot('title') ?>
|
||||
<h2 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h2>
|
||||
<p>
|
||||
<span class="light">par</span>
|
||||
<a class="author" href="/auteurs/<?= Str::slug($page->author()->toPage()->title()) ?>"><?= $page->author()->toPage()->title() ?></a><br>
|
||||
<span class="light">publié le </span><?= $page->published()->toDate('d/m/Y') ?><br>
|
||||
<span class="light">dans</span> <a href="<?= $page->parent()->url() ?>"><?= $page->parent()->title() ?></a> / <a href="/categories/<?= $page->category() ?>"><?= $page->category() ?></a>
|
||||
</p>
|
||||
<?php endslot() ?>
|
||||
<?php snippet('cover', ['isOpen' => true], slots: true) ?>
|
||||
<?php slot('title') ?>
|
||||
<h2
|
||||
class="main-title <?= setTitleFontSizeClass($page->title()) ?>">
|
||||
<?= $page->title() ?></h2>
|
||||
<p>
|
||||
<span class="light">par</span>
|
||||
<a class="author"
|
||||
href="/auteurs/<?= Str::slug($page->author()->toPage()->title()) ?>"><?= $page->author()->toPage()->title() ?></a><br>
|
||||
<span class="light">publié le
|
||||
</span><?= $page->published()->toDate('d/m/Y') ?><br>
|
||||
<span class="light">dans</span> <a
|
||||
href="<?= $page->parent()->url() ?>"><?= $page->parent()->title() ?></a>
|
||||
/ <a
|
||||
href="/categories/<?= $page->category() ?>"><?= $page->category() ?></a>
|
||||
</p>
|
||||
<?php endslot() ?>
|
||||
<?php endsnippet() ?>
|
||||
|
||||
<div id="main-content">
|
||||
|
||||
<?php if ($page->chapo()->isNotEmpty()): ?>
|
||||
<div id="chapo">
|
||||
<?= $page->chapo() ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php foreach ($page->body()->toLayouts() as $layout): ?>
|
||||
<section class="grid" id="<?= $layout->id() ?>" data-columns="<?= $layout->columns()->count() ?>">
|
||||
<section class="grid" id="<?= $layout->id() ?>"
|
||||
data-columns="<?= $layout->columns()->count() ?>">
|
||||
<?php foreach ($layout->columns() as $column): ?>
|
||||
<div class="column" style="--span:<?= $column->span(32) ?>">
|
||||
<div class="blocks">
|
||||
|
|
@ -24,6 +40,7 @@
|
|||
<?php endforeach ?>
|
||||
</section>
|
||||
<?php endforeach ?>
|
||||
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue