Jump to content

MediaWiki:Common.css: Difference between revisions

From Grantha
No edit summary
No edit summary
Line 13: Line 13:
}
}


/* ── Base ─────────────────────────────────────────────────────────
/* ── Force Adishila everywhere ──────────────────────────────────
   font-size is NOT set with !important — ReaderToolbar JS owns it.
  MW sets font-family on html/body, sidebar, etc. We override
  20px is the no-JS fallback only.
  everything inside .mw-parser-output and key page elements.
  ────────────────────────────────────────────────────────────────*/
.mw-parser-output,
.mw-parser-output *,
.mw-parser-output pre,
.mw-parser-output code,
.mw-parser-output tt,
.mw-parser-output kbd {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
}
 
/* ── Base ────────────────────────────────────────────────────────
   font-size NOT !important — ReaderToolbar JS owns it.
   ────────────────────────────────────────────────────────────────*/
   ────────────────────────────────────────────────────────────────*/
.mw-parser-output {
.mw-parser-output {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif;
   font-size: 20px;
   font-size: 20px;
   line-height: 1.75;
   line-height: 1.75;
   color: #555;                 /* ref: body color */
   color: #555;
   max-width: 820px;
   max-width: 820px;
   margin: 0 auto;
   margin: 0 auto;
}
}


.mw-parser-output p,
/* ── Headings — reset all MW defaults ───────────────────────────*/
.mw-parser-output li,
.mw-parser-output td,
.mw-parser-output span,
.mw-parser-output div {
  font-family: inherit;
  font-size: 1em;
  line-height: inherit;
}
 
/* ── Headings ───────────────────────────────────────────────────*/
.mw-parser-output h1,
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h2,
Line 42: Line 43:
.mw-parser-output h4,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h5,
.mw-parser-output h6 {
.mw-parser-output h6,
   font-family: inherit;
.mw-parser-output .mw-heading h1,
   font-size: 1em;
.mw-parser-output .mw-heading h2,
.mw-parser-output .mw-heading h3,
.mw-parser-output .mw-heading h4 {
   font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
   font-size: 1em !important;
   font-weight: bold;
   font-weight: bold;
   line-height: 1.75;
   line-height: 1.75;
   margin: 1.4rem 0 0.2rem;
   margin: 1.4rem 0 0.2rem;
   border: none;
   border: none !important;
  border-bottom: none !important;
  padding: 0 !important;
  color: inherit;
  background: none !important;
}
 
/* MW Vector 2022 wraps headings in .mw-heading divs */
.mw-parser-output .mw-heading {
  border: none !important;
  border-bottom: none !important;
  margin: 0;
   padding: 0;
   padding: 0;
  color: inherit;
}
}


/* ── Adhyaya heading (== ==) — orange dotted underline ──────────*/
.mw-parser-output .mw-heading2 h2,
.mw-parser-output h2 {
.mw-parser-output h2 {
   font-size: 1.1em;
   font-size: 1.1em !important;
  font-weight: 500 !important;
  color: #f57c00 !important;
  line-height: 2.4;
  margin: 20px 0 0 !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: 2px dotted #f57c00 !important;
  width: 75%;
}
}


/* ── Paragraphs ─────────────────────────────────────────────────*/
/* ── Adhikarana heading (=== ===) — deep orange dotted ──────────*/
.mw-parser-output p {
.mw-parser-output .mw-heading3 h3,
   margin: 0 0 0.85rem;
.mw-parser-output h3 {
  font-size: 1em !important;
  font-weight: 500 !important;
  color: #e65100 !important;
  line-height: 1.6;
  padding-top: 30px !important;
   margin-bottom: 30px !important;
  border: none !important;
  border-bottom: 1px dotted #e65100 !important;
  width: 50%;
}
}


/* Hide MW edit pencil icons on headings */
.mw-heading .mw-editsection { display: none !important; }
/* ── Paragraphs ─────────────────────────────────────────────────*/
.mw-parser-output p { margin: 0 0 0.85rem; }
.mw-parser-output p:empty,
.mw-parser-output p:empty,
.mw-parser-output > div > p:empty {
.mw-parser-output > div > p:empty,
.mw-heading + p:empty,
.mw-heading2 + p:empty,
.adhyaya-block + p:empty,
.verse-block + p:empty {
   display: none !important;
   display: none !important;
   margin: 0 !important;
   margin: 0 !important;
  line-height: 0 !important;
}
}


.mw-parser-output div[style*="font-size"] > p {
/* ── Shloka block (pramana / stotra verses) ─────────────────────
   margin: 0 !important;
  Centered, italic, #be100e — matches reference site
  ────────────────────────────────────────────────────────────────*/
.shloka-block {
  display: block;
  text-align: center;
  margin: 0.8rem 0 1.2rem;
}
 
.shloka-line {
  display: block;
  font-style: italic;
  color: #be100e;
   line-height: 2;
}
}


/* ── Shloka block ────────────────────────────────────────────────
/* ── Verse block (VerseBlock template) ──────────────────────────
   ref: .shloka p — italic, #be100e, centred
   Shloka text: centered, italic, #be100e, clear top margin
   ────────────────────────────────────────────────────────────────*/
   ────────────────────────────────────────────────────────────────*/
