MediaWiki:Common.css: Difference between revisions
Undo revision 5108 by Chandrashekars (talk) Tag: Undo |
No edit summary Tag: Reverted |
||
| Line 814: | Line 814: | ||
border: 1px solid #f0e0b0; | border: 1px solid #f0e0b0; | ||
} | } | ||
/* ═══════════════════════════════════════════════════════════════════ | |||
Common.css — additions for v7 (append to existing Common.css) | |||
═══════════════════════════════════════════════════════════════════ */ | |||
/* ── TOC: Remove bold from all non-active level rules ───────────── | |||
* Common.js v7 sets font-weight:400 !important on every inactive | |||
* item via inline style, so the level-1 bold rule below would be | |||
* overridden anyway. These declarations make the CSS self-consistent | |||
* and work even if JS hasn't run yet. Active-item bold is handled | |||
* entirely by JS inline style. ──────────────────────────────────── */ | |||
.vector-toc .vector-toc-level-1 > .vector-toc-link, | |||
.vector-toc .vector-toc-level-1 > .vector-toc-link * { | |||
font-weight: 400 !important; /* was 600 — now normal; JS makes active bold */ | |||
color: #3a1f00 !important; | |||
} | |||
.vector-toc .vector-toc-level-2 > .vector-toc-link, | |||
.vector-toc .vector-toc-level-2 > .vector-toc-link * { | |||
font-weight: 400 !important; | |||
color: #5a3a00 !important; | |||
} | |||
.vector-toc .vector-toc-level-3 > .vector-toc-link, | |||
.vector-toc .vector-toc-level-3 > .vector-toc-link * { | |||
font-weight: 400 !important; | |||
color: #7a5010 !important; | |||
font-size: 0.95em !important; | |||
} | |||
/* Active overrides — must come AFTER level rules. | |||
* JS inline style also handles this; CSS is a belt-and-braces backup. */ | |||
.vector-toc .vector-toc-list-item-active .vector-toc-link, | |||
.vector-toc .vector-toc-list-item-active .vector-toc-link * { | |||
color: #f57c00 !important; | |||
font-weight: 700 !important; | |||
} | |||
/* ── TOC: विषयसूची title label ────────────────────────────────── */ | |||
/* Adishila doesn't cover ASCII fallback well at tiny sizes — | |||
* keep the title in system-ui as before. The JS sets the text. */ | |||
.vector-toc .vector-toc-title { | |||
font-family: system-ui, sans-serif !important; | |||
} | |||
/* ── TOC: मूल / उल्लेख nav bar ────────────────────────────────── */ | |||
#gr-toc-doc-nav { | |||
/* Layout via JS inline style; these are safety defaults */ | |||
font-family: 'Adishila', 'Noto Serif Devanagari', serif; | |||
} | |||
#gr-toc-doc-nav a:focus { | |||
outline: 2px solid #f57c00; | |||
outline-offset: 1px; | |||
} | |||
/* ── About / Main_Page: hide sidebar TOC panel entirely ─────────── | |||
* These pages use __NOTOC__ in wikitext; the sidebar TOC should not | |||
* appear. Vector 2022 may still render the pinned container empty — | |||
* hide it to avoid a blank sidebar gap. ─────────────────────────── */ | |||
body.page-My_wiki-About .vector-sidebar, | |||
body.page-My_wiki-About .vector-sticky-pinned-container, | |||
body.page-My_wiki-About #vector-toc-pinned-container, | |||
body.page-My_wiki-About .mw-table-of-contents-container { | |||
display: none !important; | |||
} | |||
/* ── Ullekha (references index) page ──────────────────────────── */ | |||
.gr-ullekha-back { | |||
font-size: 0.88em; | |||
color: #888; | |||
margin-bottom: 0.5em; | |||
} | |||
.gr-ullekha-back a { color: #b04b00; text-decoration: none; } | |||
.gr-ullekha-back a:hover { text-decoration: underline; } | |||
.gr-ullekha-summary { | |||
font-size: 0.9em; | |||
color: #666; | |||
margin-bottom: 1.5em; | |||
font-style: italic; | |||
} | |||
.gr-ullekha-source { | |||
margin-bottom: 2em; | |||
border: 1px solid #e8d4a0; | |||
border-radius: 6px; | |||
padding: 10px 14px 12px; | |||
background: #fffdf5; | |||
} | |||
.gr-ullekha-source-title { | |||
font-size: 1.05em; | |||
font-weight: 600; | |||
color: #5a3000; | |||
margin-bottom: 2px; | |||
border-bottom: 1px dotted #c9a060; | |||
padding-bottom: 4px; | |||
} | |||
.gr-ullekha-source-count { | |||
font-size: 0.78em; | |||
color: #999; | |||
font-family: system-ui, sans-serif; | |||
margin-bottom: 8px; | |||
} | |||
.gr-ullekha-list { | |||
margin: 0 !important; | |||
padding-left: 1.4em !important; | |||
list-style: decimal !important; | |||
} | |||
.gr-ullekha-item { | |||
margin: 0.4em 0; | |||
line-height: 1.55; | |||
} | |||
.gr-ullekha-quote { | |||
font-style: italic; | |||
color: #444; | |||
} | |||
.gr-ullekha-ref { | |||
font-size: 0.8em; | |||
font-style: normal; | |||
color: #999; | |||
margin-left: 4px; | |||
font-family: system-ui, sans-serif; | |||
} | |||
.gr-ullekha-ref a { color: #b04b00 !important; text-decoration: none; } | |||
.gr-ullekha-ref a:hover { text-decoration: underline; } | |||