MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 35: | Line 35: | ||
max-width: 820px; | max-width: 820px; | ||
margin: 0 auto; | margin: 0 auto; | ||
} | |||
/* ── Hide MW default page title (h1#firstHeading) ─────────────── | |||
{{Adhyaya}} template renders the Sanskrit doc/chapter title. | |||
MW's English page-name h1 is redundant. | |||
────────────────────────────────────────────────────────────────*/ | |||
h1.firstHeading, | |||
#firstHeading, | |||
.mw-page-title-main { | |||
display: none !important; | |||
} | } | ||
| Line 42: | Line 52: | ||
.mw-parser-output h3, | .mw-parser-output h3, | ||
.mw-parser-output h4, | .mw-parser-output h4, | ||
.mw-parser-output .mw-heading h1, | .mw-parser-output .mw-heading h1, | ||
.mw-parser-output .mw-heading h2, | .mw-parser-output .mw-heading h2, | ||
.mw-parser-output .mw-heading h3 | .mw-parser-output .mw-heading h3 { | ||
font-family: 'Adishila', 'Noto Serif Devanagari', serif !important; | font-family: 'Adishila', 'Noto Serif Devanagari', serif !important; | ||
border: none !important; | border: none !important; | ||
border-bottom: none !important; | border-bottom: none !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
background: none !important; | background: none !important; | ||
} | } | ||
.mw-parser-output .mw-heading { | .mw-parser-output .mw-heading { | ||
border: none !important; | border: none !important; | ||
| Line 68: | Line 69: | ||
} | } | ||
/* ── | /* ── Chapter heading ({{Adhyaya}} template → h1) ──────────────── | ||
. | Black, large — matches reference site's # प्रथमोऽध्यायः | ||
. | Same style for doc title and chapter titles. | ||
font-size: 1. | ────────────────────────────────────────────────────────────────*/ | ||
.adhyaya-block h1, | |||
.adhyaya-heading { | |||
font-size: 1.6em !important; | |||
font-weight: 500 !important; | font-weight: 500 !important; | ||
color: # | color: #1a1a1a !important; | ||
line-height: | line-height: 1.4; | ||
margin: | margin: 32px 0 8px !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
border: none !important; | border: none !important; | ||
border-bottom: | border-bottom: none !important; | ||
} | } | ||
/* ── Adhikarana heading (=== ===) — | /* ── Adhikarana heading (=== === or h2/h3 inside content) ──────── | ||
Orange dotted — section labels within a chapter | |||
ref site: ## उपोद्घातः style | |||
────────────────────────────────────────────────────────────────*/ | |||
.mw-parser-output .mw-heading2 h2, | |||
.mw-parser-output h2, | |||
.mw-parser-output .mw-heading3 h3, | .mw-parser-output .mw-heading3 h3, | ||
.mw-parser-output h3 { | .mw-parser-output h3 { | ||
| Line 89: | Line 97: | ||
color: #e65100 !important; | color: #e65100 !important; | ||
line-height: 1.6; | line-height: 1.6; | ||
margin: 30px 0 10px !important; | |||
padding: 0 !important; | |||
border: none !important; | border: none !important; | ||
border-bottom: 1px dotted #e65100 !important; | border-bottom: 1px dotted #e65100 !important; | ||
width: | width: 60%; | ||
} | } | ||
/* Hide MW edit pencil icons | /* Hide MW edit pencil icons */ | ||
.mw-heading .mw-editsection { display: none !important; } | .mw-heading .mw-editsection, | ||
.adhyaya-block .mw-editsection { display: none !important; } | |||
/* ── Paragraphs ─────────────────────────────────────────────────*/ | /* ── Paragraphs ─────────────────────────────────────────────────*/ | ||
| Line 111: | Line 121: | ||
} | } | ||
/* ── Shloka block ( | /* ── Shloka block (introductory verses, stotra text) ──────────── | ||
Black — these are the stotra/shloka lines of the text itself, | |||
NOT pramana quotes. ref site: normal black text, no italic. | |||
────────────────────────────────────────────────────────────────*/ | ────────────────────────────────────────────────────────────────*/ | ||
.shloka-block { | .shloka-block { | ||
| Line 123: | Line 133: | ||
.shloka-line { | .shloka-line { | ||
display: block; | display: block; | ||
font-style: | font-style: normal; | ||
color: # | color: #333; | ||
line-height: 1.6; | line-height: 1.6; | ||
} | } | ||
/* ── Verse block (VerseBlock template) | /* ── Verse block (VerseBlock template — scripture verse-text) ──── | ||
Red italic — these are the actual mantra/sutra/shloka lines | |||
being commented on. ref site: .verse-text color #c65, italic. | |||
────────────────────────────────────────────────────────────────*/ | ────────────────────────────────────────────────────────────────*/ | ||
.verse-block { | .verse-block { | ||
| Line 146: | Line 156: | ||
display: block; | display: block; | ||
font-style: italic; | font-style: italic; | ||
color: # | color: #c65; | ||
font-weight: | font-weight: 500; | ||
line-height: 1.6; | line-height: 1.6; | ||
} | } | ||