.shloka-block {
.verse-block {
   display: block;
   display: block;
  font-family: inherit;
   margin: 1.2rem 0 0.4rem;
  font-size: 1em;
   text-align: center;
   margin: 0.5rem 0 1rem 0;
  padding-left: 0;
   text-align: center;           /* ref: text-align:center */
}
}


.shloka-line {
.verse-block .shloka-block {
   display: flex;
   text-align: center;
  align-items: center;
  justify-content: center;      /* centred, matching reference */ line-height: 1.8;
  font-style: italic;          /* ref: font-style: italic */
  color: #be100e;              /* ref: .shloka p color */
  padding: 0;
  margin: 0;
}
}


.shloka-line > *:first-child {
.verse-block .shloka-line {
   flex: 1;
  display: block;
  font-style: italic;
  color: #be100e;
  font-weight: normal;
   line-height: 2;
}
}


/* ── Bhashyam: primary commentary, plain running prose ──────────
/* Suppress empty p after verse-block */
   ref: .sutra .bhashya-content — color #555, margin-left 60px
.verse-block + p { display: none !important; margin: 0 !important; }
 
/* ── Uvacha block ────────────────────────────────────────────────
  Speaker attribution: left-aligned, bold, dark color
   e.g. "धृतराष्ट्र उवाच", "अर्जुन उवाच"
   ────────────────────────────────────────────────────────────────*/
   ────────────────────────────────────────────────────────────────*/
.uvacha-block {
  display: block;
  font-weight: bold;
  color: #333;
  margin: 1.2rem 0 0.3rem;
  text-align: left;
  font-style: normal;
}
/* ── Bhashyam: primary commentary, plain running prose ──────────*/
.bhashyam-block {
.bhashyam-block {
   display: block;
   display: block;
  font-family: inherit;
   font-size: 1em;
   font-size: 1em;
   line-height: 1.85;
   line-height: 1.85;
Line 114: Line 176:
}
}


/* ── Teeka: sub-commentary in a titled grey bubble ──────────────
/* ── Teeka: sub-commentary in a titled grey bubble ──────────────*/
  ref: nyaya-collection — indented, padded box
  ────────────────────────────────────────────────────────────────*/
