MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 709: | Line 709: | ||
border-bottom: 1px solid #5c4630; | border-bottom: 1px solid #5c4630; | ||
padding-bottom: 0.2em; | padding-bottom: 0.2em; | ||
} | |||
/* Nightcats readable type sizing */ | |||
.nightcats-theme { | |||
font-size: 1.12rem; | |||
line-height: 1.65; | |||
} | |||
.nightcats-theme p, | |||
.nightcats-theme li, | |||
.nightcats-theme td, | |||
.nightcats-theme th, | |||
.nightcats-theme dd { | |||
font-size: 1em; | |||
line-height: 1.65; | |||
} | |||
.nightcats-theme h1 { | |||
font-size: 2.2em; | |||
line-height: 1.2; | |||
} | |||
.nightcats-theme h2 { | |||
font-size: 1.7em; | |||
line-height: 1.25; | |||
} | |||
.nightcats-theme h3 { | |||
font-size: 1.35em; | |||
line-height: 1.3; | |||
} | |||
.nightcats-theme h4 { | |||
font-size: 1.15em; | |||
line-height: 1.3; | |||
} | } | ||
Revision as of 18:45, 27 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 - FULL SITE CSS
Simplified 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
========================= */
.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
Drop all frames and use a simple 2px gold border
========================= */
/* Remove MediaWiki thumb/frame styling globally */
.thumb,
.image,
.thumbinner,
.thumbimage,
.gallerybox .thumb,
.gallerybox .thumbinner {
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
}
/* Remove padding and margins from inner wrappers */
.thumbinner,
.gallerybox .thumbinner {
padding: 0 !important;
margin: 0 !important;
box-sizing: border-box !important;
}
/* Apply a simple gold border to all images */
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;
}
/* Keep header/banner images responsive and centered */
.codex-header img,
.nightcats-header img {
max-width: 100% !important;
height: auto;
display: block;
margin: 0 auto;
}
/* Right-aligned MediaWiki images */
.floatright,
.tright,
.thumb.tright,
.thumb.floatright,
.nightcats-theme .floatright,
.nightcats-theme .tright,
.nightcats-theme .thumb.tright,
.nightcats-theme .thumb.floatright {
float: right !important;
clear: right !important;
display: block !important;
margin: 28px 0 12px 16px !important;
}
/* Left-aligned MediaWiki images, if used */
.floatleft,
.tleft,
.thumb.tleft,
.thumb.floatleft,
.nightcats-theme .floatleft,
.nightcats-theme .tleft,
.nightcats-theme .thumb.tleft,
.nightcats-theme .thumb.floatleft {
float: left !important;
clear: left !important;
display: block !important;
margin: 12px 16px 12px 0 !important;
}
/* Ensure the actual image inside right/left wrappers behaves */
.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 {
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;
}
/* Remove old custom frame styling from use */
.nightcats-frame {
display: inline-block;
padding: 0 !important;
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
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;
}
/* Legacy custom careers markup support */
.career-entry {
clear: both;
overflow: auto;
margin-bottom: 16px;
padding-bottom: 10px;
border-bottom: 1px solid #5a3b1f;
}
.career-text {
display: block;
}
.career-portrait {
float: right;
width: auto;
height: auto;
margin: 28px 0 12px 16px;
border: 0 !important;
background: transparent !important;
overflow: visible;
box-sizing: border-box;
padding: 0 !important;
}
.career-portrait img,
.career-portrait .mw-file-element {
display: block;
width: auto;
height: auto;
margin: 0;
padding: 0;
box-shadow: none;
background: transparent !important;
}
.career-portrait .thumb,
.career-portrait .thumbinner,
.career-portrait .thumbimage,
.career-portrait .image {
background: transparent !important;
border: 0 !important;
padding: 0 !important;
margin: 0 !important;
box-shadow: none !important;
}
/* =========================
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;
}
/* =========================
RESPONSIVE
========================= */
@media screen and (max-width: 720px) {
.nightcats-frame.right,
.floatright,
.tright,
.thumb.tright,
.thumb.floatright,
.career-portrait {
float: none !important;
clear: both !important;
display: block !important;
margin: 12px auto !important;
text-align: center;
}
.nightcats-frame.right img,
.floatright img,
.tright img,
.thumb.tright img,
.thumb.floatright img,
.floatright .mw-file-element,
.tright .mw-file-element,
.career-portrait img,
.career-portrait .mw-file-element {
margin: 0 auto !important;
}
.nightcats-theme {
padding: 16px 18px;
}
}
/* =========================
GLOBAL CODEX HEADING FIX
========================= */
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6,
.mw-first-heading,
#firstHeading {
color: #c9a15a !important; /* gold */
font-family: 'Cinzel', serif !important;
visibility: visible !important;
opacity: 1 !important;
}
/* Add subtle divider for top headings */
.mw-parser-output h1,
.mw-parser-output h2 {
border-bottom: 1px solid #5c4630;
padding-bottom: 0.2em;
}
/* Nightcats readable type sizing */
.nightcats-theme {
font-size: 1.12rem;
line-height: 1.65;
}
.nightcats-theme p,
.nightcats-theme li,
.nightcats-theme td,
.nightcats-theme th,
.nightcats-theme dd {
font-size: 1em;
line-height: 1.65;
}
.nightcats-theme h1 {
font-size: 2.2em;
line-height: 1.2;
}
.nightcats-theme h2 {
font-size: 1.7em;
line-height: 1.25;
}
.nightcats-theme h3 {
font-size: 1.35em;
line-height: 1.3;
}
.nightcats-theme h4 {
font-size: 1.15em;
line-height: 1.3;
}