MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 37: Line 37:
}
}


/* ── Hide MW default page title (h1#firstHeading) ───────────────
/* ── Hide MW default English page title ─────────────────────────*/
  {{Adhyaya}} template renders the Sanskrit doc/chapter title.
  MW's English page-name h1 is redundant.
  ────────────────────────────────────────────────────────────────*/
h1.firstHeading,
h1.firstHeading,
#firstHeading,
#firstHeading,
Line 47: Line 44:
}
}


/* ── Headings — reset all MW defaults ───────────────────────────*/
/* ── Headings — reset MW defaults ───────────────────────────────*/
.mw-parser-output h1,
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h2,
Line 65: Line 62:
   border: none !important;
   border: none !important;
   border-bottom: none !important;
   border-bottom: none !important;
   margin: 0;
   margin: 0; padding: 0;
   padding: 0;
}
 
/* ── Doc title — black, large (inline h1 at page top) ───────────
  Only the document title (श्रीमद्भगवद्गीताप्रस्थानम्) uses this.
  ────────────────────────────────────────────────────────────────*/
.gr-doc-title {
  font-size: 1.6em;
  font-weight: 500;
   color: #1a1a1a;
  line-height: 1.4;
  margin: 0 0 16px;
  border: none !important;
}
}


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


/* ── Adhikarana heading (=== === or h2/h3 inside content) ────────
/* ── Adhikarana heading (=== === h3) ───────────────────────────
   Orange dotted — section labels within a chapter
   Smaller orange dotted — sub-section labels within a chapter
   ref site: ## उपोद्घातः style
   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 101: Line 110:
   border: none !important;
   border: none !important;
   border-bottom: 1px dotted #e65100 !important;
   border-bottom: 1px dotted #e65100 !important;
   width: 60%;
   width: 55%;
}
}


/* Hide MW edit pencil icons */
/* Hide edit pencil icons */
.mw-heading .mw-editsection,
.mw-heading .mw-editsection,
.adhyaya-block .mw-editsection { display: none !important; }
.adhyaya-block .mw-editsection { display: none !important; }