MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 298: | Line 298: | ||
/* ── Vector 2022 sidebar TOC ──────────────────────────────────── */ | /* ── Vector 2022 sidebar TOC ──────────────────────────────────── */ | ||
/* Only override colours, sizes, and chevron styling. | |||
* Never override display/flex/layout — Vector 2022 manages its own | |||
* TOC layout and overriding it breaks multi-script rendering. */ | |||
.vector-toc { | .vector-toc { | ||
font-size: 0. | font-size: 0.95em !important; | ||
line-height: 1. | line-height: 1.6 !important; | ||
} | } | ||
/* "Contents" heading */ | |||
/* "Contents" heading | |||
.vector-toc .vector-toc-title { | .vector-toc .vector-toc-title { | ||
font-size: 0.72em !important; | font-size: 0.72em !important; | ||
| Line 318: | Line 314: | ||
color: #b07040 !important; | color: #b07040 !important; | ||
font-family: system-ui, sans-serif !important; | font-family: system-ui, sans-serif !important; | ||
margin-bottom: | margin-bottom: 2px !important; | ||
} | } | ||
/* | /* Chevron toggle button — colour and size only, no layout override */ | ||
.vector-toc .cdx-button.vector-toc-toggle { | .vector-toc .cdx-button.vector-toc-toggle { | ||
background: none !important; | background: none !important; | ||
border: none !important; | border: none !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
color: #9a6030 !important; | color: #9a6030 !important; | ||
opacity: 1 !important; | opacity: 1 !important; | ||
transition: color | transition: color 0.15s !important; | ||
} | } | ||
.vector-toc .cdx-button.vector-toc-toggle:hover { | .vector-toc .cdx-button.vector-toc-toggle:hover { | ||
color: #f57c00 !important; | color: #f57c00 !important; | ||
background: none !important; | |||
} | } | ||
.vector-toc .cdx-button.vector-toc-toggle svg { | .vector-toc .cdx-button.vector-toc-toggle svg { | ||
fill: currentColor !important; | fill: currentColor !important; | ||
} | } | ||
/* TOC | /* Hide section numbers in TOC — consistent across all scripts */ | ||
.vector-toc .vector-toc- | .vector-toc .vector-toc-numb { | ||
display: | display: none !important; | ||
} | } | ||
.vector-toc .vector-toc- | |||
/* Allow long section names (Kannada, Tamil, etc.) to wrap rather than | |||
* overflow or overlap. Vector sets nowrap by default which causes | |||
* multi-script long titles to bleed out of the sidebar column. */ | |||
.vector-toc .vector-toc-text { | |||
white-space: normal !important; | |||
word-break: break-word !important; | |||
overflow-wrap: anywhere !important; | |||
line-height: 1.35 !important; | |||
display: inline !important; | |||
} | } | ||
.vector-toc a, | .vector-toc a, | ||