MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 21: Line 21:
   font-size: 20px;
   font-size: 20px;
   line-height: 1.75;
   line-height: 1.75;
   color: #222;
   color: #555;                 /* ref: body color */
   max-width: 820px;
   max-width: 820px;
   margin: 0 auto;
   margin: 0 auto;
Line 73: Line 73:
}
}


/* ── Shloka block ───────────────────────────────────────────────*/
/* ── Shloka block ────────────────────────────────────────────────
  ref: .shloka p — italic, #be100e, centred
  ────────────────────────────────────────────────────────────────*/
.shloka-block {
.shloka-block {
   display: block;
   display: block;
Line 80: Line 82:
   margin: 0.5rem 0 1rem 0;
   margin: 0.5rem 0 1rem 0;
   padding-left: 0;
   padding-left: 0;
  text-align: center;          /* ref: text-align:center */
}
}


Line 85: Line 88:
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   justify-content: flex-start;
   justify-content: center;     /* centred, matching reference */
   gap: 10px;
   gap: 10px;
   line-height: 1.8;
   line-height: 1.8;
  font-style: italic;          /* ref: font-style: italic */
  color: #be100e;              /* ref: .shloka p color */
}
}


Line 100: Line 105:
   font-size: 1em;
   font-size: 1em;
   line-height: 1.75;
   line-height: 1.75;
   color: #333;
   color: #555;                 /* ref: body / bhashya-content color */
   margin-top: 0.6rem;
   margin-top: 0.6rem;
   max-height: 0;
   max-height: 0;
Line 132: Line 137:
}
}


/* ── Bhashyam: running prose, no bubble ─────────────────────────*/
/* ── Bhashyam: running prose, no bubble ─────────────────────────
  ref: .sutra .bhashya-content — color #555, margin-left 60px
  ────────────────────────────────────────────────────────────────*/
.gr-bhashyam {
.gr-bhashyam {
   display: block;
   display: block;
   font-size: 1em;
   font-size: 1em;
   line-height: 1.85;
   line-height: 1.85;
   color: inherit;
   color: #555;                 /* ref: bhashya-content color */
   margin: 0.55em 0 0.8em;
   margin: 0.55em 0 0.8em;
  margin-left: 60px;            /* ref: margin-left: 60px */
   padding: 0;
   padding: 0;
   border: none;
   border: none;
Line 159: Line 167:
   border-radius: 8px;
   border-radius: 8px;
   padding: 10px 14px 12px;
   padding: 10px 14px 12px;
   margin: 0.7em 0;
   margin: 0.7em 0 0.7em 60px; /* indented same as bhashyam */
   font-size: 0.93em;
   font-size: 0.93em;
   line-height: 1.8;
   line-height: 1.8;
   color: #333;
   color: #555;                 /* ref: body color */
   max-height: none;
   max-height: none;
   overflow: visible;
   overflow: visible;
Line 255: Line 263:
}
}


/* ── Adhyaya ────────────────────────────────────────────────────*/
/* ── Adhyaya ─────────────────────────────────────────────────────
  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;
   font-family: inherit;
   margin: 32px 0 18px;
   margin: 32px 0 18px;
   text-align: left;
   text-align: left;
}
.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-heading {
.adhyaya-heading {
   font-family: inherit;
   font-family: inherit;
   font-size: 1em;
   font-size: 1.1em;
   font-weight: bold;
   font-weight: 500;
  color: #f57c00;
   letter-spacing: 0.02em;
   letter-spacing: 0.02em;
   margin: 0;
   margin: 0;
   line-height: 1.75;
   line-height: 2.4;
  border-bottom: 2px dotted #f57c00;
  width: 75%;
}
}


Line 294: Line 322:
   margin-top: 10px;
   margin-top: 10px;
   line-height: 1.85;
   line-height: 1.85;
   color: #444;
   color: #555;                 /* ref: body color */
}
 
/* ── 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% */
}
}


