MediaWiki:Vector.css: Difference between revisions
Appearance
Head Larper (talk | contribs) Created page with "→All CSS here will be loaded for users of the Vector skin: :root { --bg: #061016; --teal: #4DB6B0; --red: #E08282; --color-base: #4DB6B0; --color-base-fixed: #4DB6B0; --color-base--hover: #4DB6B0; --color-emphasized: #061016; --color-subtle: #3f647b; --color-placeholder: #538781; --color-disabled: #6ea19c; --color-inverted: #4DB6B0; --color-inverted-fixed: #4DB6B0; --color-progressive: #85EA8E; --color-progress..." |
Head Larper (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
/* All CSS here will be loaded for users of the Vector skin */ | /* All CSS here will be loaded for users of the Vector skin */ | ||
/* ===================================================================== | |||
FRUTIGER AERO | |||
A glossy sky-and-glass reskin for the MediaWiki "Vector" skin | |||
===================================================================== | |||
WHERE TO PASTE THIS | |||
-------------------- | |||
Site-wide, classic "Vector" (Vector 2010) skin: MediaWiki:Vector.css | |||
Site-wide, "Vector 2022" skin: MediaWiki:Vector-2022.css | |||
Site-wide, regardless of skin: MediaWiki:Common.css | |||
Personal (your account only), any skin: Special:MyPage/common.css | |||
(You need to be logged in with editing rights on MediaWiki: pages, | |||
which usually means an administrator account.) | |||
/ | WHAT THIS TARGETS | ||
. | ------------------ | ||
Modern MediaWiki has merged most of the menu/tab/sidebar markup | |||
between the classic Vector skin and Vector 2022 onto shared class | |||
.mw- | names (.vector-menu-tabs, .mw-portlet, etc.), so one file works for | ||
both. A handful of older selectors (.vectorTabs, .portal) are kept | |||
alongside them for wikis running an older MediaWiki version - they | |||
simply won't match anything on a newer install, so it's safe either | |||
way. | |||
FEEL FREE TO TUNE | |||
------------------ | |||
Everything runs off the CSS variables in section 1 - turn the sky | |||
more turquoise, dial the glass opacity up or down, etc. | |||
===================================================================== */ | |||
. | |||
/* | /* --------------------------------------------------------------------- | ||
1. Palette & tokens | |||
--------------------------------------------------------------------- */ | |||
:root { | |||
--fa-sky-1: #eaf8ff; | |||
--fa-sky-2: #c7ecff; | |||
--fa-sky-3: #8fd3ff; | |||
--fa-sky-4: #4fb0f0; | |||
--fa-sky-5: #1c85d6; | |||
--fa-sky-6: #0f5fa8; | |||
--fa-deep: #0b3c66; | |||
--fa-leaf-2: #8fc74e; | |||
--fa-glass-10: rgba(255, 255, 255, 0.10); | |||
--fa-glass-30: rgba(255, 255, 255, 0.30); | |||
--fa-glass-55: rgba(255, 255, 255, 0.55); | |||
--fa-glass-75: rgba(255, 255, 255, 0.75); | |||
--fa-glass-90: rgba(255, 255, 255, 0.90); | |||
--fa-ink: #123a5c; | |||
--fa-ink-soft: #2c5a80; | |||
--fa-link: #0576c9; | |||
--fa-link-visited: #5b6fb0; | |||
--fa-shadow: rgba(9, 80, 145, 0.35); | |||
--fa-shadow-soft: rgba(9, 80, 145, 0.18); | |||
--fa-radius-lg: 20px; | |||
--fa-radius-md: 14px; | |||
--fa-radius-sm: 8px; | |||
--fa-font: "Segoe UI", "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; | |||
} | } | ||
. | /* --------------------------------------------------------------------- | ||
2. Sky background, clouds & floating bubbles | |||
--------------------------------------------------------------------- */ | |||
html { | |||
background: var(--fa-sky-4); | |||
} | } | ||
body { | |||
. | background: | ||
background-color: var(-- | radial-gradient(ellipse 320px 90px at 14% 6%, rgba(255,255,255,0.55), transparent 70%), | ||
radial-gradient(ellipse 240px 70px at 80% 12%, rgba(255,255,255,0.40), transparent 70%), | |||
linear-gradient(180deg, | |||
var(--fa-sky-1) 0%, | |||
var(--fa-sky-2) 22%, | |||
var(--fa-sky-3) 45%, | |||
var(--fa-sky-4) 70%, | |||
var(--fa-sky-5) 100%); | |||
background-attachment: fixed; | |||
font-family: var(--fa-font); | |||
color: var(--fa-ink); | |||
overflow-x: hidden; | |||
position: relative; | |||
} | } | ||
body::before, | |||
background- | body::after { | ||
content: ""; | |||
position: fixed; | |||
width: 16px; | |||
height: 16px; | |||
border-radius: 50%; | |||
pointer-events: none; | |||
z-index: 0; | |||
background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95), rgba(255,255,255,0.05) 55%, transparent 70%); | |||
} | } | ||
body::before { | |||
top: 8vh; | |||
left: 6vw; | |||
box-shadow: | |||
22vw 6vh 0 6px rgba(255,255,255,0.16), | |||
46vw 62vh 0 12px rgba(255,255,255,0.12), | |||
68vw 18vh 0 3px rgba(255,255,255,0.20), | |||
82vw 78vh 0 9px rgba(255,255,255,0.14), | |||
6vw 86vh 0 7px rgba(255,255,255,0.16), | |||
92vw 40vh 0 4px rgba(255,255,255,0.18); | |||
animation: fa-drift 26s ease-in-out infinite; | |||
} | } | ||
. | body::after { | ||
. | top: 46vh; | ||
left: 50vw; | |||
width: 10px; | |||
height: 10px; | |||
box-shadow: | |||
-34vw 12vh 0 5px rgba(255,255,255,0.12), | |||
18vw -30vh 0 7px rgba(255,255,255,0.14), | |||
-14vw 38vh 0 3px rgba(255,255,255,0.16), | |||
40vw 8vh 0 6px rgba(255,255,255,0.12), | |||
-44vw -12vh 0 4px rgba(255,255,255,0.14); | |||
animation: fa-drift 34s ease-in-out infinite reverse; | |||
} | } | ||
@keyframes fa-drift { | |||
0%, 100% { transform: translate(0, 0); } | |||
50% { transform: translate(14px, -26px); } | |||
} | } | ||
::selection { | |||
background | background: rgba(143, 199, 78, 0.45); | ||
color: var(--fa-deep); | |||
} | } | ||
/* Glossy blue scrollbar */ | |||
background- | ::-webkit-scrollbar { width: 14px; height: 14px; } | ||
::-webkit-scrollbar-track { background: var(--fa-sky-1); } | |||
::-webkit-scrollbar-thumb { | |||
background: linear-gradient(180deg, var(--fa-sky-3), var(--fa-sky-6)); | |||
border-radius: 999px; | |||
border: 3px solid var(--fa-sky-1); | |||
} | } | ||
html { scrollbar-color: var(--fa-sky-5) var(--fa-sky-1); } | |||
. | /* --------------------------------------------------------------------- | ||
background- | 3. Header chrome: top bars, header bar, logo | ||
--------------------------------------------------------------------- */ | |||
#mw-page-base { | |||
height: 6em; | |||
background: linear-gradient(to bottom, rgba(255,255,255,0.55), rgba(255,255,255,0) 90%); | |||
} | } | ||
#mw-head-base { margin-top: -6em; height: 6em; } | |||
. | #mw-head, | ||
.mw-header { | |||
position: relative; | |||
z-index: 2; | |||
} | } | ||
.mw-header { | |||
. | background: linear-gradient(180deg, var(--fa-glass-75), var(--fa-glass-30)); | ||
background: | -webkit-backdrop-filter: blur(6px); | ||
backdrop-filter: blur(6px); | |||
border-bottom: 1px solid var(--fa-glass-90); | |||
box-shadow: 0 2px 14px var(--fa-shadow-soft); | |||
} | } | ||
. | #p-logo, .mw-logo { position: relative; z-index: 3; } | ||
background: # | #p-logo a, | ||
.mw-logo-icon { | |||
border-radius: 50%; | |||
background: radial-gradient(circle at 32% 28%, #fff, var(--fa-sky-3) 60%, var(--fa-sky-6) 100%); | |||
box-shadow: | |||
0 0 0 5px rgba(255,255,255,0.55), | |||
0 0 0 9px rgba(255,255,255,0.22), | |||
0 6px 16px var(--fa-shadow); | |||
transition: transform 0.3s ease, box-shadow 0.3s ease; | |||
} | } | ||
#p-logo a:hover, a.mw-logo:hover .mw-logo-icon { | |||
transform: scale(1.06); | |||
box-shadow: | |||
0 0 0 5px rgba(255,255,255,0.7), | |||
0 0 0 10px rgba(255,255,255,0.3), | |||
0 8px 20px var(--fa-shadow); | |||
} | } | ||
.mw-logo-wordmark { | |||
color: var(--fa-deep); | |||
text-shadow: 0 1px 0 rgba(255,255,255,0.6); | |||
} | } | ||
/* --------------------------------------------------------------------- | |||
4. Navigation tabs & dropdown menus (article/talk, read/edit/history, | |||
"more", variants, user menu) - shared modern classes + legacy ones | |||
--------------------------------------------------------------------- */ | |||
. | .vector-menu-tabs li a, | ||
.vectorTabs li a, | |||
.vectorMenu .menu li a { | |||
display: inline-block; | |||
padding: 6px 14px; | |||
background- | margin-top: 4px; | ||
background: linear-gradient(to bottom, var(--fa-glass-90), var(--fa-sky-2) 60%, var(--fa-sky-3)); | |||
border: 1px solid rgba(255,255,255,0.8); | |||
border-bottom: none; | |||
border-radius: 12px 12px 0 0; | |||
color: var(--fa-ink) !important; | |||
text-decoration: none; | |||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 -2px 6px rgba(255,255,255,0.4); | |||
position: relative; | |||
overflow: hidden; | |||
} | } | ||
.vector-menu-tabs li.selected a, | |||
.vectorTabs li.selected a { | |||
. | background: linear-gradient(to bottom, #ffffff, var(--fa-sky-1)); | ||
box-shadow: inset 0 2px 6px var(--fa-shadow-soft); | |||
font-weight: 600; | |||
} | } | ||
. | .vector-menu-dropdown > .vector-menu-heading, | ||
. | .vectorMenu h3 { | ||
background: linear-gradient(to bottom, var(--fa-glass-90), var(--fa-sky-2)); | |||
border: 1px solid rgba(255,255,255,0.8); | |||
border-radius: 10px; | |||
padding: 4px 10px; | |||
color: var(--fa-ink); | |||
} | } | ||
.vector-menu-dropdown .vector-menu-content, | |||
. | .vectorMenu .menu { | ||
background- | background: var(--fa-glass-90); | ||
-webkit-backdrop-filter: blur(6px); | |||
backdrop-filter: blur(6px); | |||
border: 1px solid rgba(255,255,255,0.85); | |||
border-radius: var(--fa-radius-sm); | |||
box-shadow: 0 8px 22px var(--fa-shadow); | |||
} | } | ||
. | #p-personal ul li a, | ||
.vector-user-menu .vector-menu-content-list li a { | |||
color: var(--fa-ink); | |||
} | } | ||
#p-personal ul li a:hover { color: var(--fa-sky-6); } | |||
. | /* Glossy shine sweep on hover - tabs, search button, buttons */ | ||
.vector-menu-tabs li a::after, | |||
.vectorTabs li a::after, | |||
#searchButton::after, | |||
. | .cdx-search-input__end-button::after, | ||
.mw-ui-button::after, | |||
.cdx-button::after { | |||
content: ""; | |||
position: absolute; | position: absolute; | ||
top: | top: -60%; left: -60%; | ||
width: 40%; height: 220%; | |||
background: rgba(255,255,255,0.55); | |||
transform: rotate(20deg); | |||
transition: left 0.55s ease; | |||
pointer-events: none; | |||
background | |||
} | } | ||
.vector-menu-tabs li a:hover::after, | |||
.vectorTabs li a:hover::after, | |||
#searchButton:hover::after, | |||
.cdx-search-input__end-button:hover::after, | |||
.mw-ui-button:hover::after, | |||
.cdx-button:hover::after { left: 130%; } | |||
/* | /* --------------------------------------------------------------------- | ||
5. Search box (legacy #searchInput and the modern Codex search input) | |||
--------------------------------------------------------------------- */ | |||
#searchInput, | |||
.cdx-text-input__input, | .cdx-text-input__input, | ||
input[type="search"] { | |||
background: var(--fa-glass-90) !important; | |||
border: 1px solid rgba(255,255,255,0.85) !important; | |||
border-radius: 999px !important; | |||
padding: 6px 14px !important; | |||
box-shadow: inset 0 2px 5px var(--fa-shadow-soft); | |||
color: var(--fa-ink) !important; | |||
} | } | ||
#searchInput:focus, | |||
.cdx-text-input__input:focus { | |||
outline: 2px solid var(--fa-sky-5); | |||
outline-offset: 2px; | |||
} | } | ||
. | #searchButton, | ||
.cdx-search-input__end-button { | |||
background: linear-gradient(to bottom, var(--fa-sky-2), var(--fa-sky-5)) !important; | |||
border: 1px solid var(--fa-sky-6) !important; | |||
border-radius: 999px !important; | |||
color: #fff !important; | |||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 3px 8px var(--fa-shadow); | |||
position: relative; | |||
overflow: hidden; | |||
} | } | ||
.mw- | /* --------------------------------------------------------------------- | ||
filter: | 6. Sidebar portals (legacy .portal / modern .mw-portlet) | ||
--------------------------------------------------------------------- */ | |||
.portal, .mw-portlet { | |||
background: linear-gradient(180deg, var(--fa-glass-75), var(--fa-glass-30)); | |||
-webkit-backdrop-filter: blur(6px); | |||
backdrop-filter: blur(6px); | |||
border: 1px solid rgba(255,255,255,0.7); | |||
border-radius: var(--fa-radius-md); | |||
box-shadow: 0 6px 18px var(--fa-shadow-soft), inset 0 1px 0 rgba(255,255,255,0.8); | |||
padding: 8px 10px; | |||
margin-bottom: 12px !important; | |||
} | } | ||
.portal h3, .mw-portlet h3, .vector-menu-heading { | |||
. | color: var(--fa-deep); | ||
font-weight: 700; | |||
border-bottom: 1px solid rgba(255,255,255,0.6); | |||
padding-bottom: 4px; | |||
margin-bottom: 6px; | |||
} | } | ||
.portal .body ul li a, | |||
.mw-portlet-body ul li a, | |||
.vector-menu-content-list li a { | |||
color: var(--fa-ink); | |||
text-decoration: none; | |||
border-radius: var(--fa-radius-sm); | |||
padding: 2px 6px; | |||
display: inline-block; | |||
} | } | ||
a:hover { | .portal .body ul li a:hover, | ||
.mw-portlet-body ul li a:hover, | |||
.vector-menu-content-list li a:hover { | |||
background: rgba(255,255,255,0.5); | |||
text-decoration: underline; | |||
} | } | ||
/* | /* --------------------------------------------------------------------- | ||
. | 7. Main content panel | ||
--------------------------------------------------------------------- */ | |||
.mw-body { | |||
background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.80)); | |||
-webkit-backdrop-filter: blur(4px); | |||
backdrop-filter: blur(4px); | |||
border: 1px solid rgba(255,255,255,0.8); | |||
border-radius: var(--fa-radius-lg); | |||
box-shadow: 0 12px 34px var(--fa-shadow), inset 0 1px 0 rgba(255,255,255,0.9); | |||
padding: 18px 24px !important; | |||
. | |||
. | |||
border: 1px solid | |||
. | |||
border- | |||
} | } | ||
. | /* --------------------------------------------------------------------- | ||
. | 8. Headings, links, lists | ||
border- | --------------------------------------------------------------------- */ | ||
padding: 0 | #firstHeading, .mw-first-heading { | ||
font-weight: 700; | |||
color: var(--fa-deep); | |||
border-bottom: 3px solid transparent; | |||
border-image: linear-gradient(to right, var(--fa-sky-5), var(--fa-leaf-2)) 1; | |||
padding-bottom: 8px; | |||
text-shadow: 0 1px 0 rgba(255,255,255,0.6); | |||
} | } | ||
.mw-body-content h2 { | |||
. | color: var(--fa-deep); | ||
border-bottom: 1px solid var(--fa-sky-3); | |||
border- | padding-bottom: 4px; | ||
padding: | margin-top: 1.6em; | ||
} | } | ||
.mw-body-content h2::before { | |||
. | content: ""; | ||
display: inline-block; | |||
width: 9px; height: 9px; | |||
margin-right: 8px; | |||
border-radius: 50%; | |||
background: radial-gradient(circle at 32% 28%, #fff, var(--fa-sky-4) 60%, var(--fa-sky-6)); | |||
display: | |||
width: | |||
margin- | |||
background | |||
vertical-align: middle; | vertical-align: middle; | ||
} | } | ||
.mw-body-content h3 { color: var(--fa-ink-soft); } | |||
.mw- | .mw-body-content a { color: var(--fa-link); text-decoration: none; border-bottom: 1px solid rgba(5,118,201,0.3); } | ||
.mw-body-content a:hover { color: var(--fa-sky-6); border-bottom-color: var(--fa-sky-6); } | |||
.mw-body-content a:visited { color: var(--fa-link-visited); } | |||
.mw-body-content a.new, .mw-body-content a.new:visited { color: #c0392b; border-bottom-style: dashed; } | |||
} | |||
.mw-content- | .mw-body-content ul li { list-style: none; position: relative; padding-left: 4px; } | ||
.mw-body-content ul li::before { | |||
content: ""; | |||
position: absolute; | |||
left: -18px; | |||
top: 0.55em; | |||
width: 9px; height: 9px; | |||
border-radius: 50%; | |||
background: radial-gradient(circle at 32% 28%, #fff, var(--fa-sky-3) 55%, var(--fa-sky-5) 100%); | |||
box-shadow: 0 1px 2px rgba(0,0,0,0.15); | |||
} | } | ||
.mw-body-content ol li::marker { color: var(--fa-sky-6); font-weight: 700; } | |||
/* --------------------------------------------------------------------- | |||
border: 1px var(-- | 9. Tables, infoboxes, thumbnails, table of contents | ||
--------------------------------------------------------------------- */ | |||
.mw-body-content table.infobox, | |||
.mw-body-content table.wikitable { | |||
border-collapse: separate; | |||
border-spacing: 0; | |||
background: var(--fa-glass-90); | |||
border: 1px solid rgba(255,255,255,0.9); | |||
border-radius: var(--fa-radius-md); | |||
overflow: hidden; | |||
box-shadow: 0 8px 22px var(--fa-shadow-soft); | |||
} | } | ||
.infobox | .mw-body-content table.infobox th, .mw-body-content table.wikitable th { | ||
background: linear-gradient(to bottom, var(--fa-sky-2), var(--fa-sky-4)); | |||
color: #fff; | |||
text-shadow: 0 1px 1px rgba(0,0,0,0.15); | |||
} | } | ||
.mw-body-content table.infobox td, .mw-body-content table.wikitable td, | |||
.mw-body-content table.infobox th, .mw-body-content table.wikitable th { | |||
padding: 6px 10px; | |||
border: 1px solid rgba(255,255,255,0.7); | |||
} | } | ||
.thumbinner { | |||
. | background: var(--fa-glass-90); | ||
border: 1px solid rgba(255,255,255,0.85); | |||
border-radius: var(--fa-radius-sm); | |||
box-shadow: 0 6px 16px var(--fa-shadow-soft); | |||
padding: 6px; | |||
} | } | ||
.thumbcaption { color: var(--fa-ink-soft); } | |||
#toc, .toc { | |||
. | display: inline-block; | ||
background: var(--fa-glass-90); | |||
border: 1px solid rgba(255,255,255,0.85); | |||
border-radius: var(--fa-radius-md); | |||
padding: 10px 16px; | |||
box-shadow: 0 8px 20px var(--fa-shadow-soft); | |||
} | } | ||
#toc .toctitle, .toc .toctitle { font-weight: 700; color: var(--fa-deep); text-align: center; } | |||
/* | /* --------------------------------------------------------------------- | ||
. | 10. Buttons, blockquote, code, hr | ||
--------------------------------------------------------------------- */ | |||
.mw-body-content input[type="submit"], | |||
.mw- | .mw-body-content input[type="button"], | ||
.mw-body-content button, | |||
.mw-ui-button, | |||
.cdx-button { | |||
. | font-family: var(--fa-font); | ||
background: linear-gradient(to bottom, var(--fa-sky-1), var(--fa-sky-4)); | |||
border: 1px solid var(--fa-sky-6); | |||
border-radius: 999px; | |||
color: var(--fa-deep); | |||
padding: 6px 16px; | |||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 3px 8px var(--fa-shadow-soft); | |||
cursor: pointer; | |||
position: relative; | |||
overflow: hidden; | |||
} | } | ||
.mw-ui-button.mw-ui-progressive, | |||
.cdx-button--action-progressive, | |||
.cdx-button--weight-primary { | |||
background: linear-gradient(to bottom, var(--fa-sky-3), var(--fa-sky-6)); | |||
color: #fff; | |||
border-color: var(--fa-sky-6); | |||
} | } | ||
.mw-body-content blockquote { | |||
background: var(--fa-glass-55); | |||
border-left: 4px solid var(--fa-sky-5); | |||
border-radius: 0 var(--fa-radius-sm) var(--fa-radius-sm) 0; | |||
padding: 8px 14px; | |||
} | } | ||
. | .mw-body-content pre, .mw-body-content code { | ||
background: rgba(255,255,255,0.7); | |||
border: 1px solid rgba(255,255,255,0.9); | |||
border-radius: var(--fa-radius-sm); | |||
} | } | ||
.mw-body-content hr { | |||
border: none; | |||
height: 2px; | |||
background: linear-gradient(to right, transparent, var(--fa-sky-5), transparent); | |||
} | } | ||
/* | /* --------------------------------------------------------------------- | ||
. | 11. Category links & footer | ||
--------------------------------------------------------------------- */ | |||
#catlinks { | |||
margin-top: 24px; | |||
background: linear-gradient(180deg, var(--fa-glass-75), var(--fa-glass-55)); | |||
border: 1px solid rgba(255,255,255,0.8); | |||
border-radius: var(--fa-radius-sm); | |||
padding: 8px 12px; | |||
} | } | ||
#footer { | |||
background: linear-gradient(180deg, var(--fa-glass-30), var(--fa-glass-55)); | |||
-webkit-backdrop-filter: blur(4px); | |||
backdrop-filter: blur(4px); | |||
border-top: 1px solid rgba(255,255,255,0.6); | |||
border-radius: var(--fa-radius-lg) var(--fa-radius-lg) 0 0; | |||
margin-top: 24px; | |||
padding: 10px 18px; | |||
color: var(--fa-ink-soft); | |||
} | } | ||
#footer a { color: var(--fa-sky-6); } | |||
#footer-icons img { filter: drop-shadow(0 2px 4px var(--fa-shadow-soft)); } | |||
/* | /* --------------------------------------------------------------------- | ||
. | 12. Accessibility & responsiveness | ||
--------------------------------------------------------------------- */ | |||
a:focus-visible, button:focus-visible, input:focus-visible { | |||
outline: 3px solid var(--fa-sky-6); | |||
outline-offset: 2px; | |||
} | } | ||
@media (prefers-reduced-motion: reduce) { | |||
*, *::before, *::after { | |||
animation-duration: 0.001ms !important; | |||
animation-iteration-count: 1 !important; | |||
transition-duration: 0.001ms !important; | |||
. | |||
. | |||
} | } | ||
} | } | ||
@media (max-width: 800px) { | |||
body::before, body::after { display: none; } | |||
@media | |||
} | |||
} | } | ||
Latest revision as of 00:23, 9 September 2026
/* All CSS here will be loaded for users of the Vector skin */
/* =====================================================================
FRUTIGER AERO
A glossy sky-and-glass reskin for the MediaWiki "Vector" skin
=====================================================================
WHERE TO PASTE THIS
--------------------
Site-wide, classic "Vector" (Vector 2010) skin: MediaWiki:Vector.css
Site-wide, "Vector 2022" skin: MediaWiki:Vector-2022.css
Site-wide, regardless of skin: MediaWiki:Common.css
Personal (your account only), any skin: Special:MyPage/common.css
(You need to be logged in with editing rights on MediaWiki: pages,
which usually means an administrator account.)
WHAT THIS TARGETS
------------------
Modern MediaWiki has merged most of the menu/tab/sidebar markup
between the classic Vector skin and Vector 2022 onto shared class
names (.vector-menu-tabs, .mw-portlet, etc.), so one file works for
both. A handful of older selectors (.vectorTabs, .portal) are kept
alongside them for wikis running an older MediaWiki version - they
simply won't match anything on a newer install, so it's safe either
way.
FEEL FREE TO TUNE
------------------
Everything runs off the CSS variables in section 1 - turn the sky
more turquoise, dial the glass opacity up or down, etc.
===================================================================== */
/* ---------------------------------------------------------------------
1. Palette & tokens
--------------------------------------------------------------------- */
:root {
--fa-sky-1: #eaf8ff;
--fa-sky-2: #c7ecff;
--fa-sky-3: #8fd3ff;
--fa-sky-4: #4fb0f0;
--fa-sky-5: #1c85d6;
--fa-sky-6: #0f5fa8;
--fa-deep: #0b3c66;
--fa-leaf-2: #8fc74e;
--fa-glass-10: rgba(255, 255, 255, 0.10);
--fa-glass-30: rgba(255, 255, 255, 0.30);
--fa-glass-55: rgba(255, 255, 255, 0.55);
--fa-glass-75: rgba(255, 255, 255, 0.75);
--fa-glass-90: rgba(255, 255, 255, 0.90);
--fa-ink: #123a5c;
--fa-ink-soft: #2c5a80;
--fa-link: #0576c9;
--fa-link-visited: #5b6fb0;
--fa-shadow: rgba(9, 80, 145, 0.35);
--fa-shadow-soft: rgba(9, 80, 145, 0.18);
--fa-radius-lg: 20px;
--fa-radius-md: 14px;
--fa-radius-sm: 8px;
--fa-font: "Segoe UI", "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* ---------------------------------------------------------------------
2. Sky background, clouds & floating bubbles
--------------------------------------------------------------------- */
html {
background: var(--fa-sky-4);
}
body {
background:
radial-gradient(ellipse 320px 90px at 14% 6%, rgba(255,255,255,0.55), transparent 70%),
radial-gradient(ellipse 240px 70px at 80% 12%, rgba(255,255,255,0.40), transparent 70%),
linear-gradient(180deg,
var(--fa-sky-1) 0%,
var(--fa-sky-2) 22%,
var(--fa-sky-3) 45%,
var(--fa-sky-4) 70%,
var(--fa-sky-5) 100%);
background-attachment: fixed;
font-family: var(--fa-font);
color: var(--fa-ink);
overflow-x: hidden;
position: relative;
}
body::before,
body::after {
content: "";
position: fixed;
width: 16px;
height: 16px;
border-radius: 50%;
pointer-events: none;
z-index: 0;
background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95), rgba(255,255,255,0.05) 55%, transparent 70%);
}
body::before {
top: 8vh;
left: 6vw;
box-shadow:
22vw 6vh 0 6px rgba(255,255,255,0.16),
46vw 62vh 0 12px rgba(255,255,255,0.12),
68vw 18vh 0 3px rgba(255,255,255,0.20),
82vw 78vh 0 9px rgba(255,255,255,0.14),
6vw 86vh 0 7px rgba(255,255,255,0.16),
92vw 40vh 0 4px rgba(255,255,255,0.18);
animation: fa-drift 26s ease-in-out infinite;
}
body::after {
top: 46vh;
left: 50vw;
width: 10px;
height: 10px;
box-shadow:
-34vw 12vh 0 5px rgba(255,255,255,0.12),
18vw -30vh 0 7px rgba(255,255,255,0.14),
-14vw 38vh 0 3px rgba(255,255,255,0.16),
40vw 8vh 0 6px rgba(255,255,255,0.12),
-44vw -12vh 0 4px rgba(255,255,255,0.14);
animation: fa-drift 34s ease-in-out infinite reverse;
}
@keyframes fa-drift {
0%, 100% { transform: translate(0, 0); }
50% { transform: translate(14px, -26px); }
}
::selection {
background: rgba(143, 199, 78, 0.45);
color: var(--fa-deep);
}
/* Glossy blue scrollbar */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--fa-sky-1); }
::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, var(--fa-sky-3), var(--fa-sky-6));
border-radius: 999px;
border: 3px solid var(--fa-sky-1);
}
html { scrollbar-color: var(--fa-sky-5) var(--fa-sky-1); }
/* ---------------------------------------------------------------------
3. Header chrome: top bars, header bar, logo
--------------------------------------------------------------------- */
#mw-page-base {
height: 6em;
background: linear-gradient(to bottom, rgba(255,255,255,0.55), rgba(255,255,255,0) 90%);
}
#mw-head-base { margin-top: -6em; height: 6em; }
#mw-head,
.mw-header {
position: relative;
z-index: 2;
}
.mw-header {
background: linear-gradient(180deg, var(--fa-glass-75), var(--fa-glass-30));
-webkit-backdrop-filter: blur(6px);
backdrop-filter: blur(6px);
border-bottom: 1px solid var(--fa-glass-90);
box-shadow: 0 2px 14px var(--fa-shadow-soft);
}
#p-logo, .mw-logo { position: relative; z-index: 3; }
#p-logo a,
.mw-logo-icon {
border-radius: 50%;
background: radial-gradient(circle at 32% 28%, #fff, var(--fa-sky-3) 60%, var(--fa-sky-6) 100%);
box-shadow:
0 0 0 5px rgba(255,255,255,0.55),
0 0 0 9px rgba(255,255,255,0.22),
0 6px 16px var(--fa-shadow);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#p-logo a:hover, a.mw-logo:hover .mw-logo-icon {
transform: scale(1.06);
box-shadow:
0 0 0 5px rgba(255,255,255,0.7),
0 0 0 10px rgba(255,255,255,0.3),
0 8px 20px var(--fa-shadow);
}
.mw-logo-wordmark {
color: var(--fa-deep);
text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
/* ---------------------------------------------------------------------
4. Navigation tabs & dropdown menus (article/talk, read/edit/history,
"more", variants, user menu) - shared modern classes + legacy ones
--------------------------------------------------------------------- */
.vector-menu-tabs li a,
.vectorTabs li a,
.vectorMenu .menu li a {
display: inline-block;
padding: 6px 14px;
margin-top: 4px;
background: linear-gradient(to bottom, var(--fa-glass-90), var(--fa-sky-2) 60%, var(--fa-sky-3));
border: 1px solid rgba(255,255,255,0.8);
border-bottom: none;
border-radius: 12px 12px 0 0;
color: var(--fa-ink) !important;
text-decoration: none;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 -2px 6px rgba(255,255,255,0.4);
position: relative;
overflow: hidden;
}
.vector-menu-tabs li.selected a,
.vectorTabs li.selected a {
background: linear-gradient(to bottom, #ffffff, var(--fa-sky-1));
box-shadow: inset 0 2px 6px var(--fa-shadow-soft);
font-weight: 600;
}
.vector-menu-dropdown > .vector-menu-heading,
.vectorMenu h3 {
background: linear-gradient(to bottom, var(--fa-glass-90), var(--fa-sky-2));
border: 1px solid rgba(255,255,255,0.8);
border-radius: 10px;
padding: 4px 10px;
color: var(--fa-ink);
}
.vector-menu-dropdown .vector-menu-content,
.vectorMenu .menu {
background: var(--fa-glass-90);
-webkit-backdrop-filter: blur(6px);
backdrop-filter: blur(6px);
border: 1px solid rgba(255,255,255,0.85);
border-radius: var(--fa-radius-sm);
box-shadow: 0 8px 22px var(--fa-shadow);
}
#p-personal ul li a,
.vector-user-menu .vector-menu-content-list li a {
color: var(--fa-ink);
}
#p-personal ul li a:hover { color: var(--fa-sky-6); }
/* Glossy shine sweep on hover - tabs, search button, buttons */
.vector-menu-tabs li a::after,
.vectorTabs li a::after,
#searchButton::after,
.cdx-search-input__end-button::after,
.mw-ui-button::after,
.cdx-button::after {
content: "";
position: absolute;
top: -60%; left: -60%;
width: 40%; height: 220%;
background: rgba(255,255,255,0.55);
transform: rotate(20deg);
transition: left 0.55s ease;
pointer-events: none;
}
.vector-menu-tabs li a:hover::after,
.vectorTabs li a:hover::after,
#searchButton:hover::after,
.cdx-search-input__end-button:hover::after,
.mw-ui-button:hover::after,
.cdx-button:hover::after { left: 130%; }
/* ---------------------------------------------------------------------
5. Search box (legacy #searchInput and the modern Codex search input)
--------------------------------------------------------------------- */
#searchInput,
.cdx-text-input__input,
input[type="search"] {
background: var(--fa-glass-90) !important;
border: 1px solid rgba(255,255,255,0.85) !important;
border-radius: 999px !important;
padding: 6px 14px !important;
box-shadow: inset 0 2px 5px var(--fa-shadow-soft);
color: var(--fa-ink) !important;
}
#searchInput:focus,
.cdx-text-input__input:focus {
outline: 2px solid var(--fa-sky-5);
outline-offset: 2px;
}
#searchButton,
.cdx-search-input__end-button {
background: linear-gradient(to bottom, var(--fa-sky-2), var(--fa-sky-5)) !important;
border: 1px solid var(--fa-sky-6) !important;
border-radius: 999px !important;
color: #fff !important;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 3px 8px var(--fa-shadow);
position: relative;
overflow: hidden;
}
/* ---------------------------------------------------------------------
6. Sidebar portals (legacy .portal / modern .mw-portlet)
--------------------------------------------------------------------- */
.portal, .mw-portlet {
background: linear-gradient(180deg, var(--fa-glass-75), var(--fa-glass-30));
-webkit-backdrop-filter: blur(6px);
backdrop-filter: blur(6px);
border: 1px solid rgba(255,255,255,0.7);
border-radius: var(--fa-radius-md);
box-shadow: 0 6px 18px var(--fa-shadow-soft), inset 0 1px 0 rgba(255,255,255,0.8);
padding: 8px 10px;
margin-bottom: 12px !important;
}
.portal h3, .mw-portlet h3, .vector-menu-heading {
color: var(--fa-deep);
font-weight: 700;
border-bottom: 1px solid rgba(255,255,255,0.6);
padding-bottom: 4px;
margin-bottom: 6px;
}
.portal .body ul li a,
.mw-portlet-body ul li a,
.vector-menu-content-list li a {
color: var(--fa-ink);
text-decoration: none;
border-radius: var(--fa-radius-sm);
padding: 2px 6px;
display: inline-block;
}
.portal .body ul li a:hover,
.mw-portlet-body ul li a:hover,
.vector-menu-content-list li a:hover {
background: rgba(255,255,255,0.5);
text-decoration: underline;
}
/* ---------------------------------------------------------------------
7. Main content panel
--------------------------------------------------------------------- */
.mw-body {
background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.80));
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
border: 1px solid rgba(255,255,255,0.8);
border-radius: var(--fa-radius-lg);
box-shadow: 0 12px 34px var(--fa-shadow), inset 0 1px 0 rgba(255,255,255,0.9);
padding: 18px 24px !important;
}
/* ---------------------------------------------------------------------
8. Headings, links, lists
--------------------------------------------------------------------- */
#firstHeading, .mw-first-heading {
font-weight: 700;
color: var(--fa-deep);
border-bottom: 3px solid transparent;
border-image: linear-gradient(to right, var(--fa-sky-5), var(--fa-leaf-2)) 1;
padding-bottom: 8px;
text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.mw-body-content h2 {
color: var(--fa-deep);
border-bottom: 1px solid var(--fa-sky-3);
padding-bottom: 4px;
margin-top: 1.6em;
}
.mw-body-content h2::before {
content: "";
display: inline-block;
width: 9px; height: 9px;
margin-right: 8px;
border-radius: 50%;
background: radial-gradient(circle at 32% 28%, #fff, var(--fa-sky-4) 60%, var(--fa-sky-6));
vertical-align: middle;
}
.mw-body-content h3 { color: var(--fa-ink-soft); }
.mw-body-content a { color: var(--fa-link); text-decoration: none; border-bottom: 1px solid rgba(5,118,201,0.3); }
.mw-body-content a:hover { color: var(--fa-sky-6); border-bottom-color: var(--fa-sky-6); }
.mw-body-content a:visited { color: var(--fa-link-visited); }
.mw-body-content a.new, .mw-body-content a.new:visited { color: #c0392b; border-bottom-style: dashed; }
.mw-body-content ul li { list-style: none; position: relative; padding-left: 4px; }
.mw-body-content ul li::before {
content: "";
position: absolute;
left: -18px;
top: 0.55em;
width: 9px; height: 9px;
border-radius: 50%;
background: radial-gradient(circle at 32% 28%, #fff, var(--fa-sky-3) 55%, var(--fa-sky-5) 100%);
box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.mw-body-content ol li::marker { color: var(--fa-sky-6); font-weight: 700; }
/* ---------------------------------------------------------------------
9. Tables, infoboxes, thumbnails, table of contents
--------------------------------------------------------------------- */
.mw-body-content table.infobox,
.mw-body-content table.wikitable {
border-collapse: separate;
border-spacing: 0;
background: var(--fa-glass-90);
border: 1px solid rgba(255,255,255,0.9);
border-radius: var(--fa-radius-md);
overflow: hidden;
box-shadow: 0 8px 22px var(--fa-shadow-soft);
}
.mw-body-content table.infobox th, .mw-body-content table.wikitable th {
background: linear-gradient(to bottom, var(--fa-sky-2), var(--fa-sky-4));
color: #fff;
text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}
.mw-body-content table.infobox td, .mw-body-content table.wikitable td,
.mw-body-content table.infobox th, .mw-body-content table.wikitable th {
padding: 6px 10px;
border: 1px solid rgba(255,255,255,0.7);
}
.thumbinner {
background: var(--fa-glass-90);
border: 1px solid rgba(255,255,255,0.85);
border-radius: var(--fa-radius-sm);
box-shadow: 0 6px 16px var(--fa-shadow-soft);
padding: 6px;
}
.thumbcaption { color: var(--fa-ink-soft); }
#toc, .toc {
display: inline-block;
background: var(--fa-glass-90);
border: 1px solid rgba(255,255,255,0.85);
border-radius: var(--fa-radius-md);
padding: 10px 16px;
box-shadow: 0 8px 20px var(--fa-shadow-soft);
}
#toc .toctitle, .toc .toctitle { font-weight: 700; color: var(--fa-deep); text-align: center; }
/* ---------------------------------------------------------------------
10. Buttons, blockquote, code, hr
--------------------------------------------------------------------- */
.mw-body-content input[type="submit"],
.mw-body-content input[type="button"],
.mw-body-content button,
.mw-ui-button,
.cdx-button {
font-family: var(--fa-font);
background: linear-gradient(to bottom, var(--fa-sky-1), var(--fa-sky-4));
border: 1px solid var(--fa-sky-6);
border-radius: 999px;
color: var(--fa-deep);
padding: 6px 16px;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 3px 8px var(--fa-shadow-soft);
cursor: pointer;
position: relative;
overflow: hidden;
}
.mw-ui-button.mw-ui-progressive,
.cdx-button--action-progressive,
.cdx-button--weight-primary {
background: linear-gradient(to bottom, var(--fa-sky-3), var(--fa-sky-6));
color: #fff;
border-color: var(--fa-sky-6);
}
.mw-body-content blockquote {
background: var(--fa-glass-55);
border-left: 4px solid var(--fa-sky-5);
border-radius: 0 var(--fa-radius-sm) var(--fa-radius-sm) 0;
padding: 8px 14px;
}
.mw-body-content pre, .mw-body-content code {
background: rgba(255,255,255,0.7);
border: 1px solid rgba(255,255,255,0.9);
border-radius: var(--fa-radius-sm);
}
.mw-body-content hr {
border: none;
height: 2px;
background: linear-gradient(to right, transparent, var(--fa-sky-5), transparent);
}
/* ---------------------------------------------------------------------
11. Category links & footer
--------------------------------------------------------------------- */
#catlinks {
margin-top: 24px;
background: linear-gradient(180deg, var(--fa-glass-75), var(--fa-glass-55));
border: 1px solid rgba(255,255,255,0.8);
border-radius: var(--fa-radius-sm);
padding: 8px 12px;
}
#footer {
background: linear-gradient(180deg, var(--fa-glass-30), var(--fa-glass-55));
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
border-top: 1px solid rgba(255,255,255,0.6);
border-radius: var(--fa-radius-lg) var(--fa-radius-lg) 0 0;
margin-top: 24px;
padding: 10px 18px;
color: var(--fa-ink-soft);
}
#footer a { color: var(--fa-sky-6); }
#footer-icons img { filter: drop-shadow(0 2px 4px var(--fa-shadow-soft)); }
/* ---------------------------------------------------------------------
12. Accessibility & responsiveness
--------------------------------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible {
outline: 3px solid var(--fa-sky-6);
outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
}
}
@media (max-width: 800px) {
body::before, body::after { display: none; }
}