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 h5,
.mw-parser-output h6,
.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 {
.mw-parser-output .mw-heading h4 {
   font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
   font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
  font-size: 1em !important;
  font-weight: bold;
  line-height: 1.75;
  margin: 1.4rem 0 0.2rem;
   border: none !important;
   border: none !important;
   border-bottom: none !important;
   border-bottom: none !important;
   padding: 0 !important;
   padding: 0 !important;
  color: inherit;
   background: none !important;
   background: none !important;
}
}


/* MW Vector 2022 wraps headings in .mw-heading divs */
.mw-parser-output .mw-heading {
.mw-parser-output .mw-heading {
   border: none !important;
   border: none !important;
Line 68: Line 69:
}
}


/* ── Adhyaya heading (== ==) — orange dotted underline ──────────*/
/* ── Chapter heading ({{Adhyaya}} template → h1) ────────────────
.mw-parser-output .mw-heading2 h2,
  Black, large matches reference site's # प्रथमोऽध्यायः
.mw-parser-output h2 {
  Same style for doc title and chapter titles.
   font-size: 1.1em !important;
  ────────────────────────────────────────────────────────────────*/
.adhyaya-block h1,
.adhyaya-heading {
   font-size: 1.6em !important;
   font-weight: 500 !important;
   font-weight: 500 !important;
   color: #f57c00 !important;
   color: #1a1a1a !important;
   line-height: 2.4;
   line-height: 1.4;
   margin: 20px 0 0 !important;
   margin: 32px 0 8px !important;
   padding: 0 !important;
   padding: 0 !important;
   border: none !important;
   border: none !important;
   border-bottom: 2px dotted #f57c00 !important;
   border-bottom: none !important;
  width: 75%;
}
}


/* ── Adhikarana heading (=== ===) — deep orange dotted ──────────*/
/* ── 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;
   padding-top: 30px !important;
   margin: 30px 0 10px !important;
   margin-bottom: 30px !important;
   padding: 0 !important;
   border: none !important;
   border: none !important;
   border-bottom: 1px dotted #e65100 !important;
   border-bottom: 1px dotted #e65100 !important;
   width: 50%;
   width: 60%;
}
}


/* Hide MW edit pencil icons on headings */
/* 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 (pramana / stotra verses) ─────────────────────
/* ── Shloka block (introductory verses, stotra text) ────────────
   Left-aligned, italic, #be100e — tight line spacing within verse
   Black — these are the stotra/shloka lines of the text itself,
   Standard margin between separate verses
   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: italic;
   font-style: normal;
   color: #be100e;
   color: #333;
   line-height: 1.6;       /* tight within a verse */
   line-height: 1.6;
}
}


/* ── Verse block (VerseBlock template) ──────────────────────────
/* ── Verse block (VerseBlock template — scripture verse-text) ────
   Left-aligned, same tight spacing within verse,
   Red italic — these are the actual mantra/sutra/shloka lines
   margin-top 10px between verses — matches reference exactly
   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: #be100e;
   color: #c65;
   font-weight: normal;
   font-weight: 500;
   line-height: 1.6;       /* tight within a verse */
   line-height: 1.6;
}
}