Jump to content

MediaWiki:Common.css: Difference between revisions

From Crucible Codex
No edit summary
No edit summary
Line 715: Line 715:
     color: #ffd97d !important;
     color: #ffd97d !important;
}
}
/* Nightcats TOC Icon */
.codex-page--nightcats #toc,
.codex-page--nightcats .toc {
    padding-top: 18px !important;
}
.codex-page--nightcats #toc .toctitle,
.codex-page--nightcats .toc .toctitle,
.codex-page--nightcats #toc .toctitle h2,
.codex-page--nightcats .toc .toctitle h2 {
    text-align: center !important;
}
.codex-page--nightcats #toc::before,
.codex-page--nightcats .toc::before {
    content: "";
    display: block;
    width: 90px;
    height: 90px;
    margin: 0 auto 12px auto;
    background-image: url("/images/NightcatsTOCIcon.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* =========================================================
/* =========================================================

Revision as of 11:53, 2 April 2026

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Libre+Baskerville:wght@400;700&family=Crimson+Pro:wght@400;600;700&display=swap');

/* =========================================================
   CRUCIBLE CODEX - FULL SITE CSS
   Consolidated stylesheet with shared Codex page system

   Includes:
   - Global Codex styling
   - Shared Codex banner/page/TOC/nav system
   - Nightcats skin
   - Five Fists / Burning Temple skin
   - Sigil Lands skin
   ========================================================= */


/* =========================
   GLOBAL PAGE / BODY
   ========================= */

html,
body,
.mw-page-container,
.vector-body {
    background: #15110e;
    color: #e7dcc5;
    font-family: 'Libre Baskerville', Georgia, "Times New Roman", serif;
}

body {
    margin: 0;
    padding: 0;
}

/* Main content area */
.mw-body,
.vector-body {
    background: #211914;
    color: #e7dcc5;
    border: 1px solid #5c4630;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}


/* =========================
   GLOBAL HEADINGS / TEXT
   ========================= */

#firstHeading,
.mw-first-heading,
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6,
h1, h2, h3, h4, h5, h6 {
    color: #c9a15a !important;
    font-family: 'Cinzel', Georgia, serif !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    visibility: visible !important;
    opacity: 1 !important;
}

h1,
h2,
.mw-parser-output h1,
.mw-parser-output h2 {
    border-bottom: 1px solid #5c4630;
    padding-bottom: 0.2em;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.6em;
}

h3 {
    font-size: 1.25em;
}

h4 {
    font-size: 1.1em;
}

p, li, dt, dd, td, th {
    color: #e7dcc5;
}

small,
.mw-footer,
#siteSub,
.catlinks {
    color: #bfae8e;
}


/* =========================
   LINKS
   ========================= */

a {
    color: #d8b06a;
    text-decoration: none;
}

a:visited {
    color: #a88552;
}

a:hover,
a:focus {
    color: #e0bf7a;
    text-decoration: underline;
}


/* =========================
   SIDEBAR / VECTOR NAV
   ========================= */

.vector-pinned-container,
.vector-column-start,
#mw-panel,
.vector-menu,
.vector-user-links {
    background: #1a1410;
    color: #e7dcc5;
}

.vector-menu-heading,
#mw-panel h3 {
    color: #c9a15a;
}


/* =========================
   TOP HEADER / TOOLBAR / TABS
   ========================= */

.vector-header-container,
.vector-header,
.mw-header,
.vector-page-toolbar,
.vector-sticky-header,
.vector-page-titlebar {
    background: #15110e !important;
    background-color: #15110e !important;
    border-bottom: 1px solid #5c4630 !important;
}

.vector-header a,
.vector-header span,
.mw-header a,
.mw-header span,
.vector-user-links,
.vector-user-links a,
.vector-page-toolbar button,
.vector-page-toolbar a {
    color: #e7dcc5 !important;
}


/* =========================
   SEARCH / FORM ELEMENTS
   ========================= */

.vector-search-box,
.vector-search-box-vue,
.vector-typeahead-search-container {
    background: transparent !important;
}

input,
textarea,
select,
.vector-search-box input,
#searchInput {
    background: #2a2018 !important;
    color: #e7dcc5 !important;
    border: 1px solid #5c4630 !important;
    font-family: 'Libre Baskerville', Georgia, serif;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #c9a15a !important;
    outline: none;
}

.vector-search-box input::placeholder,
#searchInput::placeholder {
    color: #bfae8e !important;
}