Line 316: Line 359:
.nyaya-title {
.nyaya-title {
   font-size: 1em;
   font-size: 1em;
  font-weight: 500;
  color: #e65100;              /* ref: adhikarana-level orange */
   margin-bottom: 0.4rem;
   margin-bottom: 0.4rem;
   letter-spacing: 0.03em;
   letter-spacing: 0.03em;
  border-bottom: 1px dotted #e65100;
  width: 50%;
}
}


Line 324: Line 371:
   font-size: 0.85em;
   font-size: 0.85em;
   color: #666;
   color: #666;
}
.nyaya-body {
  color: #555;
  line-height: 1.85;
  margin-top: 0.5rem;
}
}


Line 345: Line 398:
.prasna-title {
.prasna-title {
   font-size: 1em;
   font-size: 1em;
  font-weight: 500;
  color: #e65100;              /* ref: adhikarana-level orange */
   margin-bottom: 0.4rem;
   margin-bottom: 0.4rem;
   letter-spacing: 0.03em;
   letter-spacing: 0.03em;
  border-bottom: 1px dotted #e65100;
  width: 50%;
}
}


Line 353: Line 410:
   font-size: 0.85em;
   font-size: 0.85em;
   color: #666;
   color: #666;
}
.prasna-question,
.prasna-answer {
  color: #555;
  line-height: 1.85;
  margin-top: 0.5rem;
}
.prasna-answer {
  margin-left: 60px;
}
}


Line 361: Line 429:
}
}


/* ── Verse block ────────────────────────────────────────────────*/
/* ── Verse block ─────────────────────────────────────────────────
  ref: .verse-text — color #c65, font-weight 500
  ────────────────────────────────────────────────────────────────*/
.verse-block {
.verse-block {
   display: flex;
   display: flex;
Line 375: Line 445:
   display: none !important;
   display: none !important;
   margin: 0 !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 */
}
}


Line 380: Line 462:
   display: inline;
   display: inline;
   font-size: 1em;
   font-size: 1em;
   font-weight: 600;
   font-weight: 500;             /* ref: font-weight 500 */
  color: #c65;                  /* ref: color #c65 */
   line-height: 1.75;
   line-height: 1.75;
   letter-spacing: 0.01em;
   letter-spacing: 0.01em;
Line 574: Line 657:
   .adhyaya-anchor {
   .adhyaya-anchor {
     display: none;
     display: none;
  }
  .adhyaya-block h2,
  .adhyaya-heading,
  .nyaya-title,
  .prasna-title,
  .mw-parser-output h3 {
    width: 100%;
   }
   }
}
}
Line 634: Line 724:
   width: 24px;
   width: 24px;
   height: 24px;
   height: 24px;
  /* NOT inverting logo icon — favicon already works on dark */
}
}


Line 656: Line 745:


/* ── Header text/links (user menu etc.) ─────────────────────────*/
/* ── Header text/links (user menu etc.) ─────────────────────────*/
/* Only direct children of header-end get white — NOT the search dropdown */
.vector-header-end > *:not(#p-search) {
.vector-header-end > *:not(#p-search) {
   color: rgba(255,255,255,0.9) !important;
   color: rgba(255,255,255,0.9) !important;
Line 674: Line 762:
}
}


/* Fixed width — prevents Vector expanding the box over the logo */
.vector-search-box,
.vector-search-box,
.vector-search-box-expanded,
.vector-search-box-expanded,
Line 685: Line 772:
   margin: 0 !important;
   margin: 0 !important;
}
}
/* Input: white background, dark text */
 
.cdx-search-input__input,
.cdx-search-input__input,
.cdx-text-input__input {
.cdx-text-input__input {
Line 702: Line 789:
}
}


/* Search button */
.cdx-search-input__end-button {
.cdx-search-input__end-button {
   background: transparent !important;
   background: transparent !important;
Line 716: Line 802:
   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;
  /* Ensure dropdown is never affected by parent filter:invert */
   filter: none !important;
   filter: none !important;
}
}