MediaWiki:Common.css: Difference between revisions
No edit summary Tag: Reverted |
Undo revision 1064 by Chandrashekars (talk) Tag: Undo |
||
| Line 18: | Line 18: | ||
.mw-parser-output on every page load via applyFontSize(). | .mw-parser-output on every page load via applyFontSize(). | ||
The 20px here is the no-JS fallback only. | The 20px here is the no-JS fallback only. | ||
All children use font-size: 1em so they scale with it. | |||
────────────────────────────────────────────────────────────────── */ | ────────────────────────────────────────────────────────────────── */ | ||
.mw-parser-output { | .mw-parser-output { | ||
| Line 38: | Line 39: | ||
} | } | ||
/* ── Headings | /* ── Headings: bold only, no size change ────────────────────────── */ | ||
.mw-parser-output h1, | .mw-parser-output h1, | ||
.mw-parser-output h2, | .mw-parser-output h2, | ||
| Line 494: | Line 495: | ||
transform: translateX(-50%) translateY(0); | transform: translateX(-50%) translateY(0); | ||
} | } | ||
/* Replace default logo with favicon */ | |||
.mw-logo-icon { | |||
content: url('/favicon.ico'); | |||
width: 28px; | |||
height: 28px; | |||
} | |||
/* ===== Grantha Header (FIXED) ===== */ | |||
.vector-header-container { | |||
background: #1a2e40 !important; | |||
border-bottom: 1px solid rgba(255,255,255,0.08); | |||
background: # | |||
} | } | ||
.vector-header { | .vector-header { | ||
background: | background: transparent !important; | ||
max-width: 100% !important; | |||
} | } | ||
/* | /* Left logo */ | ||
.mw | .mw-logo-wordmark { | ||
color: #ffffff !important; | |||
font-weight: 700; | |||
color: # | font-size: 18px; | ||
font-weight: 700 | letter-spacing: -0.01em; | ||
font-size: | |||
} | } | ||
/* | /* Icon */ | ||
. | .mw-logo-icon { | ||
content: url('/favicon.ico'); | |||
width: 24px; | |||
height: 24px; | |||
filter: invert(1); | |||
} | } | ||
.vector- | /* Right side text/icons */ | ||
. | .vector-header-end, | ||
color: rgba(255,255,255,0. | .vector-header-end * { | ||
color: rgba(255,255,255,0.9) !important; | |||
} | } | ||
.vector- | /* Remove spacing constraint */ | ||
. | .vector-header-container .vector-header { | ||
padding-left: 20px !important; | |||
padding-right: 20px !important; | |||
} | } | ||
/* ===== Search box (clean, modern) ===== */ | |||
#p-search { | |||
margin-left: 20px; | |||
# | |||
} | } | ||
. | .cdx-search-input__input { | ||
. | background: rgba(255,255,255,0.12) !important; | ||
border: 1px solid rgba(255,255,255,0.2) !important; | |||
color: #fff !important; | color: #fff !important; | ||
border-radius: 8px !important; | |||
padding: 6px 10px !important; | |||
} | } | ||
.cdx-search-input__input::placeholder { | |||
color: rgba(255,255,255,0.6); | |||
. | |||
} | } | ||
/* | /* Search button */ | ||
. | .cdx-search-input__end-button { | ||
background: rgba(255,255,255,0.15) !important; | |||
color: #fff !important; | |||
color: # | |||
border: none !important; | border: none !important; | ||
} | } | ||
/* | /* ===== Icons (user, watchlist etc.) ===== */ | ||
.vector- | .vector-header .vector-icon { | ||
. | filter: invert(1); | ||
opacity: 0.9; | |||
} | } | ||
/* ===== User name ===== */ | |||
.vector- | |||
. | .vector-user-links a { | ||
color: rgba(255,255,255,0.9) !important; | |||
} | |||
.vector-header { | |||
display: flex; | |||
align-items: center; | |||
justify-content: space-between; | |||
} | } | ||
.vector-header-start { | |||
display: flex; | |||
align-items: center; | |||
.vector- | gap: 14px; | ||
gap: | |||
} | } | ||
.vector-header-end { | |||
display: flex; | |||
.vector- | align-items: center; | ||
gap: 12px; | |||
} | |||
.vector-search-box { | |||
max-width: 420px; | |||
} | } | ||
/* ===== Prevent header shifting on search ===== */ | |||
.vector-header { | |||
. | display: flex !important; | ||
align-items: center; | |||
justify-content: space-between; | |||
} | } | ||
.vector-header-start { | |||
. | flex: 0 0 auto !important; | ||
display: flex; | |||
align-items: center; | |||
} | } | ||
.vector-header-end { | |||
flex: 0 0 auto !important; | |||
. | display: flex; | ||
align-items: center; | |||
} | } | ||
/* Keep search contained */ | |||
. | .vector-search-box { | ||
flex: 0 0 360px !important; | |||
} | } | ||
/* Keep logo visible ALWAYS */ | |||
.mw-logo { | |||
display: flex !important; | |||
align-items: center; | |||
opacity: 1 !important; | |||
visibility: visible !important; | |||
} | |||
/* ===== Search dropdown (fix visibility) ===== */ | |||
.cdx-typeahead-search { | |||
. | background: #ffffff !important; | ||
color: # | color: #202124 !important; | ||
border-radius: 10px; | |||
box-shadow: 0 6px 24px rgba(0,0,0,0.2); | |||
} | } | ||
/* | /* Search results text */ | ||
.cdx-menu-item { | |||
color: #202124 !important; | |||
color: # | |||
} | } | ||
/* | /* Hover */ | ||
.cdx-menu-item:hover { | |||
. | background: #f1f3f4 !important; | ||
} | } | ||
/* Input text color */ | |||
.cdx-text-input__input { | |||
. | color: #ffffff !important; | ||
color: # | |||
} | } | ||
/* When typing */ | |||
/* | .cdx-text-input__input:focus { | ||
background: rgba(255,255,255,0.18) !important; | |||
} | } | ||
/* Disable auto expand behavior */ | |||
.vector-search-box-auto-expand-width { | |||
max-width: 360px !important; | |||
} | } | ||
body.page-Main_Page #mw-panel, | |||
. | body.page-Main_Page .vector-sidebar-container { | ||
display: none !important; | |||
} | } | ||
. | body.page-Main_Page #footer { | ||
display: none !important; | |||
} | } | ||
.grantha-new-btn { | |||
. | background: rgba(255,255,255,0.1); | ||
border: 1px solid rgba(255,255,255,0.3); | |||
color: white; | |||
color: | padding: 6px 14px; | ||
border-radius: 20px; | |||
margin- | 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; | |||
font-weight: | |||
margin-bottom: 10px; | margin-bottom: 10px; | ||
} | } | ||
. | .gm-actions { | ||
display: flex; | |||
justify-content: flex-end; | |||
gap: 10px; | |||
margin-top: 12px; | |||
} | |||
#se-home { | |||
max-width: 700px; | |||
margin: 40px auto; | |||
} | } | ||
.se-docrow { | .se-docrow { | ||
cursor: pointer; | |||
} | } | ||
.se-docrow | .se-docrow-title { | ||
text-decoration: none; | |||
color: #1a2e40; | |||
} | } | ||
.se-docrow:hover { | .se-docrow:hover { | ||
background: # | background: #f4f7fb; | ||
} | |||
/* 🚫 Disable Vector search takeover completely */ | |||
.vector-search-box-expanded { | |||
position: relative !important; | |||
left: auto !important; | |||
right: auto !important; | |||
width: auto !important; | |||
max-width: 360px !important; | |||
margin: 0 !important; | |||
} | |||
/* Freeze header layout */ | |||
.vector-header-container, | |||
.vector-header { | |||
display: flex !important; | |||
justify-content: space-between !important; | |||
align-items: center !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; | |||
} | |||
/* 🔥 Override Vector hiding logic */ | |||
.mw-logo, | |||
.vector-header-start .mw-logo { | |||
display: flex !important; | |||
visibility: visible !important; | |||
opacity: 1 !important; | |||
transform: none !important; | |||
} | |||
/* Keep search ALWAYS in header-end */ | |||
.vector-search-box { | |||
order: 2 !important; | |||
} | } | ||
. | .vector-header-start { | ||
order: 1 !important; | |||
} | } | ||
. | .vector-header-end { | ||
order: 3 !important; | |||
} | } | ||
/* Dropdown container */ | |||
. | .cdx-typeahead-search { | ||
color: # | background: #ffffff !important; | ||
color: #202124 !important; | |||
border-radius: 12px; | |||
overflow: hidden; | |||
} | } | ||
. | /* Individual results */ | ||
color: # | .cdx-menu-item { | ||
color: #202124 !important; | |||
padding: 10px 14px; | |||
} | } | ||
. | /* Hover */ | ||
.cdx-menu-item:hover { | |||
background: #f1f3f4 !important; | |||
} | } | ||
/* Input box */ | |||
. | .cdx-text-input__input { | ||
background: rgba(255,255,255,0.12) !important; | |||
color: #ffffff !important; | |||
border-radius: 6px; | |||
padding: 6px 10px; | |||
color: # | |||
border-radius: | |||
} | } | ||
. | /* Placeholder */ | ||
.cdx-text-input__input::placeholder { | |||
color: | color: rgba(255,255,255,0.7) !important; | ||
} | } | ||