MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 764: Line 764:
   text-decoration: none !important;
   text-decoration: none !important;
   cursor: default;
   cursor: default;
}
/* ═══════════════════════════════════════════════════════════════════════════
  grantha.io — MediaWiki:Common.css additions
  Add these rules to your existing MediaWiki:Common.css page.
  ═══════════════════════════════════════════════════════════════════════════ */
/* ── leading-bhashya ────────────────────────────────────────────────────────
  Bridging/introductory prose between adhikaranas (BS.xml) or between
  chapters (Mandu.xml). Rendered as {{Bhashyam}} so it picks up the same
  running-prose styling as regular bhashya — no extra CSS needed beyond what
  .gr-bhashyam already provides.  The class below is available if you ever
  want to visually distinguish these bridge passages.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-leading-bhashya {
    font-style: italic;
    color: #555;
    margin: 0.4em 0 0.6em 0;
}
/* ── avataranika ─────────────────────────────────────────────────────────────
  Lead-in / introductory gloss that precedes the main commentary block in
  tika files (pramaanalakshana-tika, tattvasankhyanam-tika, tatvaviveka-tika,
  yamakabharata-tika-yadupatyam).  Displayed as a slightly inset italic block
  before the main {{Bhashyam}} / {{Teeka}} bubble.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-avataranika {
    font-style: italic;
    color: #444;
    margin: 0 0 0.5em 0.5em;
    padding-left: 0.6em;
    border-left: 2px solid #c9a96e;
    line-height: 1.7;
}
/* ── vyakhya-heading ────────────────────────────────────────────────────────
  Named section headings within a tika (e.g. "प्रथमः भङ्गः", "द्वितीयभङ्गः"
  in bhavadipika, bhavaprakashaha, bhavavivaranam, nyayadeepika).  These are
  rendered as === wiki headings ===, so this rule targets the MW h3 that MW
  generates from them.  If you prefer a custom look, add:
      .gr-vyakhya-heading { … }
  and change the script output from === … === to a <div class="gr-vyakhya-heading">.
  ─────────────────────────────────────────────────────────────────────────── */
/* (wiki h3 styling is sufficient; add overrides here if needed) */
/* ── vyakhya-pada ───────────────────────────────────────────────────────────
  Word-by-word (padaccheda / anvaya) analysis block that appears after the
  main commentary in yamakabharata-tika-yadupatyam.  Displayed in a smaller
  mono-spaced style to distinguish it from the prose commentary.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-vyakhya-pada {
    font-size: 0.88em;
    color: #555;
    background: #fafafa;
    border: 1px solid #e8e0d0;
    border-radius: 4px;
    padding: 0.5em 0.8em;
    margin: 0.6em 0;
    line-height: 1.6;
    white-space: pre-wrap;
}
/* ── vyakhya-gadya ──────────────────────────────────────────────────────────
  Section-label / heading gadya elements inside vyakhya-descriptors
  (e.g. "मङ्गलाचरणम्", "तत्वसामान्यलक्षणपरीक्षा" in tatvaviveka-tika).
  Displayed as a small, bold, centred Sanskrit heading.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-vyakhya-gadya {
    font-weight: bold;
    font-size: 0.95em;
    text-align: center;
    color: #8b1a1a;
    margin: 1em 0 0.4em 0;
    letter-spacing: 0.03em;
}
/* ── author-note (in vyakhya pages) ────────────────────────────────────────
  Colophon / completion note at end of a tika section
  (e.g. "इति श्रीपद्मनाभतीर्थभट्टारकविरचिता … समाप्ता").
  Displayed centred in a muted italic style.
  ─────────────────────────────────────────────────────────────────────────── */
.gr-author-note {
    font-style: italic;
    color: #666;
    text-align: center;
    font-size: 0.9em;
    margin: 1em 0 0.5em 0;
    border-top: 1px solid #ddd;
    padding-top: 0.5em;
}
}