MediaWiki:Common.css
From Chronicles of Eldoria
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)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* =========================================================
Chronicles of Eldoria - Wiki Theme
For MediaWiki:Common.css
========================================================= */
/* Base page styling */
body {
background-color: #f6f7fb;
color: #222;
line-height: 1.6;
}
/* Main content area */
.mw-body,
#content,
#bodyContent {
background: #ffffff;
border-radius: 10px;
}
/* Page title */
.firstHeading,
.mw-first-heading {
color: #22324a;
font-weight: 700;
letter-spacing: 0.2px;
margin-bottom: 0.5em;
}
/* Headings */
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4 {
color: #22324a;
border-bottom: 1px solid #d8deea;
padding-bottom: 0.2em;
}
.mw-parser-output h2 {
margin-top: 1.4em;
}
/* Links */
a {
color: #355d9a;
text-decoration: none;
}
a:visited {
color: #5b4f8a;
}
a:hover {
color: #22324a;
text-decoration: underline;
}
/* Wiki tables */
.wikitable {
border: 1px solid #d7ddea;
border-radius: 8px;
overflow: hidden;
background: #fff;
box-shadow: 0 2px 8px rgba(25, 35, 55, 0.05);
margin: 0 0 1em 0;
}
.wikitable th,
.wikitable td {
border: 1px solid #d7ddea;
padding: 10px 12px;
vertical-align: top;
}
.wikitable th {
font-weight: 700;
}
/* So custom colored header rows look cleaner */
.wikitable th[style*="background"] {
border-color: transparent;
}
/* Lists inside tables */
.wikitable ul,
.wikitable ol {
margin: 0.4em 0 0.4em 1.4em;
padding: 0;
}
.wikitable li {
margin-bottom: 0.25em;
}
/* Images */
img {
max-width: 100%;
height: auto;
}
/* Code / inline code */
code,
tt,
pre {
font-family: Consolas, Monaco, "Courier New", monospace;
}
code,
tt {
background: #f3f5f9;
border: 1px solid #d9e0ec;
border-radius: 4px;
padding: 1px 5px;
}
/* Pre blocks */
pre {
background: #f7f8fb;
border: 1px solid #d9e0ec;
border-radius: 8px;
padding: 12px;
overflow: auto;
}
/* TOC */
#toc,
.toc {
background: #f8f9fc;
border: 1px solid #d8deea;
border-radius: 8px;
padding: 10px 14px;
}
#toc .toctitle,
.toc .toctitle {
color: #22324a;
}
/* Category links */
.catlinks {
margin-top: 1.5em;
border: 1px solid #d8deea;
background: #f8f9fc;
border-radius: 8px;
padding: 8px 12px;
}
/* Portal-style hover polish for homepage tables */
.wikitable:hover {
box-shadow: 0 4px 14px rgba(25, 35, 55, 0.08);
transition: box-shadow 0.18s ease;
}
/* Better spacing for homepage intro blocks */
.mw-parser-output > div[style*="text-align:center"] {
max-width: 100%;
}
/* Optional: make the content area feel less cramped */
.vector-body,
.mw-body-content {
font-size: 0.98rem;
}
/* Optional styling for the right-side panel tables on your homepage */
.mw-parser-output .wikitable th[style*="#1f2a44"] {
color: #fff !important;
}
.mw-parser-output .wikitable th[style*="#24344d"] {
color: #fff !important;
}
.mw-parser-output .wikitable th[style*="#5a3d5c"] {
color: #fff !important;
}
.mw-parser-output .wikitable th[style*="#2f4f4f"] {
color: #fff !important;
}
.mw-parser-output .wikitable th[style*="#8b5a2b"] {
color: #fff !important;
}
.mw-parser-output .wikitable th[style*="#3b5f7a"] {
color: #fff !important;
}
.mw-parser-output .wikitable th[style*="#6b2f2f"] {
color: #fff !important;
}