mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-08-10 15:21:22 +02:00
toc: add independent scrollbar for desktop TOC sidebar
- Added max-height, overflow-y: auto, overscroll-behavior: contain, and scrollbar-width: thin to .toc in the desktop media query (toc.css) - This gives the TOC its own scrollbar when its content exceeds the viewport height, scrolling independently from the main content - Affects both public pages (about, charte, licence via .page-content) and admin pages (acces, parametres, contenus via .admin-main--toc)
This commit is contained in:
@@ -110,12 +110,16 @@
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* ── Desktop: sticky sidebar ───────────────────────────────────────────── */
|
||||
/* ── Desktop: sticky sidebar with independent scroll ──────────────────── */
|
||||
@media (min-width: 768px) {
|
||||
.toc {
|
||||
position: sticky;
|
||||
top: var(--space-l);
|
||||
grid-column: 1;
|
||||
max-height: calc(100vh - var(--space-xl) - var(--space-2xl));
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.toc summary {
|
||||
|
||||
Reference in New Issue
Block a user