MediaWiki:Common.css: Difference between revisions
Appearance
Force mobile sections + TOC always expanded (Common.css is the loaded file; Mobile.css is not loaded by this wiki) |
Mobile model: keep lead summary + full TOC visible at top; allow tap-to-expand sections (Wikipedia-like), per Theo 2026-06-30 |
||
| Line 45: | Line 45: | ||
.client-js .toctogglecheckbox:not(:checked) ~ ul { display: block !important; } | .client-js .toctogglecheckbox:not(:checked) ~ ul { display: block !important; } | ||
/* --- Mobile | /* --- Mobile TOC visible at the top --- | ||
Model (validated 2026-06-30): like Wikipedia mobile, the lead summary boxes | |||
(KidsIntro + ExpertIntro) and the full TOC stay visible at the top. Tapping a | |||
section heading to expand its paragraphs is acceptable. So we only ensure the | |||
TOC sublist is shown; we do NOT force every section open. */ | |||
.toc .toctogglecheckbox ~ ul, | |||
.client-js .toc .toctogglecheckbox ~ ul { visibility: visible !important; height: auto !important; } | |||
section. | |||
.toc .toctogglecheckbox ~ ul { visibility: visible !important; height: auto | |||