Jump to content

MediaWiki:Common.css: Difference between revisions

From Crucible Codex
No edit summary
No edit summary
Line 579: Line 579:
         padding: 16px 18px;
         padding: 16px 18px;
     }
     }
}
/* =========================
  CAREERS IMAGE FIX (FORCED)
  ========================= */
/* Force right alignment no matter what MediaWiki does */
.nightcats-theme img {
  float: right;
  clear: right;
  margin: 28px 0 12px 16px;
  display: block;
}
/* Gold border */
.nightcats-theme img {
  border: 1px solid #d7ad47;
  background: #000;
  box-sizing: border-box;
}
/* Remove MediaWiki thumb junk */
.nightcats-theme .thumb,
.nightcats-theme .thumbinner,
.nightcats-theme .image {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
/* Keep headings from being shoved sideways */
.nightcats-theme h3 {
  clear: both;
}
/* Allow image to sit beside the text after heading */
.nightcats-theme h3 + img,
.nightcats-theme h3 + .mw-file-element {
  clear: none;
}
/* Hide all section edit controls */
.mw-editsection,
.mw-editsection-like,
.mw-editsection-bracket,
.mw-editsection-divider,
.vector-body .mw-editsection,
.vector-body .mw-editsection-like,
.mw-parser-output .mw-editsection,
.mw-parser-output .mw-editsection-like {
  display: none !important;
}
}

Revision as of 18:53, 25 March 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 MASTER THEME
   Full-site replacement stylesheet
   ========================================================= */

/* =========================
   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
   ========================= */

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

h1,
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;
}

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

/* Header text / links */
.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
   ========================= */

.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;
}

/* Autofill fix */
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 / THUMBS
   ========================= */

.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;
}

/* Generic thumb treatment */
.thumbinner {
    background: #1d1612;
    border: 1px solid #5c4630;
    color: #e7dcc5;
    box-sizing: border-box;
}

