MediaWiki: Common.css: Difference between revisions
From Chronicles of Eldoria
Chrisliz123 (talk | contribs) (Created page with "→========================================================= 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: #223...") |
Chrisliz123 (talk | contribs) No edit summary |
||
| Line 191: | Line 191: | ||
.mw-parser-output .wikitable th[style*="#6b2f2f"] { | .mw-parser-output .wikitable th[style*="#6b2f2f"] { | ||
color: #fff !important; | color: #fff !important; | ||
} | |||
/* Make the main content area a little wider */ | |||
.mw-body, | |||
#content, | |||
.vector-body { | |||
max-width: 1500px; | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | |||
/* Optional homepage panel polish */ | |||
.mw-parser-output .wikitable td div[style*="font-size:115%"] a { | |||
font-weight: 700; | |||
} | |||
.mw-parser-output .wikitable td:hover { | |||
background-color: #fafbfe; | |||
transition: background-color 0.15s ease; | |||
} | } | ||
Revision as of 23:36, 21 April 2026
/* =========================================================
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;
}
/* Make the main content area a little wider */
.mw-body,
#content,
.vector-body {
max-width: 1500px;
margin-left: auto;
margin-right: auto;
}
/* Optional homepage panel polish */
.mw-parser-output .wikitable td div[style*="font-size:115%"] a {
font-weight: 700;
}
.mw-parser-output .wikitable td:hover {
background-color: #fafbfe;
transition: background-color 0.15s ease;
}