feat(admin): cleanup page — remove 'Fichiers temporaires' level, promote sections to h2 TOC entries

This commit is contained in:
Pontoporeia
2026-09-18 16:26:49 +02:00
parent 1ed69a2c1a
commit 3f352b0d26
18 changed files with 650 additions and 252 deletions
+34
View File
@@ -1142,6 +1142,31 @@ th.admin-ap-col {
margin-left: var(--space-2xs);
}
/* Stat line rendered as a card under a cleanup-section heading. */
.cleanup-stat-card {
margin: 0 0 var(--space-m);
padding: var(--space-s) var(--space-l);
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: var(--radius);
font-size: var(--step-1);
font-weight: 700;
color: var(--accent-primary);
display: flex;
flex-wrap: wrap;
gap: var(--space-2xs) var(--space-m);
align-items: baseline;
}
/* Short French explanation shown under a cleanup-section heading. */
.cleanup-section-desc {
margin: 0 0 var(--space-m);
font-size: var(--step--1);
line-height: 1.5;
color: var(--text-secondary);
max-width: 70ch;
}
.n-grid {
display: block;
}
@@ -2284,6 +2309,15 @@ th.admin-ap-col {
margin-bottom: var(--space-m);
}
/* Cleanup page: sections are loaded asynchronously into a wrapper div, so
give them the same top-level spacing as direct article sections. */
#tmp-cleanup-stats-wrapper > section[aria-labelledby] {
margin-bottom: var(--space-xl);
border: none;
border-radius: 0;
padding: 0;
}
/* Admin TOC: same <details class="toc"> as public pages, positioned sticky */
#admin-toc .toc-list {
padding-top: var(--space-2xs);