MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 511: Line 511:
/* ── 10. VERSE BLOCKS ──────────────────────────────────────────── */
/* ── 10. VERSE BLOCKS ──────────────────────────────────────────── */
.shloka-block { display: block; text-align: left; margin: 3px 0 0; padding-bottom: 0.5em; }
.shloka-block { display: block; text-align: left; margin: 3px 0 0; padding-bottom: 0.5em; }
.shloka-line { display: block; font-style: normal; color: #333; line-height: 1.35; margin: 0; }
.shloka-line { display: block; font-style: normal; color: #333; line-height: 1.35; margin: 0;
  font-family: var(--font-indic); }
.verse-block { display: block; margin: 6px 0 0; text-align: left; }
.verse-block { display: block; margin: 6px 0 0; text-align: left; }
.verse-block .shloka-block { text-align: left; margin: 0; }
.verse-block .shloka-block { text-align: left; margin: 0; }
.verse-block .shloka-line {
.verse-block .shloka-line {
   display: block; font-weight: 500; line-height: 1.35; margin: 0; color: var(--maroon);
   display: block; font-weight: 500; line-height: 1.35; margin: 0; color: var(--maroon);
  font-family: var(--font-indic);
}
}
.verse-block.normal .shloka-line { color: #555; }
.verse-block.normal .shloka-line { color: #555; }
Line 543: Line 545:
   display: block; font-size: 1em; line-height: 1.6; color: #555;
   display: block; font-size: 1em; line-height: 1.6; color: #555;
   padding: 0; border: none; background: transparent;
   padding: 0; border: none; background: transparent;
  font-family: var(--font-indic);
}
}
.gr-bhashyam, .commentary-bhashyam {
.gr-bhashyam, .commentary-bhashyam {
Line 560: Line 563:
   padding: 6px 10px 8px; margin: 0.3em 0; line-height: 1.6; color: #555; background: #fcf5f3;
   padding: 6px 10px 8px; margin: 0.3em 0; line-height: 1.6; color: #555; background: #fcf5f3;
     border-radius: 12px;
     border-radius: 12px;
  font-family: var(--font-indic);
}
}
.teeka-title {
.teeka-title {
   font-family: 'AdishilaDev';, sans-serif !important;
   font-family: var(--font-indic) !important;
   font-size: 0.75em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
   font-size: 0.75em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
   margin-bottom: 4px; padding-bottom: 3px;
   margin-bottom: 4px; padding-bottom: 3px;
}
}
.teeka-body .shloka-block {
.teeka-body .shloka-block {
   margin: 0.4em 0; padding: 0.3em 0.6em; font-family: 'AdishilaDev';
   margin: 0.4em 0; padding: 0.3em 0.6em; font-family: var(--font-indic);
}
}
.teeka-body .shloka-line { font-size: 0.97em; font-family: 'AdishilaDev'; }
.teeka-body .shloka-line { font-size: 0.97em; font-family: var(--font-indic); }


/* ── 15. PRATEEKA / MOOLA ──────────────────────────────────────── */
/* ── 15. PRATEEKA / MOOLA ──────────────────────────────────────── */
Line 624: Line 628:
.gr-author-note {
.gr-author-note {
   font-style: italic; color: var(--maroon); text-align: center; font-size: 0.9em;
   font-style: italic; color: var(--maroon); text-align: center; font-size: 0.9em;
   margin: 0.8em 0 0.4em 0; border-top: 1px solid #ddd; padding-top: 0.4em; font-family: 'AdishilaDev'
   margin: 0.8em 0 0.4em 0; border-top: 1px solid #ddd; padding-top: 0.4em; font-family: var(--font-indic)
}
}
.gr-devatachandas {     
.gr-devatachandas {     
Line 2,519: Line 2,523:
.gr-teeka-dropdown-header {
.gr-teeka-dropdown-header {
   font-family: 'Adishila', 'Noto Serif Devanagari', system-ui, sans-serif;
   font-family: 'Adishila', 'Noto Serif Devanagari', system-ui, sans-serif;
   font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  /* CHANGED: fixed 11px -> scales with the reader's text size. */
   font-size: clamp(12px, calc(var(--gr-font-size, 22px) * 0.6), 17px); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
   color: #b5451b; padding: 10px 14px 6px; border-bottom: 1px solid #f7e4da; margin-bottom: 2px;
   color: #b5451b; padding: 10px 14px 6px; border-bottom: 1px solid #f7e4da; margin-bottom: 2px;
}
}
Line 2,525: Line 2,530:
.gr-teeka-dropdown-item {
.gr-teeka-dropdown-item {
   display: flex; align-items: center; gap: 9px; padding: 8px 14px;
   display: flex; align-items: center; gap: 9px; padding: 8px 14px;
   font-size: 14px; color: #3a2a20; cursor: pointer; white-space: nowrap;
  /* CHANGED: fixed 14px -> scales with the reader's text size. */
   font-size: clamp(15px, calc(var(--gr-font-size, 22px) * 0.82), 26px);
  font-family: var(--font-indic);
  color: #3a2a20; cursor: pointer; white-space: nowrap;
   transition: background .12s;
   transition: background .12s;
}
}
Line 2,723: Line 2,731:
}
}
.gr-note-card-kind {
.gr-note-card-kind {
   font-family: var(--font-indic); font-size: 14px; font-weight: 600; color: #b5451b;
   font-family: var(--font-indic); font-weight: 600; color: #b5451b;
  /* CHANGED: fixed 14px -> scales with the reader's text size. */
  font-size: clamp(14px, calc(var(--gr-font-size, 22px) * 0.72), 22px);
}
}
.gr-note-card-close {
.gr-note-card-close {
Line 2,733: Line 2,743:
.gr-note-card-body {
.gr-note-card-body {
   padding: 13px 14px 15px;
   padding: 13px 14px 15px;
   font-family: var(--font-indic); font-size: 17px; line-height: 1.7; color: #2c1810;
   font-family: var(--font-indic); line-height: 1.7; color: #2c1810;
  /* CHANGED: fixed 17px against 22px body text -> scales with it. */
  font-size: clamp(16px, calc(var(--gr-font-size, 22px) * 0.94), 30px);
   max-height: 46vh; overflow-y: auto; overflow-wrap: anywhere;
   max-height: 46vh; overflow-y: auto; overflow-wrap: anywhere;
}
}
Line 2,745: Line 2,757:
     box-shadow: 0 -8px 30px rgba(60, 20, 10, 0.2);
     box-shadow: 0 -8px 30px rgba(60, 20, 10, 0.2);
   }
   }
   .gr-note-card-body { font-size: 16px; max-height: 50vh; }
   .gr-note-card-body { font-size: clamp(16px, calc(var(--gr-font-size, 22px) * 0.9), 26px); max-height: 50vh; }
}
}


Line 2,755: Line 2,767:
   .gra-qe-footnotes.gr-notes-listed { display: block; margin-top: 28px; padding-top: 12px; border-top: 1px solid #ccc; }
   .gra-qe-footnotes.gr-notes-listed { display: block; margin-top: 28px; padding-top: 12px; border-top: 1px solid #ccc; }
   .gra-qe-footnote-quote { font-weight: 600; margin-right: 6px; }
   .gra-qe-footnote-quote { font-weight: 600; margin-right: 6px; }
  .gra-qe-footnote-item,
  .gra-qe-footnote-text { font-family: var(--font-indic); }
}
}
/* ── 39. LINE ALIGNMENT CARRIED FROM THE SOURCE DOCUMENT ──────────
  A converted document puts one of these on a line whose source
  paragraph carried an explicit alignment (Katha sets 288 paragraphs
  CENTER - every invocation and colophon). New classes only: no existing
  rule is overridden, and a line whose source set no alignment gets no
  class and keeps whatever the site already gives it. */
.gr-align-center  { text-align: center; }
.gr-align-right  { text-align: right; }
.gr-align-justify { text-align: justify; }