All checks were successful
Deploy / Deploy to Production (push) Successful in 6s
Integrate light-mode.js into script.js, unify .panel/.side-panel classes into .side-panel, scope theme variables to @media screen for proper print light mode, and add page-break after chapo. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
1.2 KiB
PHP
31 lines
1.2 KiB
PHP
<div class="side-panel" data-panel="side-panel">
|
|
<div class="side-panel__view" data-view="nav" x-data="{search: ''}">
|
|
<header>
|
|
<p class="sort-btns">
|
|
<button class="sort-btn sort-btn--years active">années</span></button>
|
|
<button class="sort-btn sort-btn--categories">catégories</button>
|
|
<button class="sort-btn sort-btn--all">voir tout</button>
|
|
</p>
|
|
<div class="search">
|
|
<input class="search__input" type="text" placeholder="Chercher" x-model="search">
|
|
<div class="search__icon"></div>
|
|
<button x-show="search.length > 0" @click="search = ''" class="search__icon">
|
|
<img
|
|
src="<?= url('assets/images/icons/close.svg') ?>"
|
|
alt="">
|
|
</button>
|
|
</div>
|
|
</header>
|
|
<?php snippet('nav__texts--all') ?>
|
|
<?php snippet('nav__texts--collection', ['collection' => 'categories']) ?>
|
|
<?php snippet('nav__texts--collection', ['collection' => 'years']) ?>
|
|
</div>
|
|
|
|
<?php if ($page->hasToc()): ?>
|
|
<div class="side-panel__view hidden" data-view="toc">
|
|
<?php snippet('toc') ?>
|
|
</div>
|
|
<?php endif ?>
|
|
|
|
<button class="less side-panel-close">fermer</button>
|
|
</div>
|