mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-08-10 07:11:18 +02:00
Close TOC and Filtres details elements by default on mobile
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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): ?>
|
||||||
|
|||||||
@@ -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): ?>
|
||||||
|
|||||||
@@ -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): ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user