MediaWiki:Common.css: Difference between revisions
Fix body background and logo text positioning |
Surgical rebuild - remove all background and layout conflicts |
||
| Line 512: | Line 512: | ||
color: #4a3c28 !important; | color: #4a3c28 !important; | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
/* --- 12. Remove Vector Text Shadows --- */ | /* --- 12. Remove Vector Text Shadows --- */ | ||
| Line 554: | Line 536: | ||
padding-left: 14px !important; | padding-left: 14px !important; | ||
padding-right: 14px !important; | padding-right: 14px !important; | ||
} | } | ||
/* --- 15. VisualEditor Toolbar Fixes --- */ | /* --- 15. VisualEditor Toolbar Fixes --- */ | ||
| Line 619: | Line 580: | ||
margin-top: 48px !important; /* Push it down below the beige header bar */ | margin-top: 48px !important; /* Push it down below the beige header bar */ | ||
} | } | ||
/* ========================================================================== | /* ========================================================================== | ||
BODY & BACKGROUND | |||
========================================================================== */ | |||
body { | |||
background: #e1d5be; | |||
background-image: none; | |||
} | |||
/* ========================================================================== | |||
LOGO TEXT (sidebar, below logo icon) | |||
========================================================================== */ | ========================================================================== */ | ||
#p-logo::after { | |||
content: "The Winds of Valen Wiki"; | |||
display: block; | |||
text-align: center; | |||
font-family: 'Kingthings Petrock', 'PT Serif', Georgia, serif; | |||
font-size: 1.1em; | |||
font-weight: normal; | |||
color: #f1e7d3; | |||
text-shadow: 2px 2px 4px #000000, -1px -1px 2px #000000; | |||
line-height: 1.2; | |||
padding: 0 6px; | |||
margin-top: 2px; | |||
} | } | ||
/* | /* ========================================================================== | ||
BANNER | |||
#mw-page-base is already position:absolute in Vector Legacy skin. | |||
We use it as the full-width banner container. | |||
========================================================================== */ | |||
#mw-page-base { | #mw-page-base { | ||
position: absolute !important; | position: absolute !important; | ||
| Line 657: | Line 626: | ||
} | } | ||
/* | /* Hide the redundant head-base gradient overlay */ | ||
#mw-head-base { | #mw-head-base { | ||
display: none !important; | display: none !important; | ||
| Line 663: | Line 632: | ||
/* ========================================================================== | /* ========================================================================== | ||
DESKTOP LAYOUT | DESKTOP LAYOUT >= 1000px | ||
========================================================================== */ | ========================================================================== */ | ||
@media screen and (min-width: 1000px) { | @media screen and (min-width: 1000px) { | ||
/* | /* Tab bar row: sits at the bottom of the 160px banner */ | ||
#mw-head { | #mw-head { | ||
position: absolute !important; | position: absolute !important; | ||
| Line 682: | Line 649: | ||
} | } | ||
/* | /* Beige bar behind the tabs */ | ||
#mw-head::before { | #mw-head::before { | ||
content: "" !important; | content: "" !important; | ||
| Line 696: | Line 663: | ||
} | } | ||
/* | /* Left nav: Main Page, Discussion tabs */ | ||
#left-navigation { | #left-navigation { | ||
position: absolute !important; | position: absolute !important; | ||
| Line 706: | Line 673: | ||
} | } | ||
/* | /* Right nav: Read, Edit, Search */ | ||
#right-navigation { | #right-navigation { | ||
position: absolute !important; | position: absolute !important; | ||
| Line 716: | Line 683: | ||
} | } | ||
/* | /* Personal tools: Create account / Log in — top right corner */ | ||
#p-personal { | #p-personal { | ||
position: absolute !important; | position: absolute !important; | ||
top: - | top: -80px !important; | ||
right: 10px !important; | right: 10px !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
| Line 725: | Line 692: | ||
} | } | ||
#p-personal ul { | #p-personal ul { | ||
background | background: transparent !important; | ||
border: none !important; | border: none !important; | ||
padding: 0 !important; | padding: 2px 0 !important; | ||
} | } | ||
/* | /* Content box: starts at bottom of banner, shifted right of sidebar */ | ||
#content { | #content { | ||
position: relative !important; | position: relative !important; | ||
| Line 739: | Line 706: | ||
} | } | ||
/* | /* Active tab latches onto content box top border */ | ||
.vector-menu-tabs .vector-menu-content-list > li.selected { | .vector-menu-tabs .vector-menu-content-list > li.selected { | ||
margin-bottom: -3px !important; | margin-bottom: -3px !important; | ||
| Line 746: | Line 713: | ||
} | } | ||
/* | /* Sidebar: starts at top:0 so logo naturally overlaps the banner */ | ||
#mw-panel { | #mw-panel { | ||
position: absolute !important; | position: absolute !important; | ||
| Line 754: | Line 721: | ||
padding-top: 0 !important; | padding-top: 0 !important; | ||
z-index: 10 !important; | z-index: 10 !important; | ||
background: transparent !important; | |||
} | } | ||
/* | /* Logo area: spans full 160px banner height */ | ||
#p-logo { | #p-logo { | ||
height: 160px !important; | height: 160px !important; | ||
display: | display: block !important; | ||
overflow: hidden !important; | |||
padding: 0 !important; | padding: 0 !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
/* Logo anchor: shows the icon image in top portion, leaves room for text below */ | |||
#p-logo a { | #p-logo a { | ||
display: block !important; | display: block !important; | ||
width: | width: 165px !important; | ||
height: | height: 110px !important; | ||
background-position: center | background-size: 100px auto !important; | ||
background- | background-position: center 8px !important; | ||
background-repeat: no-repeat !important; | |||
} | } | ||
} | } | ||
/* ========================================================================== | /* ========================================================================== | ||
MOBILE LAYOUT | MOBILE LAYOUT < 1000px | ||
========================================================================== */ | ========================================================================== */ | ||
@media screen and (max-width: 999px) { | @media screen and (max-width: 999px) { | ||
body { | body { | ||
background: #e1d5be !important; | background: #e1d5be !important; | ||
background-image: none !important; | |||
} | } | ||
#mw-page-base { | #mw-page-base { | ||
| Line 802: | Line 773: | ||
#p-logo { | #p-logo { | ||
height: auto !important; | height: auto !important; | ||
} | |||
#p-logo a { | |||
height: 80px !important; | |||
background-size: contain !important; | |||
background-position: center !important; | |||
} | } | ||
.vector-menu-tabs .vector-menu-content-list > li { | .vector-menu-tabs .vector-menu-content-list > li { | ||
| Line 857: | Line 833: | ||
.discord-widget-modern:hover { background-color: #4752C4; cursor: pointer; } | .discord-widget-modern:hover { background-color: #4752C4; cursor: pointer; } | ||
.discord-widget-modern:hover .discord-bottom { background-color: #3b45a5; } | .discord-widget-modern:hover .discord-bottom { background-color: #3b45a5; } | ||