MediaWiki:Common.css: Difference between revisions
Appearance
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: # | 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: | 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: # | 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: | 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: # | 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: | font-weight: 500; | ||
color: #f57c00; | |||
letter-spacing: 0.02em; | letter-spacing: 0.02em; | ||
margin: 0; | margin: 0; | ||
line-height: | 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: # | 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: | 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; | ||
} | } | ||
| Line 656: | Line 745: | ||
/* ── Header text/links (user menu etc.) ─────────────────────────*/ | /* ── Header text/links (user menu etc.) ─────────────────────────*/ | ||
.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: | ||
} | } | ||
.vector-search-box, | .vector-search-box, | ||
.vector-search-box-expanded, | .vector-search-box-expanded, | ||
| Line 685: | Line 772: | ||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
.cdx-search-input__input, | .cdx-search-input__input, | ||
.cdx-text-input__input { | .cdx-text-input__input { | ||
| Line 702: | Line 789: | ||
} | } | ||
.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; | ||
filter: none !important; | filter: none !important; | ||
} | } | ||
Revision as of 06:03, 9 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;
}
/* ── Base ─────────────────────────────────────────────────────────
font-size is NOT set with !important — ReaderToolbar JS owns it.
20px is the no-JS fallback only.
────────────────────────────────────────────────────────────────*/
.mw-parser-output {
font-family: 'Adishila', 'Noto Serif Devanagari', serif;
font-size: 20px;
line-height: 1.75;
color: #555; /* ref: body color */
max-width: 820px;
margin: 0 auto;
}
.mw-parser-output p,
.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 h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6 {
font-family: inherit;
font-size: 1em;
font-weight: bold;
line-height: 1.75;
margin: 1.4rem 0 0.2rem;
border: none;
padding: 0;
color: inherit;
}
.mw-parser-output h2 {
font-size: 1.1em;
}
/* ── Paragraphs ─────────────────────────────────────────────────*/
.mw-parser-output p {
margin: 0 0 0.85rem;
}
.mw-parser-output p:empty,
.mw-parser-output > div > p:empty {
display: none !important;
margin: 0 !important;
line-height: 0 !important;
}
.mw-parser-output div[style*="font-size"] > p {
margin: 0 !important;
}
/* ── Shloka block ────────────────────────────────────────────────
ref: .shloka p — italic, #be100e, centred
────────────────────────────────────────────────────────────────*/
.shloka-block {
display: block;
font-family: inherit;
font-size: 1em;
margin: 0.5rem 0 1rem 0;
padding-left: 0;
text-align: center; /* ref: text-align:center */
}
.shloka-line {
display: flex;
align-items: center;
justify-content: center; /* centred, matching reference */
gap: 10px;
line-height: 1.8;
font-style: italic; /* ref: font-style: italic */
color: #be100e; /* ref: .shloka p color */
}
.shloka-line > *:first-child {
flex: 1;
}
/* ── Commentary body ────────────────────────────────────────────*/
.commentary-body {
display: block;
font-family: inherit;
font-size: 1em;
line-height: 1.75;
color: #555; /* ref: body / bhashya-content color */
margin-top: 0.6rem;
max-height: 0;
overflow: hidden;
opacity: 0;
transition: all 0.3s ease;
}
.commentary-body p,
.commentary-body span,
.commentary-body div {
font-family: inherit;
}
.commentary-body + .commentary-body {
margin-top: 6px;
}
.commentary-body.open {
max-height: 500px;
opacity: 1;
border: 1px solid #ededed;
background: #fafafa;
padding: 5px 10px;
overflow: auto;
}
.commentary-body.commentary-hidden + p:empty,
.verse-block > p:empty {
display: none;
}
/* ── Bhashyam: running prose, no bubble ─────────────────────────
ref: .sutra .bhashya-content — color #555, margin-left 60px
────────────────────────────────────────────────────────────────*/
.gr-bhashyam {
display: block;
font-size: 1em;
line-height: 1.85;
color: #555; /* ref: bhashya-content color */
margin: 0.55em 0 0.8em;
margin-left: 60px; /* ref: margin-left: 60px */
padding: 0;
border: none;
background: transparent;
max-height: none;
overflow: visible;
opacity: 1;
}
.gr-bhashyam .commentary-toggle,
.gr-bhashyam .commentary-accordion-toggle {
display: none !important;
}
/* ── Teeka: titled grey bubble, always visible ──────────────────*/
.gr-teeka {
display: block;
background: #f6f6f7;
border: 1px solid #e2e2e6;
border-radius: 8px;
padding: 10px 14px 12px;
margin: 0.7em 0 0.7em 60px; /* indented same as bhashyam */
font-size: 0.93em;
line-height: 1.8;
color: #555; /* ref: body color */
max-height: none;
overflow: visible;
opacity: 1;
}
.gr-teeka.commentary-hidden {
display: block !important;
}
.gr-teeka-title {
font-family: system-ui, -apple-system, sans-serif;
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;
}
/* ── Commentary toggle ──────────────────────────────────────────*/
.commentary-toggle {
cursor: pointer;
margin-left: 0.5em;
font-size: 0.7em;
vertical-align: middle;
opacity: 0.4;
user-select: none;
display: inline;
transition: opacity 0.2s ease;
}
.commentary-toggle:hover {
opacity: 1;
}
.commentary-toggle-btn {
margin-bottom: 1em;
padding: 6px 14px;
cursor: pointer;
}
/* ── mw-collapsible ─────────────────────────────────────────────*/
.commentary-block .mw-collapsible-toggle {
font-family: inherit;
display: block;
width: 100%;
box-sizing: border-box;
border-left: 4px solid #8b6914;
padding: 6px 10px;
cursor: pointer;
font-weight: bold;
text-align: left;
float: none !important;
}
.adhyaya-intro .mw-collapsible-toggle {
font-family: inherit;
display: block;
width: 100%;
box-sizing: border-box;
cursor: pointer;
font-weight: bold;
text-align: left;
float: none !important;
text-transform: uppercase;
letter-spacing: 0.07em;
font-size: 0.78em;
}
.commentary-block .mw-collapsible-toggle a {
font-family: inherit;
text-decoration: none;
}
.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 ────────────────────────────────────────────────*/
.cargo-store-only {
display: none !important;
}
/* ── Adhyaya ─────────────────────────────────────────────────────
ref: .adhyaya-heading / .paada-heading
font-size 24px → 1.1em relative, color #f57c00,
border-bottom: 2px dotted #f57c00, width 75%
────────────────────────────────────────────────────────────────*/
.adhyaya-block {
font-family: inherit;
margin: 32px 0 18px;
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 {
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;
color: #666;
margin-top: 2px;
}
.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 {
margin-top: 10px;
line-height: 1.85;
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% */
}
/* ── Nyaya ──────────────────────────────────────────────────────*/
.nyaya-block {
font-family: inherit;
margin: 40px 0;
padding-top: 14px;
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 {
font-size: 1em;
font-weight: 500;
color: #e65100; /* ref: adhikarana-level orange */
margin-bottom: 0.4rem;
letter-spacing: 0.03em;
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 {
font-family: inherit;
margin: 40px 0;
padding-top: 14px;
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 {
font-size: 1em;
font-weight: 500;
color: #e65100; /* ref: adhikarana-level orange */
margin-bottom: 0.4rem;
letter-spacing: 0.03em;
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;
}
/* ── 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;
margin: 10px 0;
}
.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 {
display: flex;
flex-direction: row;
align-items: center;
gap: 6px;
margin-top: 6px;
padding-left: 2px;
}
.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);
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 ──────────────────────────────────────────────────────*/
.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');
}
/* ── 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 {
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;
letter-spacing: 0.02em;
background: rgba(30, 30, 30, 0.82);
color: #fff;
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
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 {
background-color: transparent;
border: none;
padding: 0.5em;
line-height: 1;
margin: 0.5em;
}
/* ── 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 ──────────────────────────────────────────────────*/
body.page-Main_Page #mw-panel,
body.page-Main_Page .vector-sidebar-container {
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 ─────────────────────────────────────────────────*/
@media (max-width: 600px) {
.mw-parser-output {
font-size: 16px;
}
.nyaya-id,
.prasna-id,
.adhyaya-anchor {
display: none;
}
.adhyaya-block h2,
.adhyaya-heading,
.nyaya-title,
.prasna-title,
.mw-parser-output h3 {
width: 100%;
}
}
/* ════════════════════════════════════════════════════════════════
VECTOR 2022 HEADER
Navy background, white logo/icons, white search input box
════════════════════════════════════════════════════════════════*/
/* ── Header background ──────────────────────────────────────────*/
.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;
}
/* ── Header layout ──────────────────────────────────────────────*/
.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;
}
/* ── Logo ───────────────────────────────────────────────────────*/
.mw-logo {
display: flex !important;
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 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;
}
/* ── 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-search-box,
.vector-search-box-expanded,
.vector-search-box-auto-expand-width {
min-width: 0 !important;
flex-grow: 0 !important;
position: relative !important;
left: auto !important;
right: auto !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;
opacity: 1 !important;
}
.cdx-search-input__input::placeholder,
.cdx-text-input__input::placeholder {
color: rgba(32, 33, 36, 0.5) !important;
opacity: 1 !important;
}
.cdx-search-input__end-button {
background: transparent !important;
border: none !important;
}
/* ── Dropdown ───────────────────────────────────────────────────*/
.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;
color: #202124 !important;
}
.cdx-menu-item__icon,
.cdx-menu-item__icon svg,
.cdx-menu-item__icon path {
fill: #202124 !important;
filter: none !important;
}