input:-webkit-autofill,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #2a2018 inset !important;
    -webkit-text-fill-color: #e7dcc5 !important;
}


/* =========================
   TABLES / WIKITABLES
   ========================= */

table,
.wikitable {
    background: #211914;
    color: #e7dcc5;
    border: 1px solid #5c4630;
    border-collapse: collapse;
}

.wikitable th {
    background: #2a2018;
    color: #c9a15a;
    border: 1px solid #5c4630;
}

.wikitable td {
    border: 1px solid #5c4630;
}


/* =========================
   INFOBOXES
   ========================= */

.infobox,
table.infobox,
.portable-infobox {
    background: #1d1612;
    color: #e7dcc5;
    border: 1px solid #5c4630;
}

.infobox th,
table.infobox th,
.portable-infobox .pi-title {
    background: #2a2018;
    color: #c9a15a;
}

.infobox td,
table.infobox td,
.portable-infobox .pi-data {
    color: #e7dcc5;
}


/* =========================
   TOC / CATEGORY
   ========================= */

.catlinks,
#toc,
.toc {
    background: #1d1612;
    border: 1px solid #5c4630;
    color: #e7dcc5;
}

#toc .toctitle,
.toc .toctitle,
#toc .toctitle h2,
.toc .toctitle h2 {
    color: #c9a15a;
    border-bottom: 0;
}

#toc a,
.toc a {
    color: #d8b06a;
}


/* =========================
   IMAGE HANDLING - GLOBAL
   ========================= */

