MediaWiki: Common.css: Difference between revisions

From Chronicles of Eldoria
Jump to: navigation, search
No edit summary
No edit summary
 
Line 223: Line 223:
     background-color: #fafbfe;
     background-color: #fafbfe;
     transition: background-color 0.15s ease;
     transition: background-color 0.15s ease;
}
/* Quest Infobox */
.quest-box {
    background: linear-gradient(135deg, #f7f2e8, #ffffff);
    border: 1px solid #d9c89e;
    border-left: 5px solid #b38b3d;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.quest-title {
    font-size: 1.25em;
    font-weight: 700;
    color: #5a3b12;
    margin-bottom: 8px;
}
/* Quest Tracker Table */
.quest-tracker {
    width: 100%;
    border-collapse: collapse;
}
.quest-tracker th {
    background: #27364f;
    color: #ffffff;
    text-align: left;
}
.quest-tracker td {
    background: #fbfbfd;
}
.quest-tracker tr:nth-child(even) td {
    background: #f0f3f8;
}
}

Latest revision as of 23:19, 23 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 containers */
.mw-body,
#content,
#bodyContent {
    background: #ffffff;
    border-radius: 10px;
}

/* Wider layout for Vector / Vector 2022 */
.skin-vector #content,
.skin-vector .mw-body,
.skin-vector .mw-body-content,
.skin-vector .vector-body,
.skin-vector .vector-column-center,
.skin-vector .vector-page-titlebar,
.skin-vector .vector-page-toolbar,
.skin-vector .vector-page-toolbar-container,
.skin-vector .vector-sticky-pinned-container,
.skin-vector .vector-column-end {
    max-width: 1600px !important;
    width: 100% !important;
}

.skin-vector #content,
.skin-vector .mw-body,
.skin-vector .vector-column-center {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 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;
}

/* Cleaner colored header rows */
.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;
}

/* 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;
}

/* General table hover polish */
.wikitable:hover {
    box-shadow: 0 4px 14px rgba(25, 35, 55, 0.08);
    transition: box-shadow 0.18s ease;
}

/* Homepage intro block spacing */
.mw-parser-output > div[style*="text-align:center"] {
    max-width: 100%;
}

/* Slightly cleaner text sizing */
.vector-body,
.mw-body-content {
    font-size: 0.98rem;
}

/* Ensure white text on your custom panel headers */
.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;
}

/* 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;
}

/* Quest Infobox */
.quest-box {
    background: linear-gradient(135deg, #f7f2e8, #ffffff);
    border: 1px solid #d9c89e;
    border-left: 5px solid #b38b3d;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.quest-title {
    font-size: 1.25em;
    font-weight: 700;
    color: #5a3b12;
    margin-bottom: 8px;
}

/* Quest Tracker Table */
.quest-tracker {
    width: 100%;
    border-collapse: collapse;
}

.quest-tracker th {
    background: #27364f;
    color: #ffffff;
    text-align: left;
}

.quest-tracker td {
    background: #fbfbfd;
}

.quest-tracker tr:nth-child(even) td {
    background: #f0f3f8;
}