MediaWiki:Common.css
From The World of Haelora
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.
/* ==========================================
THE WORLD OF HAELORA
Global Wiki Stylesheet
MediaWiki Timeless Skin
========================================== */
/* ==========================================
1. MAIN PAGE AND CONTENT BACKGROUNDS
========================================== */
body {
background-color: #F4EFE4;
color: #292724;
}
#mw-content-container {
background-color: #F4EFE4;
}
.mw-body {
background-color: #FFFDF8;
color: #292724;
}
/* ==========================================
2. TYPOGRAPHY AND HEADINGS
========================================== */
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4 {
font-family: Georgia, "Times New Roman", serif;
color: #343743;
}
.mw-body h1 {
font-size: 2.1em;
border-bottom: 2px solid #B49A67;
padding-bottom: 0.3em;
}
.mw-body h2 {
border-bottom: 1px solid #D5CBB9;
padding-bottom: 0.2em;
}
/* ==========================================
3. LINKS
========================================== */
.mw-body a {
color: #405A83;
}
.mw-body a:visited {
color: #68577B;
}
.mw-body a:hover {
color: #8A6938;
text-decoration: underline;
}
/* ==========================================
4. BORDERS AND TABLES
========================================== */
.mw-body,
.mw-parser-output table {
border-color: #D5CBB9;
}
.mw-parser-output table.wikitable {
background-color: #FFFDF8;
border: 1px solid #D5CBB9;
}
.mw-parser-output table.wikitable th {
background-color: #EAE1D1;
color: #343743;
}
/* ==========================================
5. BLOCKQUOTES
========================================== */
.mw-parser-output blockquote {
border-left: 3px solid #B49A67;
background-color: #F8F3E9;
padding: 0.8em 1.2em;
font-style: italic;
}
/* ==========================================
6. IMAGES AND THUMBNAILS
========================================== */
.mw-parser-output .thumbinner {
background-color: #F8F3E9;
border: 1px solid #D5CBB9;
padding: 5px;
}
/* ==========================================
7. HORIZONTAL RULES
========================================== */
.mw-parser-output hr {
border: 0;
border-top: 1px solid #B49A67;
}
/* ==========================================
8. UNIFIED PAGE NAVIGATION
Timeless Skin
========================================== */
/*
The flow-root declaration contains Timeless's
floated navigation groups, allowing the border
to surround the entire navigation bar.
*/
#mw-page-header-links {
display: flow-root !important;
background-color: #E6D9C3 !important;
border: 1px solid #B49A67 !important;
border-radius: 3px;
box-sizing: border-box;
padding: 6px 10px !important;
margin: 12px 0;
box-shadow: none !important;
}
/* Remove separate backgrounds and borders */
#mw-page-header-links .mw-portlet,
#mw-page-header-links .mw-portlet-body,
#mw-page-header-links ul {
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
/* Navigation links */
#mw-page-header-links a {
color: #514056 !important;
background: transparent !important;
text-decoration: none;
}
/* Active navigation tab */
#mw-page-header-links .selected a {
background-color: #D6C3A5 !important;
border-bottom: 2px solid #514056 !important;
}
/* Hover effect */
#mw-page-header-links a:hover {
background-color: #D6C3A5 !important;
color: #352A39 !important;
}
/* ==========================================
HAELORA - REMOVE NAVIGATION WHITE STRIP
========================================== */
/* Match the surrounding navigation area to parchment */
#mw-page-header-links {
margin-bottom: 0 !important;
}
/* Remove the white background beneath the tabs */
#bodyContentOuter,
#mw-content,
#bodyContent {
background-color: transparent !important;
}
/* ==========================================
HAELORA - PAGE HEADER PARCHMENT FIX
========================================== */
/* Remove remaining white behind the navigation */
#mw-page-header-links,
#mw-page-header-links::before,
#mw-page-header-links::after,
#bodyContentOuter,
#mw-content {
background-color: transparent !important;
}
/* Restore parchment inside the navigation bar */
#mw-page-header-links {
background-color: #E6D9C3 !important;
}
}
/* ==========================================
HAELORA - PAGE TITLE SPACING FIX
========================================== */
#mw-content #firstHeading,
#mw-content .mw-first-heading,
h1#firstHeading {
margin-bottom: 0 !important;
}
/* ==========================================
HAELORA RESPONSIVE CATEGORY BANNERS
========================================== */
.haelora-banner {
display: block;
width: 100%;
max-width: 100%;
margin: 0 0 12px 0;
padding: 0;
overflow: hidden;
line-height: 0;
}
/* MediaWiki's image wrapper */
.haelora-banner .mw-halign-none,
.haelora-banner .mw-file-description,
.haelora-banner .mw-default-size {
display: block;
width: 100%;
max-width: 100%;
}
/* Responsive image with transparent fade */
.haelora-banner img {
display: block;
width: 100% !important;
max-width: 100% !important;
height: auto !important;
-webkit-mask-image: linear-gradient(
to bottom,
#000 0%,
#000 60%,
transparent 100%
);
mask-image: linear-gradient(
to bottom,
#000 0%,
#000 60%,
transparent 100%
);
}
/* Subcategory banners */
.haelora-banner-subcategory img {
-webkit-mask-image: linear-gradient(
to bottom,
#000 0%,
#000 65%,
transparent 100%
);
mask-image: linear-gradient(
to bottom,
#000 0%,
#000 65%,
transparent 100%
);
}
/* Mobile */
@media screen and (max-width: 600px) {
.haelora-banner {
margin-bottom: 8px;
}
}
/* Reduce spacing beneath Haelora category banners */
.haelora-banner {
margin-bottom: -20px;
}
.haelora-banner + p {
margin-top: 0;
}