.thumb,
.image,
.thumbinner,
.thumbimage,
.gallerybox .thumb,
.gallerybox .thumbinner {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.thumbinner,
.gallerybox .thumbinner {
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

img,
.mw-file-element {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border: 2px solid #d7ad47 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.codex-header img,
.nightcats-header img,
.ffbt-header img,
.codex-banner img {
    max-width: 100% !important;
    height: auto;
    display: block;
    margin: 0 auto;
}

.floatright,
.tright,
.thumb.tright,
.thumb.floatright {
    float: right !important;
    clear: right !important;
    display: block !important;
    margin: 28px 0 12px 16px !important;
}

.floatleft,
.tleft,
.thumb.tleft,
.thumb.floatleft {
    float: left !important;
    clear: left !important;
    display: block !important;
    margin: 12px 16px 12px 0 !important;
}

.floatright img,
.tright img,
.thumb.tright img,
.thumb.floatright img,
.floatleft img,
.tleft img,
.thumb.tleft img,
.thumb.floatleft img,
.floatright .mw-file-element,
.tright .mw-file-element,
.thumb.tright .mw-file-element,
.thumb.floatright .mw-file-element,
.floatleft .mw-file-element,
.tleft .mw-file-element,
.thumb.tleft .mw-file-element,
.thumb.floatleft .mw-file-element {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================
   CODE / PRE
   ========================= */

pre,
code {
    background: #181311;
    color: #e7dcc5;
    border: 1px solid #4b3928;
}

pre {
    padding: 10px;
    overflow: auto;
}


/* =========================
   HR / PAGE POLISH
   ========================= */

hr {
    border: 0;
    border-top: 1px solid #5c4630;
    clear: both;
}


/* =========================
   MAIN PAGE
   ========================= */

.page-Main_Page #firstHeading {
    display: none;
}

.page-Main_Page .mw-body {
    margin-top: 0;
}

.codex-header,
.nightcats-header,
.ffbt-header,
.codex-banner {
    margin-top: 0;
    max-width: 100%;
    overflow: hidden;
}


/* =========================
   HIDE SECTION EDIT LINKS
   ========================= */

.mw-editsection,
.mw-editsection-like,
.mw-editsection-bracket,
.mw-editsection-divider,
.mw-parser-output .mw-editsection,
.mw-parser-output .mw-editsection-like,
.vector-body .mw-editsection,
.vector-body .mw-editsection-like,
h1 .mw-editsection,
h2 .mw-editsection,
h3 .mw-editsection,
h4 .mw-editsection,
h5 .mw-editsection,
h6 .mw-editsection,
h1 .mw-editsection-like,
h2 .mw-editsection-like,
h3 .mw-editsection-like,
h4 .mw-editsection-like,
h5 .mw-editsection-like,
h6 .mw-editsection-like {
    display: none !important;
}

.mw-editsection::before,
.mw-editsection::after,
.mw-editsection-like::before,
.mw-editsection-like::after {
    display: none !important;
    content: none !important;
}


/* =========================================================
   CODEX SHARED PAGE / HEADER / TOC / NAV SYSTEM
   Standard structure for all subsites
   ========================================================= */

/* ---------- Shared Banner ---------- */

.codex-banner {
    text-align: center;
}

.codex-banner img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* ---------- Shared Page Wrapper ---------- */

.codex-page {
    max-width: 960px;
    margin: 30px auto !important;
    padding: 32px 40px !important;
    line-height: 1.7 !important;
    font-size: 18px !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    box-shadow:
        0 0 0 3px rgba(0,0,0,0.35),
        0 10px 26px rgba(0,0,0,0.45) !important;
}

.codex-page p,
.codex-page li,
.codex-page td,
.codex-page th,
.codex-page dt,
.codex-page dd {
    font-size: 1em !important;
}

.codex-page h1,
.codex-page h2,
.codex-page h3,
.codex-page h4,
.codex-page h5,
.codex-page h6,
.codex-page .mw-headline {
    line-height: 1.25 !important;
    letter-spacing: 0.04em !important;
}

.codex-page img,
.codex-page .mw-file-element {
    max-width: 100% !important;
    height: auto !important;
}

.codex-page hr,
.codex-page .mw-parser-output hr {
    clear: both !important;
    margin: 16px 0 !important;
}

/* ---------- Shared TOC ---------- */

.codex-page #toc,
.codex-page .toc {
    padding-top: 16px !important;
}

.codex-page #toc .toctitle,
.codex-page .toc .toctitle,
.codex-page #toc .toctitle h2,
.codex-page .toc .toctitle h2 {
    text-align: center !important;
}

.codex-page #toc::before,
.codex-page .toc::before {
    content: "";
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 10px auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ---------- Shared Nav ---------- */

.codex-navbox {
    margin: 30px auto 0 auto !important;
    padding: 12px 0 0 0 !important;
    border-top: 2px solid #8b6f3d;
    text-align: center !important;
    font-size: 0.95em !important;
    line-height: 1.5 !important;
    max-width: 100%;
    clear: both !important;
}

.codex-navbox strong {
    display: block !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    letter-spacing: 0.04em !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

.codex-navbox a,
.codex-navbox a:visited {
    text-decoration: none !important;
    margin: 0 6px !important;
    display: inline !important;
}

.codex-navbox a:hover,
.codex-navbox a:focus {
    text-decoration: underline !important;
}

.codex-navbox p {
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   NIGHTCATS SHARED SKIN
   ========================================================= */

.codex-page--nightcats {
    background: #1a120c !important;
    border: 2px solid #8b6730 !important;
    color: #e6d7b0 !important;
    font-family: 'Crimson Pro', Georgia, serif !important;
}

.codex-page--nightcats p,
.codex-page--nightcats li,
.codex-page--nightcats td,
.codex-page--nightcats th,
.codex-page--nightcats dt,
.codex-page--nightcats dd {
    color: #e6d7b0 !important;
}

.codex-page--nightcats h1,
.codex-page--nightcats h2,
.codex-page--nightcats h3,
.codex-page--nightcats h4,
.codex-page--nightcats h5,
.codex-page--nightcats h6,
.codex-page--nightcats .mw-headline {
    font-family: 'Cinzel', Georgia, serif !important;
    color: #d7ad47 !important;
}

.codex-page--nightcats h1 {
    font-size: 1.5em !important;
}

.codex-page--nightcats h2 {
    font-size: 1.25em !important;
}

.codex-page--nightcats h3 {
    font-size: 1.1em !important;
}

.codex-page--nightcats a,
.codex-page--nightcats a:visited {
    color: #e6c76a !important;
    text-decoration: none !important;
}

.codex-page--nightcats a:hover,
.codex-page--nightcats a:focus {
    color: #ffd97d !important;
    text-decoration: underline !important;
}

.codex-page--nightcats table.wikitable,
.codex-page--nightcats .wikitable {
    background: #1f160f !important;
    border: 1px solid #5a3b1f !important;
}

.codex-page--nightcats table.wikitable th,
.codex-page--nightcats .wikitable th {
    background: #5a2a12 !important;
    color: #f0d38d !important;
    border: 1px solid #5a3b1f !important;
}

.codex-page--nightcats table.wikitable td,
.codex-page--nightcats .wikitable td {
    background: #1f160f !important;
    color: #e6d7b0 !important;
    border: 1px solid #5a3b1f !important;
}

.codex-page--nightcats blockquote {
    background: #3a2414 !important;
    border-left: 4px solid #b8842f !important;
    color: #e6d7b0 !important;
    padding: 0.8em 1em !important;
    margin: 1em 0 1em 1.2em !important;
    font-style: italic !important;
}

.codex-page--nightcats hr,
.codex-page--nightcats .mw-parser-output hr {
    border: 0 !important;
    border-top: 1px solid #6d4c22 !important;
}

.codex-page--nightcats #toc,
.codex-page--nightcats .toc,
.codex-page--nightcats .catlinks {
    background: #1f160f !important;
    border: 1px solid #5a3b1f !important;
    color: #e6d7b0 !important;
}

.codex-page--nightcats #toc .toctitle,
.codex-page--nightcats .toc .toctitle,
.codex-page--nightcats #toc .toctitle h2,
.codex-page--nightcats .toc .toctitle h2 {
    color: #d7ad47 !important;
    border-bottom: 0 !important;
}

.codex-page--nightcats #toc::before,
.codex-page--nightcats .toc::before {
    background-image: url("/images/NightcatsTOCIcon.png");
}

.codex-navbox--nightcats {
    border-top-color: #8b6f3d !important;
    color: #e6d7b0 !important;
    font-family: 'Crimson Pro', Georgia, serif !important;
}

.codex-navbox--nightcats strong {
    font-family: 'Cinzel', Georgia, serif !important;
    color: #d7ad47 !important;
}

.codex-navbox--nightcats a,
.codex-navbox--nightcats a:visited {
    color: #e6c76a !important;
}

.codex-navbox--nightcats a:hover,
.codex-navbox--nightcats a:focus {
    color: #ffd97d !important;
}

/* Nightcats TOC Icon */

.codex-page--nightcats #toc,
.codex-page--nightcats .toc {
    padding-top: 18px !important;
}

.codex-page--nightcats #toc .toctitle,
.codex-page--nightcats .toc .toctitle,
.codex-page--nightcats #toc .toctitle h2,
.codex-page--nightcats .toc .toctitle h2 {
    text-align: center !important;
}

.codex-page--nightcats #toc::before,
.codex-page--nightcats .toc::before {
    content: "";
    display: block;
    width: 90px;
    height: 90px;
    margin: 0 auto 12px auto;
    background-image: url("/images/NightcatsTOCIcon.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* =========================================================
   FIVE FISTS / BURNING TEMPLE SHARED SKIN
   ========================================================= */

.codex-page--ffbt {
    background: #fffaf0 !important;
    border: 2px solid #6e1f16 !important;
    color: #2a1a12 !important;
    font-family: 'Libre Baskerville', Georgia, serif !important;
}

.codex-page--ffbt p,
.codex-page--ffbt li,
.codex-page--ffbt td,
.codex-page--ffbt th,
.codex-page--ffbt dt,
.codex-page--ffbt dd {
    color: #2a1a12 !important;
}

.codex-page--ffbt h1,
.codex-page--ffbt h2,
.codex-page--ffbt h3,
.codex-page--ffbt h4,
.codex-page--ffbt h5,
.codex-page--ffbt h6,
.codex-page--ffbt .mw-headline {
    font-family: 'Cinzel', Georgia, serif !important;
    color: #1a1a1a !important;
}

.codex-page--ffbt a,
.codex-page--ffbt a:visited {
    color: #8f2318 !important;
    text-decoration: none !important;
}

.codex-page--ffbt a:hover,
.codex-page--ffbt a:focus {
    color: #c13a2a !important;
    text-decoration: underline !important;
}

.codex-page--ffbt #toc,
.codex-page--ffbt .toc,
.codex-page--ffbt .catlinks {
    background: #f8efe1 !important;
    border: 1px solid #c9b08c !important;
    color: #2a1a12 !important;
}

.codex-page--ffbt #toc::before,
.codex-page--ffbt .toc::before {
    background-image: url("/images/FFBTTOCIcon.png");
}

.codex-navbox--ffbt {
    border-top-color: #8b6f3d !important;
    color: #2a1a12 !important;
    font-family: 'Libre Baskerville', Georgia, serif !important;
}

.codex-navbox--ffbt strong {
    font-family: 'Cinzel', Georgia, serif !important;
    color: #8f2318 !important;
}

.codex-navbox--ffbt a,
.codex-navbox--ffbt a:visited {
    color: #8f2318 !important;
}

.codex-navbox--ffbt a:hover,
.codex-navbox--ffbt a:focus {
    color: #c13a2a !important;
}

/* =========================================================
   SIGIL LANDS SHARED SKIN
   ========================================================= */

.codex-page--sigil {
    background: linear-gradient(rgba(255,255,255,0.06), rgba(0,0,0,0.03)), #e7d9b7 !important;
    border: 1px solid #4a3626 !important;
    color: #2a1d14 !important;
    font-family: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif !important;
    box-shadow:
        0 0 0 3px rgba(74,54,38,0.18),
        0 10px 30px rgba(0,0,0,0.35) !important;
}

.codex-page--sigil p,
.codex-page--sigil li,
.codex-page--sigil td,
.codex-page--sigil th,
.codex-page--sigil dt,
.codex-page--sigil dd {
    color: #2a1d14 !important;
}

.codex-page--sigil h1,
.codex-page--sigil h2,
.codex-page--sigil h3,
.codex-page--sigil h4,
.codex-page--sigil .mw-headline {
    font-family: Georgia, "Times New Roman", serif !important;
    color: #23160f !important;
}

.codex-page--sigil a,
.codex-page--sigil a:visited {
    color: #6c261f !important;
    text-decoration: none !important;
}

.codex-page--sigil a:hover,
.codex-page--sigil a:focus {
    color: #5d7fa3 !important;
    text-decoration: underline !important;
}

.codex-page--sigil #toc,
.codex-page--sigil .toc,
.codex-page--sigil .catlinks {
    background: rgba(255,250,240,0.72) !important;
    border: 1px solid #4a3626 !important;
    color: #2a1d14 !important;
}

.codex-page--sigil #toc::before,
.codex-page--sigil .toc::before {
    background-image: url("/images/SigilTOCIcon.png");
}

.codex-navbox--sigil {
    border-top-color: #b38a3d !important;
    color: #2a1d14 !important;
    font-family: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif !important;
}

.codex-navbox--sigil strong {
    font-family: Georgia, "Times New Roman", serif !important;
    color: #23160f !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

.codex-navbox--sigil a,
.codex-navbox--sigil a:visited {
    color: #6c261f !important;
}

.codex-navbox--sigil a:hover,
.codex-navbox--sigil a:focus {
    color: #5d7fa3 !important;
}


/* =========================
   RESPONSIVE
   ========================= */

@media screen and (max-width: 720px) {
    .floatright,
    .tright,
    .thumb.tright,
    .thumb.floatright,
    .floatleft,
    .tleft,
    .thumb.tleft,
    .thumb.floatleft,
    .career-portrait,
    .nightcats-frame.right {
        float: none !important;
        clear: both !important;
        display: block !important;
        margin: 12px auto !important;
        text-align: center;
    }

    .floatright img,
    .tright img,
    .thumb.tright img,
    .thumb.floatright img,
    .floatright .mw-file-element,
    .tright .mw-file-element,
    .floatleft img,
    .tleft img,
    .thumb.tleft img,
    .thumb.floatleft img,
    .floatleft .mw-file-element,
    .tleft .mw-file-element,
    .career-portrait img,
    .career-portrait .mw-file-element,
    .nightcats-frame.right img {
        margin: 0 auto !important;
    }

    .codex-page {
        padding: 16px 18px !important;
    }

    .codex-page #toc::before,
    .codex-page .toc::before {
        width: 64px;
        height: 64px;
    }
}