MediaWiki:Vector.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* CENTERED VECTOR | /* ============================== */ | ||
/* ---------------------- */ | /* WIZLORDS VECTOR SKIN OVERRIDES */ | ||
/* ============================== */ | |||
/* CENTERED VECTOR VARIABLES */ | |||
/* ------------------------- */ | |||
:root { | :root { | ||
--wiki-shell-width: 1350px; | --wiki-shell-width: 1350px; | ||
--wiki-sidebar-width: 210px; | --wiki-sidebar-width: 210px; | ||
--wiki-content-width: calc(var(--wiki-shell-width) - var(--wiki-sidebar-width)); | |||
--wiki-shell-gap: max(0px, calc((100vw - var(--wiki-shell-width)) / 2)); | --wiki-shell-gap: max(0px, calc((100vw - var(--wiki-shell-width)) / 2)); | ||
} | } | ||
/* PAGE BACKGROUND */ | |||
/* --------------- */ | |||
body.skin-vector-legacy { | body.skin-vector-legacy { | ||
background: #f5f3ee; | background: #f5f3ee; | ||
} | } | ||
/* | |||
/* VECTOR TOP BACKGROUND STRIPS */ | |||
/* ---------------------------- */ | |||
/* These are Vector's fake top background layers. They need to match the centred shell. */ | |||
body.skin-vector-legacy #mw-page-base { | |||
left: var(--wiki-shell-gap); | |||
width: var(--wiki-shell-width); | |||
margin-left: 0; | |||
background: #fff; | |||
} | |||
body.skin-vector-legacy #mw-head-base { | |||
left: calc(var(--wiki-shell-gap) + var(--wiki-sidebar-width)); | |||
width: var(--wiki-content-width); | |||
margin-left: 0; | |||
background: #fff; | |||
} | |||
/* LEFT SIDEBAR LAYOUT */ | |||
/* ------------------- */ | |||
body.skin-vector-legacy #mw-panel { | body.skin-vector-legacy #mw-panel { | ||
left: var(--wiki-shell-gap); | left: var(--wiki-shell-gap); | ||
| Line 26: | Line 55: | ||
} | } | ||
/* | |||
/* LEFT SIDEBAR LOGO */ | |||
/* ----------------- */ | |||
body.skin-vector-legacy #p-logo { | body.skin-vector-legacy #p-logo { | ||
position: relative; | position: relative; | ||
| Line 38: | Line 69: | ||
} | } | ||
/* | |||
/* MAIN CONTENT LAYOUT */ | |||
/* ------------------- */ | |||
body.skin-vector-legacy #content.mw-body { | body.skin-vector-legacy #content.mw-body { | ||
margin-left: calc(var(--wiki-shell-gap) + var(--wiki-sidebar-width)); | margin-left: calc(var(--wiki-shell-gap) + var(--wiki-sidebar-width)); | ||
width: | width: var(--wiki-content-width); | ||
max-width: | max-width: var(--wiki-content-width); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: #fff; | background: #fff; | ||
} | } | ||
/* | |||
/* TOP NAVIGATION LAYOUT */ | |||
/* --------------------- */ | |||
body.skin-vector-legacy #mw-head { | body.skin-vector-legacy #mw-head { | ||
left: calc(var(--wiki-shell-gap) + var(--wiki-sidebar-width)); | left: calc(var(--wiki-shell-gap) + var(--wiki-sidebar-width)); | ||
right: auto; | right: auto; | ||
width: | width: var(--wiki-content-width); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
body.skin-vector-legacy #left-navigation { | body.skin-vector-legacy #left-navigation { | ||
left: 0; | left: 0; | ||
| Line 76: | Line 98: | ||
} | } | ||
/* | |||
/* PERSONAL LINKS LAYOUT */ | |||
/* --------------------- */ | |||
body.skin-vector-legacy #p-personal { | |||
right: var(--wiki-shell-gap); | |||
} | |||
/* SIDEBAR LINK STYLING */ | |||
/* -------------------- */ | |||
body.skin-vector-legacy #mw-panel a { | body.skin-vector-legacy #mw-panel a { | ||
color: #d08b00; | color: #d08b00; | ||
| Line 85: | Line 116: | ||
} | } | ||
body.skin-vector-legacy #mw-panel a:hover { | |||
color: #ffb536; | |||
} | |||
/* SIDEBAR SECTION STYLING */ | |||
/* ----------------------- */ | |||
body.skin-vector-legacy #mw-panel .portal { | body.skin-vector-legacy #mw-panel .portal { | ||
margin: 0 0 18px 0; | margin: 0 0 18px 0; | ||
| Line 102: | Line 140: | ||
padding: 0; | padding: 0; | ||
background: transparent; | background: transparent; | ||
} | |||
/* PAGE TITLE TEXT RULES */ | |||
/* --------------------- */ | |||
body.skin-vector-legacy h1#firstHeading, | |||
body.skin-vector-legacy h1#firstHeading .mw-page-title-main { | |||
font-family: Arial, Helvetica, sans-serif !important; | |||
font-size: clamp(30px, 3.2vw, 42px) !important; | |||
line-height: 1.1 !important; | |||
font-weight: bold !important; | |||
} | } | ||