.thumbimage {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================
   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 {
    margin-top: 0;
    max-width: 100%;
    overflow: hidden;
}

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

/* =========================
   NIGHTCATS SECTION THEME
   Use on pages wrapped in <div class="nightcats-theme">
   ========================= */

.nightcats-theme {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(20, 12, 6, 0.9);
    padding: 20px 30px;
    border: 1px solid #5a3b1f;
    border-radius: 6px;
    font-family: 'Crimson Pro', Georgia, serif;
    color: #e6d7b0;
    line-height: 1.6;
}

.nightcats-theme p,
.nightcats-theme li,
.nightcats-theme td,
.nightcats-theme th,
.nightcats-theme dt,
.nightcats-theme dd {
    color: #e6d7b0;
}

.nightcats-theme h1,
.nightcats-theme h2,
.nightcats-theme h3,
.nightcats-theme h4,
.nightcats-theme h5,
.nightcats-theme h6,
.nightcats-theme .mw-headline {
    font-family: 'Cinzel', serif;
    color: #d7ad47;
    letter-spacing: 0.05em;
}

.nightcats-theme h1,
.nightcats-theme h2 {
    border-bottom: 1px solid #5a3b1f;
    padding-bottom: 2px;
}

.nightcats-theme a,
.nightcats-theme a:visited {
    color: #e6c76a;
    text-decoration: none;
}

.nightcats-theme a:hover,
.nightcats-theme a:focus {
    color: #ffd97d;
    text-decoration: underline;
}

.nightcats-theme table.wikitable,
.nightcats-theme .infobox,
.nightcats-theme table.infobox,
.nightcats-theme .portable-infobox {
    background: #1f160f;
    color: #e6d7b0;
    border: 1px solid #5a3b1f;
}

.nightcats-theme table.wikitable th,
.nightcats-theme .infobox th,
.nightcats-theme table.infobox th,
.nightcats-theme .portable-infobox .pi-title {
    background: #5a2a12;
    color: #f0d38d;
    border: 1px solid #5a3b1f;
}

.nightcats-theme table.wikitable td,
.nightcats-theme table.infobox td,
.nightcats-theme .portable-infobox .pi-data {
    background: #1f160f;
    color: #e6d7b0;
    border: 1px solid #5a3b1f;
}

.nightcats-theme blockquote {
    background: #3a2414;
    border-left: 4px solid #b8842f;
    color: #e6d7b0;
    padding: 0.75em 1em;
    margin: 1em 0 1em 1.5em;
    font-style: italic;
}

.nightcats-theme hr,
.nightcats-theme .mw-parser-output hr {
    border: 0;
    border-top: 1px solid #5a3b1f;
    margin: 14px 0;
    clear: both;
}

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

.nightcats-theme #toc .toctitle,
.nightcats-theme .toc .toctitle,
.nightcats-theme #toc .toctitle h2,
.nightcats-theme .toc .toctitle h2 {
    color: #d7ad47;
}

.nightcats-theme #toc a,
.nightcats-theme .toc a {
    color: #e6c76a;
}

.nightcats-theme pre,
.nightcats-theme code {
    background: #120d09;
    color: #e6d7b0;
    border: 1px solid #5a3b1f;
}

/* Header image safety */
.nightcats-header {
    text-align: center;
    margin: 0 0 20px 0;
    max-width: 100%;
    overflow: hidden;
}

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

/* Large pulp frame for bigger art */
.nightcats-frame {
    display: inline-block;
    padding: 8px;
    background: #f2e6c9;
    border-top: 1px solid #d8c39a;
    border-left: 1px solid #d8c39a;
    border-right: 1px solid #3a2a1a;
    border-bottom: 1px solid #3a2a1a;
    box-shadow:
        0 0 0 1px #8a7a52 inset,
        0 4px 10px rgba(0,0,0,0.45);
    margin: 8px 0 16px 16px;
    max-width: 100%;
    box-sizing: border-box;
}

.nightcats-frame img {
    display: block;
    max-width: 100%;
    height: auto;
}

.nightcats-frame.right {
    float: right;
    clear: right;
}

/* Mild thumb treatment inside Nightcats pages */
.nightcats-theme .thumbinner {
    background: #1a120c;
    border: 1px solid #5a3b1f;
    padding: 4px;
    box-sizing: border-box;
}

.nightcats-theme .thumbimage {
    display: block;
    max-width: 100%;
    height: auto;
}

.nightcats-theme .thumbcaption,
.nightcats-theme .gallerytext {
    color: #d7c39a;
    font-size: 0.85em;
    line-height: 1.3;
    margin-top: 4px;
}

/* =========================
   NIGHTCATS CAREERS IMAGE FIX
   Use standard MediaWiki markup:
   [[File:Assassin.jpg|150x150px|right|link=]]
   ========================= */

.nightcats-theme .floatright,
.nightcats-theme .tright {
    clear: right;
    margin: 28px 0 12px 16px;
}

.nightcats-theme .floatright .thumbinner,
.nightcats-theme .tright .thumbinner {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.nightcats-theme .floatright img,
.nightcats-theme .tright img,
.nightcats-theme .floatright .mw-file-element,
.nightcats-theme .tright .mw-file-element {
    display: block;
    border: 1px solid #d7ad47;
    background: #000;
    box-sizing: border-box;
    box-shadow: none !important;
}

.nightcats-theme .floatright .thumb,
.nightcats-theme .tright .thumb,
.nightcats-theme .floatright .image,
.nightcats-theme .tright .image {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

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

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

    .nightcats-frame.right img,
    .nightcats-theme .floatright img,
    .nightcats-theme .tright img,
    .nightcats-theme .floatright .mw-file-element,
    .nightcats-theme .tright .mw-file-element {
        margin: 0 auto;
    }

    .nightcats-theme {
        padding: 16px 18px;
    }
}

/* =========================
   CAREERS IMAGE FIX (FORCED)
   ========================= */

/* Force right alignment no matter what MediaWiki does */
.nightcats-theme img {
  float: right;
  clear: right;
  margin: 28px 0 12px 16px;
  display: block;
}

/* Gold border */
.nightcats-theme img {
  border: 1px solid #d7ad47;
  background: #000;
  box-sizing: border-box;
}

/* Remove MediaWiki thumb junk */
.nightcats-theme .thumb,
.nightcats-theme .thumbinner,
.nightcats-theme .image {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Keep headings from being shoved sideways */
.nightcats-theme h3 {
  clear: both;
}

/* Allow image to sit beside the text after heading */
.nightcats-theme h3 + img,
.nightcats-theme h3 + .mw-file-element {
  clear: none;
}

/* Hide all section edit controls */
.mw-editsection,
.mw-editsection-like,
.mw-editsection-bracket,
.mw-editsection-divider,
.vector-body .mw-editsection,
.vector-body .mw-editsection-like,
.mw-parser-output .mw-editsection,
.mw-parser-output .mw-editsection-like {
  display: none !important;
}