MediaWiki:Vector.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
--wiki-shell-width: min(1350px, 100vw); | --wiki-shell-width: min(1350px, 100vw); | ||
--wiki-sidebar-width: 210px; | --wiki-sidebar-width: 210px; | ||
--wiki-content-width: calc(var(--wiki-shell-width) - var(--wiki-sidebar-width)); | |||
--wiki-content-width: calc(var(--wiki-shell-width) - var(--wiki-sidebar-width | |||
--wiki-head-height: 82px; | --wiki-head-height: 82px; | ||
--wiki-user-row-top: 8px; | --wiki-user-row-top: 8px; | ||
--wiki-nav-row-top: 42px; | --wiki-nav-row-top: 42px; | ||
--wiki-content-padding: 16px; | |||
} | } | ||
/* PAGE BACKGROUND */ | /* OUTER PAGE BACKGROUND */ | ||
/* --------------- */ | /* --------------------- */ | ||
/* This is the space outside the centred wiki body. */ | |||
html { | |||
background: #f5f3ee; | |||
} | |||
/* CENTERED BODY SHELL */ | |||
/* ------------------- */ | |||
/* The actual MediaWiki body becomes the centred site container. */ | |||
body.skin-vector-legacy { | body.skin-vector-legacy { | ||
background: | position: relative; | ||
width: var(--wiki-shell-width); | |||
min-height: 100vh; | |||
margin: 0 auto !important; | |||
padding: 0 !important; | |||
background: transparent; | |||
overflow-x: visible; | |||
} | } | ||
| Line 27: | Line 41: | ||
/* DISABLE VECTOR'S FAKE BACKGROUND STRIPS */ | /* DISABLE VECTOR'S FAKE BACKGROUND STRIPS */ | ||
/* --------------------------------------- */ | /* --------------------------------------- */ | ||
body.skin-vector-legacy #mw-page-base, | body.skin-vector-legacy #mw-page-base, | ||
body.skin-vector-legacy #mw-head-base { | body.skin-vector-legacy #mw-head-base { | ||
| Line 38: | Line 51: | ||
body.skin-vector-legacy #mw-panel { | body.skin-vector-legacy #mw-panel { | ||
position: absolute !important; | position: absolute !important; | ||
left: | left: 0 !important; | ||
top: 0 !important; | top: 0 !important; | ||
width: var(--wiki-sidebar-width) !important; | width: var(--wiki-sidebar-width) !important; | ||
| Line 69: | Line 82: | ||
/* TOP HEAD BAR */ | /* TOP HEAD BAR */ | ||
/* ------------ */ | /* ------------ */ | ||
/* | /* The header starts beside the sidebar and spans the same width as the content body. */ | ||
body.skin-vector-legacy #mw-head { | body.skin-vector-legacy #mw-head { | ||
position: absolute !important; | position: absolute !important; | ||
top: 0 !important; | top: 0 !important; | ||
left: | left: var(--wiki-sidebar-width) !important; | ||
right: auto !important; | right: auto !important; | ||
width: var(--wiki-content-width) !important; | width: var(--wiki-content-width) !important; | ||
| Line 84: | Line 97: | ||
overflow: visible; | overflow: visible; | ||
} | } | ||
/* USER MENU */ | /* USER MENU */ | ||
/* --------- */ | /* --------- */ | ||
body.skin-vector-legacy #p-personal { | body.skin-vector-legacy #p-personal { | ||
position: absolute !important; | position: absolute !important; | ||
| Line 101: | Line 114: | ||
/* LEFT PAGE TABS */ | /* LEFT PAGE TABS */ | ||
/* -------------- */ | /* -------------- */ | ||
body.skin-vector-legacy #left-navigation { | body.skin-vector-legacy #left-navigation { | ||
position: absolute !important; | position: absolute !important; | ||
| Line 114: | Line 126: | ||
/* RIGHT PAGE TABS AND SEARCH */ | /* RIGHT PAGE TABS AND SEARCH */ | ||
/* -------------------------- */ | /* -------------------------- */ | ||
body.skin-vector-legacy #right-navigation { | body.skin-vector-legacy #right-navigation { | ||
position: absolute !important; | position: absolute !important; | ||
| Line 140: | Line 151: | ||
/* MAIN CONTENT BODY */ | /* MAIN CONTENT BODY */ | ||
/* ----------------- */ | /* ----------------- */ | ||
/* | /* This is the bordered outer page container, like the BG3 wiki content body. */ | ||
body.skin-vector-legacy #content.mw-body { | body.skin-vector-legacy #content.mw-body { | ||
position: absolute !important; | position: absolute !important; | ||
top: var(--wiki-head-height) !important; | top: var(--wiki-head-height) !important; | ||
left: | left: var(--wiki-sidebar-width) !important; | ||
right: auto !important; | right: auto !important; | ||
| Line 156: | Line 167: | ||
background: #fff; | background: #fff; | ||
border: 1px solid #333; | border: 1px solid #333; | ||
padding: | padding: var(--wiki-content-padding) !important; | ||
} | } | ||
/* PAGE TITLE STRIP */ | /* PAGE TITLE STRIP */ | ||
/* ---------------- */ | /* ---------------- */ | ||
body.skin-vector-legacy h1#firstHeading { | body.skin-vector-legacy h1#firstHeading { | ||
margin: 0 0 12px 0 !important; | margin: 0 0 12px 0 !important; | ||
| Line 182: | Line 193: | ||
font-weight: inherit !important; | font-weight: inherit !important; | ||
} | } | ||
/* PAGE CONTENT AREA */ | /* PAGE CONTENT AREA */ | ||
/* ----------------- */ | /* ----------------- */ | ||
body.skin-vector-legacy #bodyContent { | body.skin-vector-legacy #bodyContent { | ||
width: 100%; | width: 100%; | ||
| Line 200: | Line 211: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
/* SIDEBAR LINKS */ | /* SIDEBAR LINKS */ | ||
| Line 235: | Line 247: | ||
padding: 0; | padding: 0; | ||
background: transparent; | background: transparent; | ||
} | } | ||