Jump to content

MediaWiki:Common.css

From The Archmaester's Archive
Revision as of 13:07, 12 June 2026 by Archmaesterjimmie (talk | contribs) (Archmaester parchment theme (Wren))
(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 ARCHMAESTER'S ARCHIVE - Wiki Theme
   Target skin: Vector 2022 (skin-vector-2022)
   Aesthetic: aged parchment / sepia ink (matches LOTR companion app)
   No extensions required. Paste into MediaWiki:Common.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cinzel+Decorative:wght@400;700&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=Uncial+Antiqua&display=swap');

/* ---- Palette (LOTR parchment) ---- */
:root {
  --am-bg:        #f2e8d0;
  --am-bg-deep:   #ece0c2;
  --am-panel:     #f6eed8;
  --am-ink:       #1e1208;
  --am-ink-soft:  #4a3418;
  --am-ink-faint: #6b4e26;
  --am-accent:    #5a3810;
  --am-line:      rgba(120, 80, 20, 0.30);
  --am-line-soft: rgba(120, 80, 20, 0.16);
  --am-link:      #7a4a12;
  --am-link-hov:  #9c5a10;
  --am-redlink:   #9b3b22;
  --font-head:    'Cinzel', Georgia, serif;
  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-body:    'Crimson Pro', Georgia, serif;
}

/* ---- Page canvas ---- */
html, body.skin-vector-2022 { background: var(--am-bg-deep); }
.mw-page-container { background: var(--am-bg-deep); }
.mw-page-container-inner,
.vector-column-end,
.mw-content-container { background: transparent; }

/* parchment rule-line texture behind the content column */
.mw-content-container {
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 27px,
    rgba(140, 95, 20, 0.05) 27px, rgba(140, 95, 20, 0.05) 28px);
}

/* ---- Body content ---- */
.mw-body,
.vector-body,
.mw-body-content {
  background: var(--am-panel);
  color: var(--am-ink);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.7;
}
.mw-body { border: 1px solid var(--am-line); border-radius: 2px; }
.mw-body p { color: var(--am-ink); }

/* ---- Headings ---- */
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-page-title-main,
.firstHeading,
.mw-heading {
  font-family: var(--font-head);
  color: var(--am-accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.firstHeading,
h1.mw-first-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  border-bottom: 2px solid var(--am-line);
  padding-bottom: 0.3em;
}
.mw-body h2,
.mw-heading2 {
  border-bottom: 1px solid var(--am-line);
  padding-bottom: 0.2em;
  margin-top: 1.4em;
}
/* small flourish before each H2 */
.mw-heading2 > h2::before,
.mw-body h2::before {
  content: '\2766\00a0';
  color: var(--am-ink-faint);
  font-size: 0.8em;
}

/* ---- Links ---- */
.mw-body a,
.vector-body a { color: var(--am-link); text-decoration: none; }
.mw-body a:hover { color: var(--am-link-hov); text-decoration: underline; }
.mw-body a.new { color: var(--am-redlink); }          /* missing pages */
.mw-body a.external { color: var(--am-link); }
.mw-body a.external::after { filter: sepia(1) saturate(2) hue-rotate(-20deg); }

/* ---- Chrome: header, sidebar, tabs ---- */
.vector-header-container,
.vector-header,
.mw-header { background: var(--am-bg); border-bottom: 1px solid var(--am-line); }
.vector-main-menu-container,
.vector-pinnable-element,
.vector-page-tools,
.vector-menu-content { background: transparent; }
.vector-page-titlebar { border-bottom: none; }

/* nav tabs (Read / Edit / View history) */
.vector-menu-tabs a,
.vector-tab-noicon a { font-family: var(--font-head); color: var(--am-ink-soft); }
.skin-vector-2022 .mw-list-item.selected a { color: var(--am-accent); }

/* search box */
.cdx-text-input__input,
.vector-search-box-input {
  background: var(--am-panel);
  border: 1px solid var(--am-line);
  color: var(--am-ink);
  font-family: var(--font-body);
}

/* sidebar / TOC */
#vector-toc,
.vector-toc,
.sidebar-chunk { font-family: var(--font-body); }
.vector-toc a { color: var(--am-link); }
.vector-toc-toggle, .vector-toc-text { color: var(--am-ink-soft); }

/* ---- Tables (generic wikitables) ---- */
.mw-body .wikitable {
  background: var(--am-panel);
  border: 1px solid var(--am-line);
  color: var(--am-ink);
}
.mw-body .wikitable > * > tr > th {
  background: var(--am-bg-deep);
  border: 1px solid var(--am-line-soft);
  font-family: var(--font-head);
  color: var(--am-accent);
}
.mw-body .wikitable > * > tr > td {
  border: 1px solid var(--am-line-soft);
}

/* ============================================================
   CHARACTER INFOBOX  (used by Template:Infobox character)
   ============================================================ */
.am-infobox {
  float: right;
  clear: right;
  width: 300px;
  margin: 0 0 1.2em 1.4em;
  background: var(--am-bg);
  border: 1px solid var(--am-line);
  box-shadow: 0 1px 0 rgba(120,80,20,0.18);
  font-family: var(--font-body);
  font-size: 0.95rem;
  position: relative;
}
.am-infobox::before {            /* gilt top rule */
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--am-accent), transparent);
}
.am-infobox-sigil {
  text-align: center;
  font-size: 2.4rem;
  padding: 14px 0 4px;
  line-height: 1;
}
.am-infobox-sigil img { max-width: 84px; height: auto; }
.am-infobox-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--am-accent);
  text-align: center;
  padding: 4px 12px 2px;
  line-height: 1.15;
}
.am-infobox-title {
  font-style: italic;
  color: var(--am-ink-faint);
  text-align: center;
  padding: 0 14px 12px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--am-line-soft);
}
.am-infobox table { width: 100%; border-collapse: collapse; }
.am-infobox th {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--am-ink-faint);
  text-align: left;
  vertical-align: top;
  width: 38%;
  padding: 7px 6px 7px 14px;
  border-bottom: 1px solid var(--am-line-soft);
}
.am-infobox td {
  color: var(--am-ink);
  vertical-align: top;
  padding: 7px 14px 7px 6px;
  border-bottom: 1px solid var(--am-line-soft);
}
.am-infobox-quote {
  font-style: italic;
  color: var(--am-ink-soft);
  padding: 12px 16px 14px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.am-infobox-quote::before { content: '\275D'; color: var(--am-line); font-size: 1.6em; margin-right: 4px; vertical-align: -0.3em; }

/* ---- Responsive: infobox stacks on narrow screens ---- */
@media (max-width: 720px) {
  .am-infobox { float: none; width: auto; margin: 0 0 1.2em 0; }
}

/* ---- Footer ---- */
.mw-footer, .vector-footer {
  background: var(--am-bg-deep);
  border-top: 1px solid var(--am-line);
  font-family: var(--font-body);
  color: var(--am-ink-faint);
}