Jump to content

MediaWiki:Common.css

From The Salvage Age
Revision as of 02:12, 5 November 2026 by Admin (talk | contribs) (Setup: small fixes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* The Salvage Age theme: aged paper, rust and moss */
:root {
  --sa-paper: #f7f1e4; --sa-card: #fffdf8; --sa-ink: #2c261f; --sa-muted: #6c6152;
  --sa-rust: #9a4a23; --sa-rust-dark: #7a3817; --sa-link: #1f5f6b; --sa-moss: #4f6b3a; --sa-line: #dccfb6;
}
html, body, .mw-page-container, .vector-header-container, .mw-header,
.vector-pinned-container, .vector-sticky-header { background-color: var(--sa-paper); }
.vector-sticky-pinned-container::after { display: none; }
.mw-logo-wordmark { color: #3a2f25; }
.mw-logo-wordmark, .firstHeading, .mw-body h1, .mw-body-content h2 { font-family: Georgia, 'Times New Roman', serif; }
/* Existing pages are teal so they stay clearly distinct from red links (unwritten pages). */
.mw-body-content a:not(.new):not(.cdx-button):not(.mw-selflink), .vector-menu-content a:not(.new), .vector-pinned-container a:not(.new) { color: var(--sa-link); }
#n-mainpage a, #n-mainpage-description a { color: var(--sa-link); }
.mw-body-content a.new { color: #c8281e; }
.mw-body-content h2 { border-bottom-color: var(--sa-line); }

/* Main page */
.page-Main_Page .firstHeading, .page-Main_Page #siteSub, .page-Main_Page #contentSub { display: none; }
.sa-hero { background: #3a2f25; color: #f7f1e4; padding: 2.25rem 1.5rem; border-radius: 4px; text-align: center; border-bottom: 5px solid var(--sa-rust); }
.sa-hero-title { font: 700 2.5rem/1.15 Georgia, 'Times New Roman', serif; letter-spacing: .02em; }
.sa-hero-sub { margin-top: .5rem; color: #dccfb6; font-size: 1.05rem; }
.sa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; align-items: start; }
.sa-card { background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: 4px; padding: 1rem 1.15rem; }
.sa-card-title { font: 700 1.2rem Georgia, 'Times New Roman', serif; color: var(--sa-rust-dark); margin-bottom: .5rem; }
.sa-card ul { margin-left: 1.1em; }
.sa-card .mw-inputbox-centered, .sa-card .mw-inputbox-form { text-align: left; margin: .35rem 0; }
.sa-card form { display: flex; gap: .35rem; }
.sa-card form .cdx-text-input, .sa-card form input[type=text] { flex: 1 1 auto; min-width: 0; width: auto; }
.sa-card form .cdx-button { flex: 0 0 7rem; }

/* Fact boxes */
.sa-infobox { float: right; clear: right; width: 280px; max-width: 100%; margin: 0 0 1rem 1.25rem; background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: 4px; overflow: hidden; font-size: .9rem; }
.sa-infobox-title { background: #3a2f25; color: #f7f1e4; padding: .55rem .75rem; font: 700 1.1rem Georgia, 'Times New Roman', serif; text-align: center; }
.sa-infobox-kind { background: var(--sa-rust); color: #fff; padding: .1rem .75rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.sa-infobox-image { text-align: center; padding: .5rem; }
.sa-infobox-caption { text-align: center; color: var(--sa-muted); font-size: .8rem; padding: 0 .75rem .5rem; }
.sa-infobox-row { display: grid; grid-template-columns: 40% 60%; gap: .25rem; padding: .35rem .75rem; border-top: 1px solid var(--sa-line); }
.sa-infobox-label { font-weight: 700; }
@media (max-width: 600px) { .sa-infobox { float: none; width: auto; margin: 0 0 1rem; } }