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
+2
View File
@@ -42,3 +42,5 @@
- [x] Fix createThesis SQL: extra `?` placeholder in VALUES (27 values for 26 columns) + add integration tests - [x] Fix createThesis SQL: extra `?` placeholder in VALUES (27 values for 26 columns) + add integration tests
- [x] CSV import/export: single source of truth (CSV_COLUMNS), add missing columns (duration, annexes, license_custom, contact_visible, objet, cc2r, exemplaires), fix XamxamInitFilePonds → window.n, generate import hint from headers - [x] CSV import/export: single source of truth (CSV_COLUMNS), add missing columns (duration, annexes, license_custom, contact_visible, objet, cc2r, exemplaires), fix XamxamInitFilePonds → window.n, generate import hint from headers
- [x] Extend admin auth cookie lifetime from session-only to 1 week (604800s) - [x] Extend admin auth cookie lifetime from session-only to 1 week (604800s)
- [x] Close TOC (licence/charte/apropos) and Filtres (search.php) <details> by default on mobile
- [x] Wider heading scale (h1/h2/h3) for apropos/licence/charte pages: step-5 / step-3 / step-1
+5
View File
@@ -157,6 +157,11 @@
scroll-margin-top: var(--space-l); scroll-margin-top: var(--space-l);
} }
/* Wider heading scale for content pages (apropo/licence/charte) */
.page-content > article h1 { font-size: var(--step-5); }
.page-content > article h2 { font-size: var(--step-3); }
.page-content > article h3 { font-size: var(--step-1); }
/* Hide CommonMark heading permalink anchors */ /* Hide CommonMark heading permalink anchors */
.heading-permalink { .heading-permalink {
display: none; display: none;
+1 -1
View File
@@ -34,7 +34,7 @@ function renderEntries(array $entries): string
<main class="page-content" id="main-content"> <main class="page-content" id="main-content">
<!-- Table of contents: collapsible on mobile, force-open on desktop --> <!-- 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> <summary><?= icon('caret-down', 0, 'toc-caret') ?> PARTIES</summary>
<ul class="toc-list"> <ul class="toc-list">
<li><a href="#apropos-intro">À propos</a></li> <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 --> <!-- Table of contents: collapsible on mobile, force-open on desktop -->
<?php if (!empty($tocItems)): ?> <?php if (!empty($tocItems)): ?>
<details class="toc" open> <details class="toc">
<summary><?= icon('caret-down', 0, 'toc-caret') ?> PARTIES</summary> <summary><?= icon('caret-down', 0, 'toc-caret') ?> PARTIES</summary>
<ul class="toc-list"> <ul class="toc-list">
<?php foreach ($tocItems as $item): ?> <?php foreach ($tocItems as $item): ?>
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- Table of contents: collapsible on mobile, force-open on desktop --> <!-- Table of contents: collapsible on mobile, force-open on desktop -->
<?php if (!empty($tocItems)): ?> <?php if (!empty($tocItems)): ?>
<details class="toc" open> <details class="toc">
<summary><?= icon('caret-down', 0, 'toc-caret') ?> PARTIES</summary> <summary><?= icon('caret-down', 0, 'toc-caret') ?> PARTIES</summary>
<ul class="toc-list"> <ul class="toc-list">
<?php foreach ($tocItems as $item): ?> <?php foreach ($tocItems as $item): ?>
+1 -1
View File
@@ -11,7 +11,7 @@ foreach ($filterKeys as $k) {
} }
?> ?>
<!-- Filter controls --> <!-- Filter controls -->
<details class="search-filters-toggle" open> <details class="search-filters-toggle">
<summary class="search-filters-summary"> <summary class="search-filters-summary">
Filtres Filtres
<?php if ($activeFilterCount > 0): ?> <?php if ($activeFilterCount > 0): ?>