MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 12: | Line 12: | ||
font-style: normal; | font-style: normal; | ||
} | } | ||
/* | |||
/* ── Base: one size, one font, everywhere ───────────────────────── */ | |||
.mw-parser-output { | |||
font-family: 'Adishila', 'Noto Serif Devanagari', serif; | |||
font-size: 17px; | |||
line-height: 1.75; | |||
color: #222; | |||
max-width: 820px; | |||
margin: 0 auto; | |||
} | } | ||
.mw-parser-output p, | |||
. | .mw-parser-output li, | ||
.mw-parser-output td, | |||
.mw-parser-output span, | |||
.mw-parser-output div { | |||
font-family: inherit; | |||
font-size: 1rem; | |||
line-height: inherit; | |||
} | } | ||
. | /* ── Headings: bold only, no size change ────────────────────────── */ | ||
font-family: | .mw-parser-output h1, | ||
.mw-parser-output h2, | |||
.mw-parser-output h3, | |||
.mw-parser-output h4, | |||
.mw-parser-output h5, | |||
.mw-parser-output h6 { | |||
font-family: inherit; | |||
font-size: 1rem; | |||
font-weight: bold; | |||
line-height: 1.75; | |||
margin: 1.4rem 0 0.2rem; | |||
border: none; | |||
padding: 0; | |||
color: inherit; | |||
} | } | ||
.mw-parser-output h2 { | |||
. | font-size: 1.1rem; | ||
} | |||
/* ── | /* ── Paragraphs ─────────────────────────────────────────────────── */ | ||
. | .mw-parser-output p { | ||
margin: 0 0 0.85rem; | |||
} | } | ||
. | .mw-parser-output p:empty, | ||
.mw-parser-output > div > p:empty { | |||
display: none !important; | |||
margin: 0 !important; | |||
line-height: 0 !important; | |||
} | } | ||
. | .mw-parser-output div[style*="font-size"] > p { | ||
margin: 0 !important; | |||
} | } | ||
. | |||
/* ── Shloka block ───────────────────────────────────────────────── */ | |||
.shloka-block { | |||
display: block; | |||
font-family: inherit; | |||
font-size: 1rem; | |||
margin: 0.5rem 0 1rem 0; | |||
padding-left: 0; | |||
} | } | ||
. | .shloka-line { | ||
display: block; | |||
line-height: 1.8; | |||
} | } | ||
/* ── | /* ── Commentary body ────────────────────────────────────────────── */ | ||
. | .commentary-body { | ||
display: block; | |||
font-family: inherit; | |||
font-size: 1rem; | |||
line-height: 1.75; | |||
color: #333; | |||
margin-top: 0.6rem; | |||
} | } | ||
.commentary-body p, | |||
. | .commentary-body span, | ||
.commentary-body div { | |||
font-family: inherit; | |||
} | } | ||
. | |||
.commentary-body + .commentary-body { | |||
margin-top: 6px; | |||
} | } | ||
.commentary-body.commentary-hidden { | |||
. | display: none; | ||
} | } | ||
. | .commentary-body.commentary-hidden + p:empty, | ||
.verse-block > p:empty { | |||
display: none; | |||
} | } | ||
/* ── | /* ── Commentary toggle ──────────────────────────────────────────── */ | ||
. | .commentary-toggle { | ||
. | cursor: pointer; | ||
margin-left: 0.5em; | |||
font-size: 0.7em; | |||
vertical-align: middle; | |||
opacity: 0.4; | |||
user-select: none; | |||
display: inline; | |||
transition: opacity 0.2s ease; | |||
} | } | ||
.commentary-toggle:hover { | |||
opacity: 1; | |||
} | } | ||
body.hide-commentary .commentary-block { | body.hide-commentary .commentary-block { | ||
display: none; | display: none; | ||
| Line 147: | Line 138: | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
. | /* ── Fix mw-collapsible toggle ──────────────────────────────────── */ | ||
.commentary-block .mw-collapsible-toggle { | |||
font-family: inherit; | |||
display: block; | |||
width: 100%; | |||
box-sizing: border-box; | |||
border-left: 4px solid #8b6914; | |||
padding: 6px 10px; | |||
cursor: pointer; | |||
font-weight: bold; | |||
text-align: left; | |||
float: none !important; | |||
} | |||
.adhyaya-intro .mw-collapsible-toggle { | |||
font-family: inherit; | |||
display: block; | |||
width: 100%; | |||
box-sizing: border-box; | |||
cursor: pointer; | |||
font-weight: bold; | |||
text-align: left; | |||
float: none !important; | |||
text-transform: uppercase; | |||
letter-spacing: 0.07em; | |||
font-size: 0.78em; | |||
} | |||
.commentary-block .mw-collapsible-toggle a { | |||
font-family: inherit; | |||
text-decoration: none; | |||
} | } | ||
.mw-collapsible, | .mw-collapsible, | ||
.mw-collapsible-content, | .mw-collapsible-content, | ||
blockquote, | blockquote, | ||
.quotebox { | .quotebox { | ||
background-color: transparent !important; | |||
border: none !important; | |||
font-style: normal !important; | |||
padding: 0 !important; | |||
margin-left: 0 !important; | |||
} | } | ||
. | |||
/* ── Cargo store ────────────────────────────────────────────────── */ | |||
.cargo-store-only { | |||
display: none !important; | |||
} | } | ||
. | /* ── Adhyaya (Chapter) ──────────────────────────────────────────── */ | ||
.adhyaya-block { | |||
font-family: inherit; | |||
margin: 32px 0 18px; | |||
text-align: left; | |||
} | } | ||
. | .adhyaya-heading { | ||
font-family: inherit; | |||
font-size: 1rem; | |||
font-weight: bold; | |||
letter-spacing: 0.02em; | |||
margin: 0; | |||
line-height: 1.75; | |||
} | } | ||
. | .adhyaya-heading span, | ||
.adhyaya-block p { | |||
font-size: 0.9rem; | |||
color: #666; | |||
margin-top: 2px; | |||
} | } | ||
. | |||
.adhyaya-anchor { | |||
opacity: 0; | |||
transition: opacity 0.2s; | |||
} | } | ||
. | |||
. | .adhyaya-heading:hover .adhyaya-anchor { | ||
opacity: 0.7; | |||
} | } | ||
.mw- | |||
.adhyaya-intro.mw-collapsible { | |||
font-family: inherit; | |||
} | } | ||
. | |||
.adhyaya-intro { | |||
margin-top: 10px; | |||
line-height: 1.85; | |||
color: #444; | |||
} | } | ||
. | /* ── Nyaya (Reasoning block) ────────────────────────────────────── */ | ||
.nyaya-block { | |||
font-family: inherit; | |||
margin: 40px 0; | |||
padding-top: 14px; | |||
border-top: 1px solid #eee; | |||
} | } | ||
.nyaya-block a[href^="#"] { | |||
. | opacity: 0; | ||
transition: opacity 0.2s; | |||
} | } | ||
. | |||
.nyaya-block:hover a[href^="#"] { | |||
opacity: 0.7; | |||
} | } | ||
. | .nyaya-title { | ||
font-size: 1rem; | |||
margin-bottom: 0.4rem; | |||
letter-spacing: 0.03em; | |||
} | } | ||
.nyaya-title span { | |||
. | display: block; | ||
font-size: 0.85rem; | |||
color: #666; | |||
} | } | ||
. | |||
/* ── Prasna (Question block) ────────────────────────────────────── */ | |||
.prasna-block { | |||
font-family: inherit; | |||
margin: 40px 0; | |||
padding-top: 14px; | |||
border-top: 1px solid #eee; | |||
} | } | ||
.prasna-block a[href^="#"] { | |||
. | opacity: 0; | ||
transition: opacity 0.2s; | |||
} | } | ||
.prasna-block:hover a[href^="#"] { | |||
opacity: 0.7; | |||
.prasna-block { | |||
} | } | ||
.prasna-title { | .prasna-title { | ||
font-size: 1rem; | |||
margin-bottom: 0.4rem; | |||
letter-spacing: 0.03em; | |||
} | } | ||
.prasna-title span { | .prasna-title span { | ||
display: block; | |||
font-size: 0.85rem; | |||
color: #666; | |||
} | } | ||
. | /* ── ID chips ───────────────────────────────────────────────────── */ | ||
.nyaya-id, | |||
.prasna-id { | |||
font-family: 'Consolas', 'Liberation Mono', monospace; | |||
} | } | ||
/* ── Verse block ────────────────────────────────────────────────── */ | |||
.verse-block { | |||
margin: 10px 0; | |||
} | } | ||
.verse-block:hover { | |||
background: #fafafa; | |||
. | |||
} | } | ||
.verse-block + p { | |||
. | display: none !important; | ||
margin: 0 !important; | |||
} | } | ||
.verse- | |||
.verse-text { | |||
display: inline; | |||
font-size: 1rem; | |||
font-weight: 600; | |||
line-height: 1.75; | |||
letter-spacing: 0.01em; | |||
} | } | ||
/* CopyID button */ | |||
/* ── CopyID button ──────────────────────────────────────────────── */ | |||
.copy-id-btn { | .copy-id-btn { | ||
cursor: pointer; | cursor: pointer; | ||
font-size: 0. | font-size: 0.78rem; | ||
color: # | color: #bbb; | ||
margin-left: 0. | margin-left: 0.35em; | ||
vertical-align: middle; | vertical-align: middle; | ||
user-select: none; | user-select: none; | ||
| Line 325: | Line 329: | ||
transition: color 0.2s; | transition: color 0.2s; | ||
} | } | ||
.copy-id-btn:hover { | .copy-id-btn:hover { | ||
color: # | color: #666; | ||
} | } | ||
.copy-id-btn.copied { | .copy-id-btn.copied { | ||
color: #2a9d2a; | color: #2a9d2a; | ||
} | |||
/* ── Code blocks ────────────────────────────────────────────────── */ | |||
pre, code, .mw-code { | |||
background-color: transparent; | |||
border: none; | |||
padding: 0.5em; | |||
line-height: 1; | |||
margin: 0.5em; | |||
} | |||
/* ── Responsive ─────────────────────────────────────────────────── */ | |||
@media (max-width: 600px) { | |||
.mw-parser-output { | |||
font-size: 15px; | |||
} | |||
.nyaya-id, | |||
.prasna-id, | |||
.adhyaya-anchor { | |||
display: none; | |||
} | |||
} | } | ||