MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
/*─────────────────────────────────────────────────────────
1) Reset & Base
─────────────────────────────────────────────────────────*/
html, body {
margin: 0; padding: 0;
font-family: 'Cinzel', Georgia, serif;
background: url('/images/wiki_background.png') center center fixed no-repeat;
background-size: cover;
color: #333;
}
/*─────────────────────────────────────────────────────────
2) Header Bar & Menus
─────────────────────────────────────────────────────────*/
/* Purple background */
#mw-head {
clear: both;
background: #4B0082;
border-bottom: 3px solid #F28C28;
padding: 0.5em 1em;
position: relative; z-index: 100;
box-sizing: border-box;
}
/* Float tabs (Read/Edit, etc.) */
#p-namespaces, #p-cactions {
float: left !important;
margin: 0.4em 0.8em !important;
}
#p-namespaces .body, #p-cactions .body {
background: #fff !important;
border-radius: 4px !important;
padding: 0 !important;
}
#p-namespaces li, #p-cactions li {
display: inline-block;
margin: 0 !important;
}
#p-namespaces a, #p-cactions a {
display: inline-block;
padding: 5px 10px;
color: #229C88 !important;
text-decoration: none!important;
}
#p-namespaces .selected a,
#p-cactions .selected a {
background: #E0D6F9 !important;
color: #4B0082 !important;
}
/* Float search */
#p-search {
float: right !important;
margin: 0.4em 0.8em !important;
}
#p-search .body {
background: rgba(255,255,255,0.9) !important;
border-radius: 4px !important;
padding: 4px !important;
}
#p-search input[type="search"] {
border: 1px solid #ccc;
border-radius: 4px 0 0 4px;
padding: 4px 8px;
}
#p-search button {
border: 1px solid #ccc;
border-left: none;
background: #4B0082;
color: #fff;
border-radius: 0 4px 4px 0;
padding: 4px 8px;
cursor: pointer;
}
/* Float personal tools */
#p-personal {
float: right !important;
margin: 0.4em 0.8em !important;
}
#p-personal .body {
background: rgba(255,255,255,0.9) !important;
border-radius: 4px !important;
padding: 5px 8px !important;
}
#p-personal li {
display: inline-block;
margin-left: 0.8em!important;
}
#p-personal a {
color: #4B0082 !important;
text-decoration: none!important;
}
#p-personal a:hover {
color: #E67E22 !important;
}
/* Force header to wrap floats */
#mw-head:after {
content: '';
display: table;
clear: both;
}
/*─────────────────────────────────────────────────────────
3) Sidebar & Content
─────────────────────────────────────────────────────────*/
/* Sidebar */
#mw-panel {
float: left;
width: 260px;
margin: 1.5em 1em 1.5em 1.5em;
background: rgba(255,255,255,0.95);
padding: 1em;
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0,0,0,0.2);
z-index: 10;
}
/* Main content offset to clear sidebar */
#content {
margin: 1.5em 1.5em 2em calc(260px + 1.5em);
background: rgba(255,255,255,0.95);
padding: 2em;
border-radius: 8px;
box-shadow: 0 3px 12px rgba(0,0,0,0.1);
clear: right;
position: relative; z-index: 5;
}
/*─────────────────────────────────────────────────────────
4) Footer
─────────────────────────────────────────────────────────*/
#footer {
clear: both;
background: #4B0082;
color: #eee;
padding: 1em 1.5em;
text-align: center;
border-top: 2px solid #D645B1;
border-radius: 0 0 8px 8px;
position: relative; z-index: 100;
}
#footer a {
color: #ddd !important;
margin: 0 0.5em;
font-size: 0.9em;
}
#footer a:hover {
color: #fff !important;
text-decoration: underline;
}
/*─────────────────────────────────────────────────────────
5) Responsive
─────────────────────────────────────────────────────────*/
@media (max-width: 900px) {
/* Stack everything */
#p-namespaces, #p-cactions, #p-search, #p-personal {
float: none!important;
margin: 0.5em !important;
text-align: center;
}
#mw-panel, #content {
float: none!important;
width: auto!important;
margin: 1em!important;
}
#content {
clear: none;
}
}