MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* ═══════════════════════════════════════════════════════════════════ | /* ═══════════════════════════════════════════════════════════════════ | ||
MediaWiki:Common.css — grantha.io (v6 additions) | MediaWiki:Common.css — grantha.io (v6 additions) | ||
═══════════════════════════════════════════════════════════════════ */ | ═══════════════════════════════════════════════════════════════════ */ | ||
| Line 86: | Line 84: | ||
.adhyaya-block .mw-editsection { display: none !important; } | .adhyaya-block .mw-editsection { display: none !important; } | ||
.mw-parser-output p { margin: 0 0 0. | .mw-parser-output p { margin: 0 0 0.35rem; } | ||
.mw-parser-output p:empty, | .mw-parser-output p:empty, | ||
.mw-parser-output > div > p:empty, | .mw-parser-output > div > p:empty, | ||
| Line 96: | Line 94: | ||
} | } | ||
/* ── Verse blocks | /* ── Verse blocks ────────────────────────────────────────────── */ | ||
.shloka-block { | .shloka-block { | ||
display: block; | display: block; | ||
| Line 113: | Line 111: | ||
.verse-block { | .verse-block { | ||
display: block; | display: block; | ||
margin: | margin: 3px 0 0; | ||
text-align: left; | text-align: left; | ||
} | } | ||
| Line 157: | Line 155: | ||
} | } | ||
/* ── Prateeka | /* ── Prateeka ────────────────────────────────────────────────── */ | ||
.gr-prateeka { font-weight: bold; font-style: normal; color: #333; } | .gr-prateeka { font-weight: bold; font-style: normal; color: #333; } | ||
/* ── Mulaprateeka | /* ── Mulaprateeka ────────────────────────────────────────────── */ | ||
.gr-mulaprateeka-block { | .gr-mulaprateeka-block { | ||
display: block; font-weight: bold; font-style: normal; | display: block; font-weight: bold; font-style: normal; | ||
| Line 167: | Line 165: | ||
} | } | ||
/* ── Moola | /* ── Moola ───────────────────────────────────────────────────── */ | ||
.gr-moola { font-weight: bold; font-style: italic; color: #c65; } | .gr-moola { font-weight: bold; font-style: italic; color: #c65; } | ||
/* ── Teeka ────────────────────────────────────────────────────── */ | /* ── Teeka ────────────────────────────────────────────────────── */ | ||
.teeka-block { | .teeka-block { | ||
border-radius: 5px; | border-radius: 5px; | ||
| Line 190: | Line 187: | ||
} | } | ||
.teeka-body { font-family: inherit; margin: 0; } | .teeka-body { font-family: inherit; margin: 0; } | ||
.teeka-block .shloka-block { | .teeka-block .shloka-block { margin: 0 0 0.35em; text-align: left; padding: 0; } | ||
} | |||
.teeka-block .shloka-line { | .teeka-block .shloka-line { | ||
display: block; font-style: italic; color: #be100e; | display: block; font-style: italic; color: #be100e; | ||
line-height: 1.4; font-size: 0.97em; margin: 0; | line-height: 1.4; font-size: 0.97em; margin: 0; | ||
} | } | ||
.gr-vyakhya-head, .gr-section-head { | .gr-vyakhya-head, .gr-section-head { | ||
font-size: 0. | font-size: 0.9em; font-weight: 700; | ||
color: #6a3e00; margin: 0. | color: #6a3e00; margin: 0.35em 0 0.15em; | ||
font-family: inherit; | font-family: inherit; border: none; padding: 0; | ||
} | } | ||
| Line 243: | Line 234: | ||
} | } | ||
.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); } | ||
.icon { | .icon { | ||
display: inline-block; width: 18px; height: 18px; | display: inline-block; width: 18px; height: 18px; | ||
| Line 252: | Line 242: | ||
.icon-copy { background-image: url('/images/copy.svg'); } | .icon-copy { background-image: url('/images/copy.svg'); } | ||
.icon-commentary { background-image: url('/images/commentary.svg'); } | .icon-commentary { background-image: url('/images/commentary.svg'); } | ||
.copy-tooltip { | .copy-tooltip { | ||
position: absolute; bottom: calc(100% + 8px); left: 50%; | position: absolute; bottom: calc(100% + 8px); left: 50%; | ||
| Line 274: | Line 263: | ||
padding: 0.3em 0 !important; line-height: 1.65; | padding: 0.3em 0 !important; line-height: 1.65; | ||
} | } | ||
.mw-collapsible, .mw-collapsible-content, blockquote, .quotebox { | .mw-collapsible, .mw-collapsible-content, blockquote, .quotebox { | ||
background-color: transparent !important; border: none !important; | background-color: transparent !important; border: none !important; | ||
font-style: normal !important; padding: 0 !important; margin-left: 0 !important; | font-style: normal !important; padding: 0 !important; margin-left: 0 !important; | ||
} | } | ||
.cargo-store-only { display: none !important; } | .cargo-store-only { display: none !important; } | ||
| Line 307: | Line 294: | ||
/* ── Vector 2022 sidebar TOC ──────────────────────────────────── */ | /* ── Vector 2022 sidebar TOC ──────────────────────────────────── */ | ||
.vector-toc { font-size: 0.95em !important; line-height: 1.6 !important; } | |||
.vector-toc { | |||
} | |||
.vector-toc .vector-toc-title { | .vector-toc .vector-toc-title { | ||
font-size: 0.72em !important; | font-size: 0.72em !important; font-weight: 700 !important; | ||
text-transform: uppercase; letter-spacing: 0.08em; | |||
text-transform: uppercase; | color: #b07040 !important; font-family: system-ui, sans-serif !important; | ||
color: #b07040 !important; | |||
margin-bottom: 2px !important; | margin-bottom: 2px !important; | ||
} | } | ||
.vector-toc .cdx-button.vector-toc-toggle { | .vector-toc .cdx-button.vector-toc-toggle { | ||
background: none !important; | background: none !important; border: none !important; | ||
box-shadow: none !important; color: #9a6030 !important; | |||
box-shadow: none !important; | opacity: 1 !important; transition: color 0.15s !important; | ||
opacity: 1 !important; | |||
} | } | ||
.vector-toc .cdx-button.vector-toc-toggle:hover { | .vector-toc .cdx-button.vector-toc-toggle:hover { | ||
color: #f57c00 !important; | color: #f57c00 !important; background: none !important; | ||
} | } | ||
.vector-toc .cdx-button.vector-toc-toggle svg { fill: currentColor !important; } | |||
.vector-toc .vector-toc-numb { display: none !important; } | |||
.vector-toc .vector-toc-text { | .vector-toc .vector-toc-text { | ||
white-space: normal !important; | white-space: normal !important; word-break: break-word !important; | ||
overflow-wrap: anywhere !important; line-height: 1.35 !important; | |||
overflow-wrap: anywhere !important; | |||
display: inline !important; | display: inline !important; | ||
} | } | ||
.vector-toc a, | .vector-toc a, | ||
.vector-toc .vector-toc-link { color: #5a3a00 !important; text-decoration: none !important; } | .vector-toc .vector-toc-link { color: #5a3a00 !important; text-decoration: none !important; } | ||
| Line 366: | Line 321: | ||
.vector-toc .vector-toc-link:hover { color: #f57c00 !important; } | .vector-toc .vector-toc-link:hover { color: #f57c00 !important; } | ||
/* ── TOC | /* ── TOC active item highlight ────────────────────────────────── */ | ||
.vector-toc .vector-toc-list-item-active .vector-toc-link, | .vector-toc .vector-toc-list-item-active .vector-toc-link, | ||
.vector-toc .vector-toc-list-item-active .vector-toc-link *, | .vector-toc .vector-toc-list-item-active .vector-toc-link *, | ||
| Line 382: | Line 328: | ||
.vector-toc .vector-toc-level-1-active .vector-toc-link, | .vector-toc .vector-toc-level-1-active .vector-toc-link, | ||
.vector-toc .vector-toc-level-1-active .vector-toc-link * { | .vector-toc .vector-toc-level-1-active .vector-toc-link * { | ||
color: #f57c00 !important; | color: #f57c00 !important; font-weight: 700 !important; | ||
} | } | ||
.vector-toc .vector-toc-level-1 > .vector-toc-link, | .vector-toc .vector-toc-level-1 > .vector-toc-link, | ||
.vector-toc .vector-toc-level-1 > .vector-toc-link * { | .vector-toc .vector-toc-level-1 > .vector-toc-link * { | ||
| Line 396: | Line 340: | ||
color: #7a5010 !important; font-size: 0.95em !important; | color: #7a5010 !important; font-size: 0.95em !important; | ||
} | } | ||
.vector-toc .vector-toc-list-item-active .vector-toc-level-1 > .vector-toc-link, | .vector-toc .vector-toc-list-item-active .vector-toc-level-1 > .vector-toc-link, | ||
.vector-toc .vector-toc-list-item-active .vector-toc-level-2 > .vector-toc-link, | .vector-toc .vector-toc-list-item-active .vector-toc-level-2 > .vector-toc-link, | ||
| Line 452: | Line 395: | ||
.gm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; } | .gm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; } | ||
/* ── Main page sidebar hide | /* ── Main page sidebar/footer hide ───────────────────────────── */ | ||
body.page-Main_Page #mw-panel, | body.page-Main_Page #mw-panel, | ||
body.page-Main_Page .vector-sidebar-container { display: none !important; } | body.page-Main_Page .vector-sidebar-container { display: none !important; } | ||
| Line 503: | Line 446: | ||
.mw-logo-wordmark { color: #ffffff !important; font-weight: 700; font-size: 18px; } | .mw-logo-wordmark { color: #ffffff !important; font-weight: 700; font-size: 18px; } | ||
.mw-logo-icon { content: url('/favicon.ico'); width: 24px; height: 24px; } | .mw-logo-icon { content: url('/favicon.ico'); width: 24px; height: 24px; } | ||
.vector-header .vector-icon:not(.vector-user-links .vector-icon):not(#vector-user-links-dropdown .vector-icon) { | .vector-header .vector-icon:not(.vector-user-links .vector-icon):not(#vector-user-links-dropdown .vector-icon) { | ||
filter: invert(1); | filter: invert(1); opacity: 0.9; | ||
} | } | ||
.vector-user-links .vector-icon, | .vector-user-links .vector-icon, | ||
#vector-user-links-dropdown .vector-icon, | #vector-user-links-dropdown .vector-icon, | ||
.vector-user-menu-container .vector-icon { | .vector-user-menu-container .vector-icon { filter: none !important; opacity: 1 !important; } | ||
} | |||
.cdx-search-input .vector-icon, .cdx-search-input svg, .cdx-search-input path, | .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 .vector-icon, .cdx-search-input__end-button svg, | ||
| Line 522: | Line 458: | ||
.vector-user-links a { color: rgba(255,255,255,0.9) !important; } | .vector-user-links a { color: rgba(255,255,255,0.9) !important; } | ||
/* ── | /* ── Header: hide watchlist, appearance; fix dropdown text ───── */ | ||
li#pt-watchlist, | li#pt-watchlist, | ||
li#pt-watchlist-kbd { display: none !important; } | li#pt-watchlist-kbd { display: none !important; } | ||
#vector-appearance, | #vector-appearance, | ||
#vector-appearance-pinned-container, | #vector-appearance-pinned-container, | ||
| Line 545: | Line 468: | ||
#p-appearance, | #p-appearance, | ||
.vector-appearance-pinnable-element, | .vector-appearance-pinnable-element, | ||
.vector-page-tools [aria-controls="vector-appearance"], | .vector-page-tools [aria-controls="vector-appearance"], | ||
.vector-sticky-header [aria-controls="vector-appearance"] { display: none !important; } | .vector-sticky-header [aria-controls="vector-appearance"] { display: none !important; } | ||
.vector-user-menu .mw-list-item a, | .vector-user-menu .mw-list-item a, | ||
.vector-user-menu .vector-menu-content-list a, | .vector-user-menu .vector-menu-content-list a, | ||
.vector-user-menu .vector-menu-content a, | |||
.vector-user-menu .vector-menu-content .mw-list-item a, | |||
#p-personal .vector-menu-content a, | #p-personal .vector-menu-content a, | ||
.mw-portlet-personal .vector-menu-content a, | .mw-portlet-personal .vector-menu-content a, | ||
#pt-userpage, #pt-userpage a, | #pt-userpage, #pt-userpage a, | ||
#vector-user-menu-overflow .vector-menu-content a, | |||
.oo-ui-menuSelectWidget a, .oo-ui-menuOptionWidget, | |||
.oo-ui-menuSelectWidget a, | |||
.oo-ui-menuOptionWidget, | |||
.cdx-menu__listbox .cdx-menu-item__content, | .cdx-menu__listbox .cdx-menu-item__content, | ||
.cdx-menu__listbox a { | .cdx-menu__listbox a { color: #202122 !important; } | ||
.vector-user-menu .mw-list-item a:hover, | |||
.vector-user-menu .vector-menu-content-list a:hover, | |||
.vector-user-menu .vector-menu-content a:hover, | .mw-portlet-personal .vector-menu-content a:hover { color: #f57c00 !important; background: #fdf3ed !important; } | ||
.mw-portlet-personal .vector-menu-content a:hover { | |||
} | |||
/* ── Search box ───────────────────────────────────────────────── */ | |||
#p-search { margin-left: 8px; } | #p-search { margin-left: 8px; } | ||
.vector-search-box, .vector-search-box-expanded, .vector-search-box-auto-expand-width { | .vector-search-box, .vector-search-box-expanded, .vector-search-box-auto-expand-width { | ||
| Line 606: | Line 510: | ||
.cdx-menu-item__icon path { fill: #202124 !important; filter: none !important; } | .cdx-menu-item__icon path { fill: #202124 !important; filter: none !important; } | ||
/* ── Gadya | /* ── Gadya ────────────────────────────────────────────────────── */ | ||
.gr-gadya, | .gr-gadya, | ||
.verse-line.gr-gadya, | .verse-line.gr-gadya, | ||
.gr-verse-text.gr-gadya { | .gr-verse-text.gr-gadya { | ||
display: block !important; | display: block !important; font-size: 0.96em !important; | ||
font-weight: 600 !important; font-style: normal !important; | |||
font-weight: 600 !important; | color: #555 !important; margin: 16px 0 4px !important; | ||
border-bottom: 1px solid #ddd !important; width: 60%; | |||
color: #555 !important; | line-height: 1.5 !important; letter-spacing: 0.01em; | ||
border-bottom: 1px solid #ddd !important; | |||
line-height: 1.5 !important; | |||
} | } | ||
| Line 630: | Line 524: | ||
.gr-avataranika { | .gr-avataranika { | ||
font-style: italic; color: #444; | font-style: italic; color: #444; | ||
margin: 0 0 0.5em 0.5em; padding-left: 0.6em; | margin: 0.2em 0 0.5em 0.5em; padding-left: 0.6em; | ||
border-left: 2px solid #c9a96e; line-height: 1.6; | border-left: 2px solid #c9a96e; line-height: 1.6; | ||
} | } | ||
| Line 645: | Line 539: | ||
.gr-vyakhya-gadya { | .gr-vyakhya-gadya { | ||
font-weight: bold; font-size: 0.95em; text-align: center; | font-weight: bold; font-size: 0.95em; text-align: center; | ||
color: #8b1a1a; margin: 0. | color: #8b1a1a; margin: 0.2em 0; line-height: 1.6; letter-spacing: 0.03em; | ||
} | } | ||
| Line 658: | Line 552: | ||
.gr-leading-bhashya { font-style: italic; color: #555; margin: 0.4em 0 0.5em 0; } | .gr-leading-bhashya { font-style: italic; color: #555; margin: 0.4em 0 0.5em 0; } | ||
/* ── Verse text | /* ── Verse text ───────────────────────────────────────────────── */ | ||
.gr-verse-text, .verse-line, .verse-text { | .gr-verse-text, .verse-line, .verse-text { | ||
color: #b5451b; font-style: italic; line-height: 1.5; | color: #b5451b; font-style: italic; line-height: 1.5; | ||
display: block; margin: 0.1em 0; | display: block; margin: 0.1em 0; | ||
} | } | ||
| Line 697: | Line 591: | ||
} | } | ||
/* ── Vyakhya prose paragraphs ─────────────────────────────────── */ | |||
.gr-vyakhya-para { margin: 0 0 0.5em 0; line-height: 1.65; color: #444; } | |||
.gr-vyakhya-para:last-child { margin-bottom: 0; } | |||
/* ── | .gr-embedded-bhashya { margin: 0.2em 0 0.2em 1em; line-height: 1.6; } | ||
. | .teeka-body .shloka-block { | ||
margin: 0.4em 0; padding: 0.3em 0.6em; | |||
. | border-left: 3px solid #e8c88a; background: transparent; | ||
margin: 0. | |||
} | } | ||
.teeka-body .shloka-line { color: #8a4a00; font-style: italic; font-size: 0.97em; } | |||
/* ── | /* ── Inline bhashya paragraphs ────────────────────────────────── */ | ||
.gr- | .gr-inlinepara-run { margin: 0.5rem 0; line-height: 1.75; position: relative; } | ||
.gr- | .gr-bhashya-anchor { cursor: pointer; border-bottom: 1px dotted #bbb; transition: background 0.1s; } | ||
.gr-bhashya-anchor:hover { background: rgba(245,124,0,0.07); border-bottom-color: #f57c00; } | |||
.gr- | |||
/* | /* ── Teeka view modes ─────────────────────────────────────────── */ | ||
. | body.gr-standalone .gr-page-nav { display: block; } | ||
body.gr-standalone .teeka-block { background: none !important; border: none !important; padding: 0 !important; border-radius: 0 !important; } | |||
body.gr-standalone .teeka-title { display: none !important; } | |||
body.gr-standalone .gr-teeka-entry { border-bottom: 1px solid #f0e8d8; padding-bottom: 0.8em; margin-bottom: 0.8em; } | |||
body.gr-standalone .gr-teeka-entry:last-of-type { border-bottom: none; } | |||
} | body.gr-standalone .teeka-body .shloka-block { border-left: none; padding-left: 0; background: none; } | ||
.teeka-body .shloka-line { | body.gr-standalone .teeka-body .shloka-line { color: #be100e; font-style: italic; } | ||
body.gr-standalone .gr-vyakhya-head { color: #a07040; font-size: 0.95em; margin-top: 0.8em; } | |||
body.gr-ref-mode .teeka-block { background: #fffdf5 !important; border: 1px solid #f0e0b0 !important; padding: 6px 10px 8px !important; border-radius: 5px !important; } | |||
body.gr-ref-mode .teeka-title { display: block !important; } | |||
} | body.gr-ref-mode .gr-page-nav { display: none; } | ||
.gr-teeka-page .teeka-block { background: #fffdf5; border: 1px solid #f0e0b0; } | |||
/* | /* ══════════════════════════════════════════════════════════════ | ||
SITEWIDE CHROME CLEANUP | |||
══════════════════════════════════════════════════════════════ */ | |||
/* Hide category links box */ | |||
#catlinks, .catlinks, | |||
.mw-normal-catlinks, .mw-hidden-catlinks { display: none !important; } | |||
/* | /* Hide MediaWiki footer */ | ||
#footer, .mw-footer, footer.mw-footer { display: none !important; } | |||
} | |||
/* | /* Hide Page/Discussion/View history/View source/Tools tab bar */ | ||
#p-views, #p-cactions, | |||
.vector-page-toolbar, .vector-page-toolbar-container, | |||
#vector-page-toolbar, .mw-portlet-views, | |||
.vector-tab-noaction, #left-navigation, #right-navigation, | |||
.page-actions, .vector-page-titlebar-toc { display: none !important; } | |||
#mw-content-text { margin-top: 0 !important; } | |||
} | |||
} | |||
/* ── | /* ── Quick-select comment chips ────────────────────────────────── */ | ||
.gra-quick-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 4px; } | |||
. | .gra-chip { | ||
background: # | background: #f1f3f4; border: 1.5px solid #e0e0e0; border-radius: 999px; | ||
border: | color: #444; font-size: 12px; font-family: inherit; | ||
padding: 4px 12px; cursor: pointer; | |||
transition: background 0.12s, border-color 0.12s, color 0.12s; white-space: nowrap; | |||
} | } | ||
.gra-chip:hover { background: #e8f0fe; border-color: #1a73e8; color: #1a73e8; } | |||
.gra-chip.gra-chip-active { background: #1a73e8; border-color: #1a73e8; color: #fff; } | |||