.teeka-block {
.teeka-block {
   display: block;
   display: block;
Line 130: Line 190:


.teeka-title {
.teeka-title {
   font-family: system-ui, -apple-system, sans-serif;
   font-family: system-ui, -apple-system, sans-serif !important;
   font-size: 0.78em;
   font-size: 0.78em;
   font-weight: 600;
   font-weight: 600;
Line 141: Line 201:
}
}


.teeka-body {
.teeka-body { font-family: inherit; }
  font-family: inherit;
}
 
/* ── Cargo store ────────────────────────────────────────────────*/
.cargo-store-only {
  display: none !important;
}


/* ── Adhyaya ─────────────────────────────────────────────────────
/* ── Adhyaya block ───────────────────────────────────────────────*/
  ref: .adhyaya-heading / .paada-heading
    font-size 24px → 1.1em relative, color #f57c00,
    border-bottom: 2px dotted #f57c00, width 75%
  ────────────────────────────────────────────────────────────────*/
.adhyaya-block {
.adhyaya-block {
  font-family: inherit;
   margin: 0 0 4px;
   margin: 32px 0 0;             /* no bottom margin — content follows immediately */
  text-align: left;
  border: none;                /* no hr/divider from the block itself */
}
 
/* Remove any <hr> that MediaWiki auto-inserts after the block */
.adhyaya-block + hr,
.adhyaya-block hr {
  display: none !important;
}
 
/* Also suppress empty paragraphs MW inserts between templates */
.adhyaya-block + p:empty {
  display: none !important;
  margin: 0 !important;
}
 
.adhyaya-block h2 {
  font-size: 1.1em;            /* ref: font-size 24px / 20px base ≈ 1.2em */
  font-weight: 500;            /* ref: font-weight 500 */
  color: #f57c00;              /* ref: .adhyaya-heading color */
  line-height: 2.4;            /* ref: line-height 48px */
  margin: 0;
  padding-top: 20px;
  padding-bottom: 0;
  border: none;
  border-bottom: 2px dotted #f57c00;  /* ref: border-bottom */
  width: 75%;                  /* ref: width 75% */
}
}
 
.adhyaya-trans {
.adhyaya-heading {
  font-family: inherit;
  font-size: 1.1em;
  font-weight: 500;
  color: #f57c00;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 2.4;
  border-bottom: 2px dotted #f57c00;
  width: 75%;
}
 
.adhyaya-heading span,
.adhyaya-block p {
   font-size: 0.9em;
   font-size: 0.9em;
   color: #666;
   color: #666;
   margin-top: 2px;
   margin: 2px 0 0;
}
 
.adhyaya-anchor {
  opacity: 0;
  transition: opacity 0.2s;
}
 
.adhyaya-heading:hover .adhyaya-anchor {
  opacity: 0.7;
}
 
.adhyaya-intro.mw-collapsible {
  font-family: inherit;
}
}
.adhyaya-intro {
.adhyaya-intro {
   margin-top: 10px;
   margin-top: 10px;
   line-height: 1.85;
   line-height: 1.85;
   color: #555;                 /* ref: body color */
   color: #555;
}
 
/* ── Adhikarana heading ──────────────────────────────────────────
  ref: .adhikarana-heading
    color #e65100, border-bottom 1px dotted #e65100, width 50%
  ────────────────────────────────────────────────────────────────*/
.mw-parser-output h3 {
  font-size: 1em;
  font-weight: 500;            /* ref: font-weight 500 */
  color: #e65100;              /* ref: .adhikarana-heading color */
  line-height: 1.6;            /* ref: line-height 32px */
  padding-top: 30px;
  margin-bottom: 30px;
  border-bottom: 1px dotted #e65100;  /* ref: border-bottom */
  width: 50%;                  /* ref: width 50% */
}
}


/* ── Nyaya ──────────────────────────────────────────────────────*/
/* ── Nyaya ──────────────────────────────────────────────────────*/
.nyaya-block {
.nyaya-block {
  font-family: inherit;
   margin: 40px 0;
   margin: 40px 0;
   padding-top: 14px;
   padding-top: 14px;
   border-top: 1px solid #eee;
   border-top: 1px solid #eee;
}
}
.nyaya-block a[href^="#"] {
  opacity: 0;
  transition: opacity 0.2s;
}
.nyaya-block:hover a[href^="#"] {
  opacity: 0.7;
}
.nyaya-title {
.nyaya-title {
   font-size: 1em;
   font-size: 1em;
   font-weight: 500;
   font-weight: 500;
   color: #e65100;               /* ref: adhikarana-level orange */
   color: #e65100;
   margin-bottom: 0.4rem;
   margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
   border-bottom: 1px dotted #e65100;
   border-bottom: 1px dotted #e65100;
   width: 50%;
   width: 50%;
}
}
 
.nyaya-title span { display: block; font-size: 0.85em; color: #666; }
.nyaya-title span {
.nyaya-body { color: #555; line-height: 1.85; margin-top: 0.5rem; }
  display: block;
  font-size: 0.85em;
  color: #666;
}
 
.nyaya-body {
  color: #555;
  line-height: 1.85;
  margin-top: 0.5rem;
}


/* ── Prasna ─────────────────────────────────────────────────────*/
/* ── Prasna ─────────────────────────────────────────────────────*/
.prasna-block {
.prasna-block {
  font-family: inherit;
   margin: 40px 0;
   margin: 40px 0;
   padding-top: 14px;
   padding-top: 14px;
   border-top: 1px solid #eee;
   border-top: 1px solid #eee;
}
}
.prasna-block a[href^="#"] {
  opacity: 0;
  transition: opacity 0.2s;
}
.prasna-block:hover a[href^="#"] {
  opacity: 0.7;
}
.prasna-title {
.prasna-title {
   font-size: 1em;
   font-size: 1em;
   font-weight: 500;
   font-weight: 500;
   color: #e65100;               /* ref: adhikarana-level orange */
   color: #e65100;
   margin-bottom: 0.4rem;
   margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
   border-bottom: 1px dotted #e65100;
   border-bottom: 1px dotted #e65100;
   width: 50%;
   width: 50%;
}
}
 
.prasna-title span { display: block; font-size: 0.85em; color: #666; }
.prasna-title span {
.prasna-question, .prasna-answer { color: #555; line-height: 1.85; margin-top: 0.5rem; }
  display: block;
.prasna-answer { margin-left: 60px; }
  font-size: 0.85em;
  color: #666;
}
 
.prasna-question,
.prasna-answer {
  color: #555;
  line-height: 1.85;
  margin-top: 0.5rem;
}
 
.prasna-answer {
  margin-left: 60px;
}
 
/* ── ID chips ───────────────────────────────────────────────────*/
.nyaya-id,
.prasna-id {
  font-family: 'Consolas', 'Liberation Mono', monospace;
}
 
/* ── Verse block ─────────────────────────────────────────────────
  ref: .verse-text — color #c65, font-weight 500
  ────────────────────────────────────────────────────────────────*/
.verse-block {
  display: flex;
  flex-direction: column;}
 
.verse-block:hover {
  background: #fafafa;
}
 
.verse-block + p {
  display: none !important;
  margin: 0 !important;
}
 
/* Shloka lines inside VerseBlock inherit the verse color */
.verse-block .shloka-block {
  text-align: left;            /* verse references stay left-aligned */
}
 
.verse-block .shloka-line {
  justify-content: flex-start;
  font-style: normal;
  color: #c65;                  /* ref: .verse-text color */
  font-weight: 500;            /* ref: .verse-text font-weight */
}
 
.verse-text {
  display: inline;
  font-size: 1em;
  font-weight: 500;            /* ref: font-weight 500 */
  color: #c65;                  /* ref: color #c65 */
  line-height: 1.75;
  letter-spacing: 0.01em;
}


/* ── Verse actions ──────────────────────────────────────────────*/
/* ── Verse actions ──────────────────────────────────────────────*/
Line 374: Line 261:
   margin-top: 6px;
   margin-top: 6px;
   padding-left: 2px;
   padding-left: 2px;
  justify-content: center;
}
}
.verse-action-btn {
.verse-action-btn {
   display: inline-flex;
   display: inline-flex;
Line 386: Line 273:
   transition: all 0.2s ease;
   transition: all 0.2s ease;
}
}
 
.verse-action-btn:hover { opacity: 1; background-color: rgba(0,0,0,0.05); }
.verse-action-btn:hover {
  opacity: 1;
  background-color: rgba(0,0,0,0.05);
  transform: scale(1.05);
}
 
.verse-action-commentary {
  opacity: 0.7;
}
 
.verse-action-commentary.active {
  background-color: rgba(0, 0, 0, 0.08);
  opacity: 1;
}
 
.verse-action-commentary.active .icon {
  filter: invert(25%) sepia(80%) saturate(500%) hue-rotate(200deg);
}


/* ── Icons ──────────────────────────────────────────────────────*/
/* ── Icons ──────────────────────────────────────────────────────*/
.icon {
.icon {
   display: inline-block;
   display: inline-block;
   width: 18px;
   width: 18px; height: 18px;
  height: 18px;
   background-repeat: no-repeat;
   background-repeat: no-repeat;
   background-position: center;
   background-position: center;
Line 417: Line 285:
   pointer-events: none;
   pointer-events: none;
}
}
 
.icon-copy { background-image: url('/images/copy.svg'); }
.icon-copy {
.icon-commentary { background-image: url('/images/commentary.svg'); }
  background-image: url('/images/copy.svg');
}
 
.icon-commentary {
  background-image: url('/images/commentary.svg');
}
 
/* ── CopyID button ──────────────────────────────────────────────*/
.copy-id-btn {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  cursor: pointer;
  background-image: url('/images/copy.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


/* ── Copy tooltip ───────────────────────────────────────────────*/
/* ── Copy tooltip ───────────────────────────────────────────────*/
Line 454: Line 303:
   font-size: 0.75rem;
   font-size: 0.75rem;
   font-weight: 500;
   font-weight: 500;
  letter-spacing: 0.02em;
   background: rgba(30,30,30,0.82);
   background: rgba(30, 30, 30, 0.82);
   color: #fff;
   color: #fff;
   backdrop-filter: blur(6px);
   backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
   opacity: 0;
   opacity: 0;
   transition: opacity 0.2s ease, transform 0.2s ease;
   transition: opacity 0.2s ease, transform 0.2s ease;
}
}
.copy-tooltip.copy-tooltip-visible {
.copy-tooltip.copy-tooltip-visible {
   opacity: 1;
   opacity: 1;
Line 470: Line 315:


/* ── Code blocks ────────────────────────────────────────────────*/
/* ── Code blocks ────────────────────────────────────────────────*/
pre, code, .mw-code {
pre, code, .mw-code, tt, kbd {
   background-color: transparent;
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
   border: none;
   background-color: transparent !important;
   padding: 0.5em;
   border: none !important;
   line-height: 1;
   padding: 0.3em 0 !important;
   margin: 0.5em;
   line-height: 1.75;
}
 
/* ── mw-collapsible resets ──────────────────────────────────────*/
.mw-collapsible,
.mw-collapsible-content,
blockquote,
.quotebox {
  background-color: transparent !important;
  border: none !important;
  font-style: normal !important;
  padding: 0 !important;
  margin-left: 0 !important;
}
 
/* ── Cargo store hidden ─────────────────────────────────────────*/
.cargo-store-only { display: none !important; }
 
/* ── Main page (gr-home) ─────────────────────────────────────────*/
.gr-home {
  max-width: 820px;
   margin: 0 auto;
  padding: 0;
}
.gr-home-group { margin-bottom: 32px; }
.gr-home-group-title {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
  font-size: 1em !important;
  font-weight: 700;
  color: #1a2e40;
  border: none !important;
  border-bottom: 2px solid #1a2e40 !important;
  width: 100%;
  padding-bottom: 4px;
  margin: 0 0 12px !important;
  line-height: 1.75;
}
.gr-home-section { margin-bottom: 16px; }
.gr-home-section-title {
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #e65100;
  margin-bottom: 6px;
}
.gr-home-list {
  list-style: decimal;
  margin: 0 0 0 1.4em;
  padding: 0;
}
}
.gr-home-list li { font-size: 1em; line-height: 1.9; color: #333; }
.gr-home-list li a { color: #1a2e40; text-decoration: none; }
.gr-home-list li a:hover { color: #f57c00; }
.gr-home-list li a.new { color: #aaa; }
.gr-home-note { font-size: 0.85em; color: #888; }


/* ── Modals ─────────────────────────────────────────────────────*/
/* ── Modals ─────────────────────────────────────────────────────*/
Line 488: Line 388:
   margin-right: 10px;
   margin-right: 10px;
}
}
.grantha-modal {
.grantha-modal {
   position: fixed;
   position: fixed; inset: 0;
  inset: 0;
   background: rgba(0,0,0,0.35);
   background: rgba(0,0,0,0.35);
   display: flex;
   display: flex; align-items: center; justify-content: center;
  align-items: center;
  justify-content: center;
   z-index: 10000;
   z-index: 10000;
}
}
.grantha-modal-box {
.grantha-modal-box {
   background: white;
   background: white; padding: 20px;
  padding: 20px;
   border-radius: 10px; width: 300px;
   border-radius: 10px;
  width: 300px;
}
}
.gm-title { font-weight: bold; margin-bottom: 10px; }
.gm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }


.gm-title {
/* ── Main page sidebar hide ─────────────────────────────────────*/
  font-weight: bold;
  margin-bottom: 10px;
}
 
.gm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
 
/* ── Main page ──────────────────────────────────────────────────*/
body.page-Main_Page #mw-panel,
body.page-Main_Page #mw-panel,
body.page-Main_Page .vector-sidebar-container {
body.page-Main_Page .vector-sidebar-container { display: none !important; }
  display: none !important;
body.page-Main_Page #footer { display: none !important; }
}
 
body.page-Main_Page #footer {
  display: none !important;
}
 
#se-home {
  max-width: 700px;
  margin: 40px auto;
}
 
.se-docrow {
  cursor: pointer;
}
 
.se-docrow-title {
  text-decoration: none;
  color: #1a2e40;
}
 
.se-docrow:hover {
  background: #f4f7fb;
}


/* ── Responsive ─────────────────────────────────────────────────*/
/* ── Responsive ─────────────────────────────────────────────────*/
@media (max-width: 600px) {
@media (max-width: 600px) {
   .mw-parser-output {
   .mw-parser-output { font-size: 16px; }
    font-size: 16px;
   .mw-parser-output h2,
  }
   .mw-parser-output .mw-heading2 h2 { width: 100% !important; }
   .nyaya-id,
   .mw-parser-output h3,
   .prasna-id,
   .mw-parser-output .mw-heading3 h3 { width: 100% !important; }
  .adhyaya-anchor {
   .nyaya-title, .prasna-title { width: 100%; }
    display: none;
   .bhashyam-block, .teeka-block { margin-left: 10px; }
  }
   .adhyaya-block h2,
   .adhyaya-heading,
   .nyaya-title,
  .prasna-title,
   .mw-parser-output h3 {
    width: 100%;
  }
}
}


/* ════════════════════════════════════════════════════════════════
/* ════════════════════════════════════════════════════════════════
   VECTOR 2022 HEADER
   VECTOR 2022 HEADER
  Navy background, white logo/icons, white search input box
   ════════════════════════════════════════════════════════════════*/
   ════════════════════════════════════════════════════════════════*/
/* ── Header background ──────────────────────────────────────────*/
.vector-header-container {
.vector-header-container {
   background: #1a2e40 !important;
   background: #1a2e40 !important;
   border-bottom: 1px solid rgba(255,255,255,0.08);
   border-bottom: 1px solid rgba(255,255,255,0.08);
}
}
.vector-header {
.vector-header {
   background: transparent !important;
   background: transparent !important;
Line 585: Line 433:
   padding-right: 20px !important;
   padding-right: 20px !important;
}
}
/* ── Header layout ──────────────────────────────────────────────*/
.vector-header-start {
.vector-header-start {
   flex: 0 0 auto !important;
   flex: 0 0 auto !important;
Line 593: Line 439:
   gap: 12px;
   gap: 12px;
}
}
.vector-header-end {
.vector-header-end {
   flex: 0 0 auto !important;
   flex: 0 0 auto !important;
Line 601: Line 446:
   margin-left: auto;
   margin-left: auto;
}
}
 
.mw-logo { display: flex !important; align-items: center; opacity: 1 !important; }
/* ── Logo ───────────────────────────────────────────────────────*/
.mw-logo-wordmark { color: #ffffff !important; font-weight: 700; font-size: 18px; }
.mw-logo {
.mw-logo-icon { content: url('/favicon.ico'); width: 24px; height: 24px; }
  display: flex !important;
.vector-header .vector-icon { filter: invert(1); opacity: 0.9; }
  align-items: center;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
 
.mw-logo-wordmark {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
 
.mw-logo-icon {
  content: url('/favicon.ico');
  width: 24px;
  height: 24px;
}
 
/* ── Header icons (watchlist, user, etc.) — white, NOT search ───*/
.vector-header .vector-icon {
  filter: invert(1);
  opacity: 0.9;
}
 
/* Search icon must NOT be inverted — it sits on a white input */
.cdx-search-input .vector-icon,
.cdx-search-input .vector-icon,
.cdx-search-input svg,
.cdx-search-input svg,
Line 637: Line 456:
.cdx-search-input__end-button svg,
.cdx-search-input__end-button svg,
.cdx-search-input__end-button path {
.cdx-search-input__end-button path {
   filter: none !important;
   filter: none !important; fill: #202124 !important; opacity: 1 !important;
  fill: #202124 !important;
  opacity: 1 !important;
}
 
/* ── Header text/links (user menu etc.) ─────────────────────────*/
.vector-header-end > *:not(#p-search) {
  color: rgba(255,255,255,0.9) !important;
}
 
.vector-user-links a {
  color: rgba(255,255,255,0.9) !important;
}
 
/* ════════════════════════════════════════════════════════════════
  SEARCH BOX
  White input, dark text, fixed width — never breaks header layout
  ════════════════════════════════════════════════════════════════*/
 
#p-search {
  margin-left: 8px;
}
}
.vector-header-end > *:not(#p-search) { color: rgba(255,255,255,0.9) !important; }
.vector-user-links a { color: rgba(255,255,255,0.9) !important; }


/* ── Search ─────────────────────────────────────────────────────*/
#p-search { margin-left: 8px; }
.vector-search-box,
.vector-search-box,
.vector-search-box-expanded,
.vector-search-box-expanded,
.vector-search-box-auto-expand-width {
.vector-search-box-auto-expand-width {
   min-width: 0 !important;
   min-width: 0 !important; flex-grow: 0 !important;
  flex-grow: 0 !important;
   position: relative !important; margin: 0 !important;
   position: relative !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
}
}
.cdx-search-input__input,
.cdx-search-input__input,
.cdx-text-input__input {
.cdx-text-input__input {
Line 678: Line 476:
   color: #202124 !important;
   color: #202124 !important;
   padding: 6px 10px !important;
   padding: 6px 10px !important;
   opacity: 1 !important;
   font-family: system-ui, sans-serif !important;
}
}
.cdx-search-input__input::placeholder,
.cdx-search-input__input::placeholder,
.cdx-text-input__input::placeholder {
.cdx-text-input__input::placeholder {
   color: rgba(32, 33, 36, 0.5) !important;
   color: rgba(32,33,36,0.5) !important;
  opacity: 1 !important;
}
 
.cdx-search-input__end-button {
  background: transparent !important;
  border: none !important;
}
}
 
.cdx-search-input__end-button { background: transparent !important; border: none !important; }
/* ── Dropdown ───────────────────────────────────────────────────*/
.cdx-typeahead-search,
.cdx-typeahead-search,
.cdx-typeahead-search__menu,
.cdx-typeahead-search__menu,
.cdx-menu {
.cdx-menu {
   background: #ffffff !important;
   background: #ffffff !important; color: #202124 !important;
  color: #202124 !important;
   border-radius: 10px !important;
   border-radius: 10px !important;
   box-shadow: 0 6px 24px rgba(0,0,0,0.2) !important;
   box-shadow: 0 6px 24px rgba(0,0,0,0.2) !important;
   filter: none !important;
   filter: none !important;
}
}
 
.cdx-menu-item, .cdx-menu-item * { color: #202124 !important; filter: none !important; }
.cdx-menu-item,
.cdx-menu-item * {
  color: #202124 !important;
  filter: none !important;
}
 
.cdx-menu-item:hover,
.cdx-menu-item:hover,
.cdx-menu-item--active,
.cdx-menu-item--active,
.cdx-menu-item--selected {
.cdx-menu-item--selected { background: #f1f3f4 !important; }
  background: #f1f3f4 !important;
  color: #202124 !important;
}
 
.cdx-menu-item__icon,
.cdx-menu-item__icon,
.cdx-menu-item__icon svg,
.cdx-menu-item__icon svg,
.cdx-menu-item__icon path {
.cdx-menu-item__icon path { fill: #202124 !important; filter: none !important; }
  fill: #202124 !important;
  filter: none !important;
}

Revision as of 18:42, 10 April 2026

@font-face {
  font-family: "Adishila";
  src: url("/resources/fonts/adishila/Adishila.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Adishila";
  src: url("/resources/fonts/adishila/AdishilaBold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

/* ── Force Adishila everywhere ──────────────────────────────────
   MW sets font-family on html/body, sidebar, etc. We override
   everything inside .mw-parser-output and key page elements.
   ────────────────────────────────────────────────────────────────*/
.mw-parser-output,
.mw-parser-output *,
.mw-parser-output pre,
.mw-parser-output code,
.mw-parser-output tt,
.mw-parser-output kbd {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
}

/* ── Base ────────────────────────────────────────────────────────
   font-size NOT !important — ReaderToolbar JS owns it.
   ────────────────────────────────────────────────────────────────*/
.mw-parser-output {
  font-size: 20px;
  line-height: 1.75;
  color: #555;
  max-width: 820px;
  margin: 0 auto;
}

/* ── Headings — reset all MW defaults ───────────────────────────*/
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6,
.mw-parser-output .mw-heading h1,
.mw-parser-output .mw-heading h2,
.mw-parser-output .mw-heading h3,
.mw-parser-output .mw-heading h4 {
  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-bottom: none !important;
  padding: 0 !important;
  color: inherit;
  background: none !important;
}

/* MW Vector 2022 wraps headings in .mw-heading divs */
.mw-parser-output .mw-heading {
  border: none !important;
  border-bottom: none !important;
  margin: 0;
  padding: 0;
}

/* ── Adhyaya heading (== ==) — orange dotted underline ──────────*/
.mw-parser-output .mw-heading2 h2,
.mw-parser-output h2 {
  font-size: 1.1em !important;
  font-weight: 500 !important;
  color: #f57c00 !important;
  line-height: 2.4;
  margin: 20px 0 0 !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: 2px dotted #f57c00 !important;
  width: 75%;
}

/* ── Adhikarana heading (=== ===) — deep orange dotted ──────────*/
.mw-parser-output .mw-heading3 h3,
.mw-parser-output h3 {
  font-size: 1em !important;
  font-weight: 500 !important;
  color: #e65100 !important;
  line-height: 1.6;
  padding-top: 30px !important;
  margin-bottom: 30px !important;
  border: none !important;
  border-bottom: 1px dotted #e65100 !important;
  width: 50%;
}

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

/* ── Paragraphs ─────────────────────────────────────────────────*/
.mw-parser-output p { margin: 0 0 0.85rem; }
.mw-parser-output p:empty,
.mw-parser-output > div > p:empty,
.mw-heading + p:empty,
.mw-heading2 + p:empty,
.adhyaya-block + p:empty,
.verse-block + p:empty {
  display: none !important;
  margin: 0 !important;
}

/* ── Shloka block (pramana / stotra verses) ─────────────────────
   Centered, italic, #be100e — matches reference site
   ────────────────────────────────────────────────────────────────*/
.shloka-block {
  display: block;
  text-align: center;
  margin: 0.8rem 0 1.2rem;
}

.shloka-line {
  display: block;
  font-style: italic;
  color: #be100e;
  line-height: 2;
}

/* ── Verse block (VerseBlock template) ──────────────────────────
   Shloka text: centered, italic, #be100e, clear top margin
   ────────────────────────────────────────────────────────────────*/
.verse-block {
  display: block;
  margin: 1.2rem 0 0.4rem;
  text-align: center;
}

.verse-block .shloka-block {
  text-align: center;
}

.verse-block .shloka-line {
  display: block;
  font-style: italic;
  color: #be100e;
  font-weight: normal;
  line-height: 2;
}

/* Suppress empty p after verse-block */
.verse-block + p { display: none !important; margin: 0 !important; }

/* ── Uvacha block ────────────────────────────────────────────────
   Speaker attribution: left-aligned, bold, dark color
   e.g. "धृतराष्ट्र उवाच", "अर्जुन उवाच"
   ────────────────────────────────────────────────────────────────*/
.uvacha-block {
  display: block;
  font-weight: bold;
  color: #333;
  margin: 1.2rem 0 0.3rem;
  text-align: left;
  font-style: normal;
}

/* ── Bhashyam: primary commentary, plain running prose ──────────*/
.bhashyam-block {
  display: block;
  font-size: 1em;
  line-height: 1.85;
  color: #555;
  margin: 0.55em 0 0.8em 60px;
  padding: 0;
  border: none;
  background: transparent;
}

/* ── Teeka: sub-commentary in a titled grey bubble ──────────────*/
.teeka-block {
  display: block;
  background: #f6f6f7;
  border: 1px solid #e2e2e6;
  border-radius: 8px;
  padding: 10px 14px 12px;
  margin: 0.7em 0 0.7em 60px;
  font-size: 0.93em;
  line-height: 1.8;
  color: #555;
}

.teeka-title {
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
}

.teeka-body { font-family: inherit; }

/* ── Adhyaya block ───────────────────────────────────────────────*/
.adhyaya-block {
  margin: 0 0 4px;
}
.adhyaya-trans {
  font-size: 0.9em;
  color: #666;
  margin: 2px 0 0;
}
.adhyaya-intro {
  margin-top: 10px;
  line-height: 1.85;
  color: #555;
}

/* ── Nyaya ──────────────────────────────────────────────────────*/
.nyaya-block {
  margin: 40px 0;
  padding-top: 14px;
  border-top: 1px solid #eee;
}
.nyaya-title {
  font-size: 1em;
  font-weight: 500;
  color: #e65100;
  margin-bottom: 0.4rem;
  border-bottom: 1px dotted #e65100;
  width: 50%;
}
.nyaya-title span { display: block; font-size: 0.85em; color: #666; }
.nyaya-body { color: #555; line-height: 1.85; margin-top: 0.5rem; }

/* ── Prasna ─────────────────────────────────────────────────────*/
.prasna-block {
  margin: 40px 0;
  padding-top: 14px;
  border-top: 1px solid #eee;
}
.prasna-title {
  font-size: 1em;
  font-weight: 500;
  color: #e65100;
  margin-bottom: 0.4rem;
  border-bottom: 1px dotted #e65100;
  width: 50%;
}
.prasna-title span { display: block; font-size: 0.85em; color: #666; }
.prasna-question, .prasna-answer { color: #555; line-height: 1.85; margin-top: 0.5rem; }
.prasna-answer { margin-left: 60px; }

/* ── Verse actions ──────────────────────────────────────────────*/
.verse-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-left: 2px;
  justify-content: center;
}
.verse-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.75;
  transition: all 0.2s ease;
}
.verse-action-btn:hover { opacity: 1; background-color: rgba(0,0,0,0.05); }

/* ── Icons ──────────────────────────────────────────────────────*/
.icon {
  display: inline-block;
  width: 18px; height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translateY(2px);
  pointer-events: none;
}
.icon-copy { background-image: url('/images/copy.svg'); }
.icon-commentary { background-image: url('/images/commentary.svg'); }

/* ── Copy tooltip ───────────────────────────────────────────────*/
.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(30,30,30,0.82);
  color: #fff;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.copy-tooltip.copy-tooltip-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Code blocks ────────────────────────────────────────────────*/
pre, code, .mw-code, tt, kbd {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0.3em 0 !important;
  line-height: 1.75;
}

/* ── mw-collapsible resets ──────────────────────────────────────*/
.mw-collapsible,
.mw-collapsible-content,
blockquote,
.quotebox {
  background-color: transparent !important;
  border: none !important;
  font-style: normal !important;
  padding: 0 !important;
  margin-left: 0 !important;
}

/* ── Cargo store hidden ─────────────────────────────────────────*/
.cargo-store-only { display: none !important; }

/* ── Main page (gr-home) ─────────────────────────────────────────*/
.gr-home {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
}
.gr-home-group { margin-bottom: 32px; }
.gr-home-group-title {
  font-family: 'Adishila', 'Noto Serif Devanagari', serif !important;
  font-size: 1em !important;
  font-weight: 700;
  color: #1a2e40;
  border: none !important;
  border-bottom: 2px solid #1a2e40 !important;
  width: 100%;
  padding-bottom: 4px;
  margin: 0 0 12px !important;
  line-height: 1.75;
}
.gr-home-section { margin-bottom: 16px; }
.gr-home-section-title {
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #e65100;
  margin-bottom: 6px;
}
.gr-home-list {
  list-style: decimal;
  margin: 0 0 0 1.4em;
  padding: 0;
}
.gr-home-list li { font-size: 1em; line-height: 1.9; color: #333; }
.gr-home-list li a { color: #1a2e40; text-decoration: none; }
.gr-home-list li a:hover { color: #f57c00; }
.gr-home-list li a.new { color: #aaa; }
.gr-home-note { font-size: 0.85em; color: #888; }

/* ── Modals ─────────────────────────────────────────────────────*/
.grantha-new-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  margin-right: 10px;
}
.grantha-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
}
.grantha-modal-box {
  background: white; padding: 20px;
  border-radius: 10px; width: 300px;
}
.gm-title { font-weight: bold; margin-bottom: 10px; }
.gm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* ── Main page sidebar hide ─────────────────────────────────────*/
body.page-Main_Page #mw-panel,
body.page-Main_Page .vector-sidebar-container { display: none !important; }
body.page-Main_Page #footer { display: none !important; }

/* ── Responsive ─────────────────────────────────────────────────*/
@media (max-width: 600px) {
  .mw-parser-output { font-size: 16px; }
  .mw-parser-output h2,
  .mw-parser-output .mw-heading2 h2 { width: 100% !important; }
  .mw-parser-output h3,
  .mw-parser-output .mw-heading3 h3 { width: 100% !important; }
  .nyaya-title, .prasna-title { width: 100%; }
  .bhashyam-block, .teeka-block { margin-left: 10px; }
}

/* ════════════════════════════════════════════════════════════════
   VECTOR 2022 HEADER
   ════════════════════════════════════════════════════════════════*/
.vector-header-container {
  background: #1a2e40 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.vector-header {
  background: transparent !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.vector-header-start {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px;
}
.vector-header-end {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px;
  margin-left: auto;
}
.mw-logo { display: flex !important; align-items: center; opacity: 1 !important; }
.mw-logo-wordmark { color: #ffffff !important; font-weight: 700; font-size: 18px; }
.mw-logo-icon { content: url('/favicon.ico'); width: 24px; height: 24px; }
.vector-header .vector-icon { filter: invert(1); opacity: 0.9; }
.cdx-search-input .vector-icon,
.cdx-search-input svg,
.cdx-search-input path,
.cdx-search-input__end-button .vector-icon,
.cdx-search-input__end-button svg,
.cdx-search-input__end-button path {
  filter: none !important; fill: #202124 !important; opacity: 1 !important;
}
.vector-header-end > *:not(#p-search) { color: rgba(255,255,255,0.9) !important; }
.vector-user-links a { color: rgba(255,255,255,0.9) !important; }

/* ── Search ─────────────────────────────────────────────────────*/
#p-search { margin-left: 8px; }
.vector-search-box,
.vector-search-box-expanded,
.vector-search-box-auto-expand-width {
  min-width: 0 !important; flex-grow: 0 !important;
  position: relative !important; margin: 0 !important;
}
.cdx-search-input__input,
.cdx-text-input__input {
  background: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  color: #202124 !important;
  padding: 6px 10px !important;
  font-family: system-ui, sans-serif !important;
}
.cdx-search-input__input::placeholder,
.cdx-text-input__input::placeholder {
  color: rgba(32,33,36,0.5) !important;
}
.cdx-search-input__end-button { background: transparent !important; border: none !important; }
.cdx-typeahead-search,
.cdx-typeahead-search__menu,
.cdx-menu {
  background: #ffffff !important; color: #202124 !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2) !important;
  filter: none !important;
}
.cdx-menu-item, .cdx-menu-item * { color: #202124 !important; filter: none !important; }
.cdx-menu-item:hover,
.cdx-menu-item--active,
.cdx-menu-item--selected { background: #f1f3f4 !important; }
.cdx-menu-item__icon,
.cdx-menu-item__icon svg,
.cdx-menu-item__icon path { fill: #202124 !important; filter: none !important; }