MediaWiki:Common.css: Difference between revisions
Perfecting Classic Layout layout and dark mode override |
Perfecting layout |
||
| Line 1: | Line 1: | ||
/* | /* Ensure body is beige */ | ||
body, html { | |||
background-color: #c7b89e !important; /* Slightly darker beige for the far background */ | |||
background-color: # | |||
/* | |||
} | } | ||
/* | /* | ||
The banner image | The banner image spanning the top | ||
*/ | */ | ||
#mw-page-base { | #mw-page-base { | ||
| Line 29: | Line 14: | ||
width: 100%; | width: 100%; | ||
height: 400px !important; | height: 400px !important; | ||
background-image: linear-gradient(to bottom, rgba( | background-image: linear-gradient(to bottom, rgba(199,184,158,0) 60%, #c7b89e 100%), url('/images/valen_banner.png') !important; | ||
background-position: center top !important; | background-position: center top !important; | ||
background-repeat: no-repeat !important; | background-repeat: no-repeat !important; | ||
| Line 36: | Line 21: | ||
} | } | ||
/* | /* Base header spacer - keeps things from flying to the top */ | ||
#mw-head-base { | |||
height: 5em !important; | |||
background: transparent !important; | |||
} | |||
/* Transparent Sidebar */ | |||
#mw-panel { | #mw-panel { | ||
background | background: transparent !important; | ||
z-index: 2; | |||
z-index: 2 | |||
} | } | ||
#p-logo { | #p-logo { | ||
background: transparent !important; | background: transparent !important; | ||
} | } | ||
.mw-wiki-logo { | |||
background-image: url('/images/windsofvalenlogo.ico') !important; | background-image: url('/images/windsofvalenlogo.ico') !important; | ||
background-size: contain !important; | background-size: contain !important; | ||
background-color: transparent !important; | background-color: transparent !important; | ||
} | } | ||
.portal { | |||
.portal | |||
background: transparent !important; | background: transparent !important; | ||
} | } | ||
.vector-menu-portal .vector-menu-heading { | .vector-menu-portal .vector-menu-heading { | ||
color: #332717 !important; | color: #332717 !important; | ||
| Line 65: | Line 50: | ||
.vector-menu-portal .vector-menu-content li a { | .vector-menu-portal .vector-menu-content li a { | ||
color: #4a3a25 !important; | color: #4a3a25 !important; | ||
} | } | ||
/* Transparent | /* Transparent Tabs */ | ||
#mw-head { | #mw-head { | ||
background: transparent !important; | background: transparent !important; | ||
z-index: 5 !important; | z-index: 5 !important; | ||
} | } | ||
#p-namespaces li, #p-views li, #p-variants li, .vector-menu-tabs li, #left-navigation, #right-navigation, #p-personal { | |||
#p-namespaces li, #p-views li, #p-variants li, .vector-menu-tabs li, | |||
background: transparent !important; | background: transparent !important; | ||
background-image: none !important; | background-image: none !important; | ||
| Line 94: | Line 67: | ||
} | } | ||
#p-namespaces li.selected a, #p-views li.selected a { | #p-namespaces li.selected a, #p-views li.selected a { | ||
color: #ffd700 !important; | color: #ffd700 !important; | ||
} | } | ||
#p-search form, #simpleSearch { | |||
#p-search form, #simpleSearch | |||
background: rgba(255, 255, 255, 0.8) !important; | background: rgba(255, 255, 255, 0.8) !important; | ||
border: 1px solid #7d6b54 !important; | border: 1px solid #7d6b54 !important; | ||
} | } | ||
/* Content Area */ | /* Content Area - Fixed width to prevent infinite stretching, shifted down to overlap banner */ | ||
#content { | #content { | ||
background-color: | background-color: #e5d8c5 !important; /* OSRS Beige */ | ||
color: #332717 !important; | |||
border: | border: 2px solid #7d6b54 !important; | ||
border-radius: 5px; | |||
position: relative; | position: relative; | ||
z-index: 1; | z-index: 1; | ||
margin-top: | margin-top: 150px !important; /* Push down to overlap banner beautifully */ | ||
margin-left: 12em !important; /* Make room for sidebar */ | |||
max-width: 1000px !important; /* Prevent full width stretching */ | |||
padding: 2em; | |||
box-shadow: 0 0 15px rgba(0,0,0,0.5); | |||
} | } | ||
/* | /* Links and Headers */ | ||
h1, h2, h3, h4 { | |||
color: #332717 !important; | color: #332717 !important; | ||
border-bottom: 1px solid #7d6b54 !important; | |||
} | } | ||
a { | |||
color: #633f00; /* Darker brown links */ | |||
color: # | |||
} | } | ||
/* Hide | /* Hide Main Page Header */ | ||
.page-Main_Page #firstHeading { | .page-Main_Page #firstHeading { | ||
display: none !important; | display: none !important; | ||
} | } | ||