Close TOC and Filtres details elements by default on mobile

This commit is contained in:
Pontoporeia
2026-07-10 11:56:27 +02:00
parent 56b3feb73f
commit b0925d9cfa
6 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ function renderEntries(array $entries): string
<main class="page-content" id="main-content">
<!-- Table of contents: collapsible on mobile, force-open on desktop -->
<details class="toc" open>
<details class="toc">
<summary><?= icon('caret-down', 0, 'toc-caret') ?> PARTIES</summary>
<ul class="toc-list">
<li><a href="#apropos-intro">À propos</a></li>
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- Table of contents: collapsible on mobile, force-open on desktop -->
<?php if (!empty($tocItems)): ?>
<details class="toc" open>
<details class="toc">
<summary><?= icon('caret-down', 0, 'toc-caret') ?> PARTIES</summary>
<ul class="toc-list">
<?php foreach ($tocItems as $item): ?>
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- Table of contents: collapsible on mobile, force-open on desktop -->
<?php if (!empty($tocItems)): ?>
<details class="toc" open>
<details class="toc">
<summary><?= icon('caret-down', 0, 'toc-caret') ?> PARTIES</summary>
<ul class="toc-list">
<?php foreach ($tocItems as $item): ?>
+1 -1
View File
@@ -11,7 +11,7 @@ foreach ($filterKeys as $k) {
}
?>
<!-- Filter controls -->
<details class="search-filters-toggle" open>
<details class="search-filters-toggle">
<summary class="search-filters-summary">
Filtres
<?php if ($activeFilterCount > 0): ?>