MediaWiki:Common.css: Difference between revisions
Appearance
Archmaester parchment theme (Wren) |
Archmaester parchment theme (Wren) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 170: | Line 170: | ||
line-height: 1; | line-height: 1; | ||
} | } | ||
/* Character portrait at top of infobox (external image from our own domain) */ | |||
.am-infobox-portrait img { width: 100%; height: auto; display: block; } | |||
.am-infobox-portrait:empty, .am-infobox-sigil:empty { display: none; } | |||
.am-infobox-sigil img { max-width: 84px; height: auto; } | .am-infobox-sigil img { max-width: 84px; height: auto; } | ||
.am-infobox-name { | .am-infobox-name { | ||
| Line 227: | Line 230: | ||
font-family: var(--font-body); | font-family: var(--font-body); | ||
color: var(--am-ink-faint); | color: var(--am-ink-faint); | ||
} | |||
/* ============================================================ | |||
MAIN PAGE (landing gateway) | |||
============================================================ */ | |||
.am-hero { | |||
text-align: center; | |||
padding: 34px 20px 26px; | |||
border: 1px solid var(--am-line); | |||
background: var(--am-bg); | |||
position: relative; | |||
margin-bottom: 22px; | |||
} | |||
.am-hero::before { | |||
content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; | |||
background: linear-gradient(90deg, transparent, var(--am-accent), transparent); | |||
} | |||
.am-hero .am-h1 { | |||
font-family: var(--font-display); | |||
font-size: 2.4rem; color: var(--am-accent); | |||
border: none; margin: 0 0 8px; line-height: 1.1; | |||
} | |||
.am-hero .am-tagline { font-style: italic; color: var(--am-ink-faint); font-size: 1.12rem; } | |||
.am-intro { font-size: 1.05rem; line-height: 1.7; margin-bottom: 6px; } | |||
.am-realm-grid { | |||
display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); | |||
gap: 14px; margin: 16px 0 8px; | |||
} | |||
.am-realm { | |||
border: 1px solid var(--am-line); background: var(--am-panel); | |||
padding: 16px 18px; transition: transform .15s, box-shadow .15s; | |||
} | |||
.am-realm:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(80,50,10,0.16); } | |||
.am-realm .am-realm-name { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; } | |||
.am-realm .am-realm-name a { text-decoration: none; } | |||
.am-realm .am-realm-sub { font-size: 0.9rem; color: var(--am-ink-faint); font-style: italic; margin-top: 2px; } | |||
.am-realm .am-realm-status { | |||
display: inline-block; margin-top: 9px; font-family: var(--font-head); | |||
font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; | |||
padding: 2px 8px; border: 1px solid var(--am-line); color: var(--am-ink-faint); | |||
} | |||
.am-realm .am-realm-status.live { color: #3a5a1a; border-color: rgba(58,90,26,0.4); background: rgba(58,90,26,0.08); } | |||
.am-section-title { | |||
font-family: var(--font-head); color: var(--am-accent); | |||
border-bottom: 1px solid var(--am-line); padding-bottom: 6px; margin: 26px 0 14px; | |||
} | |||
.am-featured { | |||
border: 1px solid var(--am-line); background: var(--am-panel); | |||
padding: 18px 20px; position: relative; | |||
} | |||
.am-featured .am-feat-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--am-accent); margin-bottom: 4px; } | |||
.am-featured .am-feat-epithet { font-style: italic; color: var(--am-ink-faint); margin-bottom: 10px; } | |||
.am-browse { display: flex; flex-wrap: wrap; gap: 10px; } | |||
.am-browse a { | |||
font-family: var(--font-head); font-size: 0.86rem; text-decoration: none; | |||
color: var(--am-link); border: 1px solid var(--am-line); padding: 6px 13px; background: var(--am-bg); | |||
} | |||
.am-browse a:hover { background: var(--am-accent2); } | |||
.am-backlink { | |||
text-align: center; margin-top: 28px; padding-top: 16px; | |||
border-top: 1px solid var(--am-line); font-style: italic; color: var(--am-ink-faint); | |||
} | |||
/* ---- Sitenotice: persistent orientation banner on every page ---- */ | |||
#siteNotice .am-sitenotice, .am-sitenotice { | |||
font-family: var(--font-head); | |||
text-align: center; | |||
font-size: 0.86rem; | |||
letter-spacing: 0.02em; | |||
padding: 7px 14px; | |||
margin-bottom: 10px; | |||
background: var(--am-bg); | |||
border: 1px solid var(--am-line); | |||
color: var(--am-ink-soft); | |||
} | |||
.am-sitenotice a { color: var(--am-link); text-decoration: none; } | |||
.am-sitenotice a:hover { text-decoration: underline; } | |||
.am-sitenotice .am-sn-sep { color: var(--am-ink-faint); margin: 0 8px; } | |||
/* Back-link banner: dark sepia band so it stands out against the parchment theme */ | |||
.am-wiki-backlink a, .am-wiki-backlink a.external { | |||
color: #f1d38c !important; font-weight: 600; text-decoration: none; | |||
} | |||
.am-wiki-backlink a:hover { text-decoration: underline; } | |||
.am-wiki-backlink a.external::after { filter: brightness(2.4) sepia(1) saturate(2); } | |||
/* ============================================================ | |||
MOBILE READABILITY (no MobileFrontend installed -> tune Vector for phones) | |||
============================================================ */ | |||
@media (max-width: 720px) { | |||
.mw-body, .vector-body, .mw-body-content { font-size: 1.12rem; line-height: 1.65; } | |||
.firstHeading, h1.mw-first-heading { font-size: 1.6rem; } | |||
.mw-body h2, .mw-heading2 { font-size: 1.3rem; } | |||
/* infobox stops floating, centers, and the portrait is capped so it isn't full-screen */ | |||
.am-infobox { float: none; width: auto; max-width: 330px; margin: 0 auto 1.3em; } | |||
/* nothing overflows the viewport */ | |||
.mw-body img { max-width: 100%; height: auto; } | |||
.mw-body table.wikitable, .mw-body pre { display: block; overflow-x: auto; max-width: 100%; } | |||
.am-realm-grid { grid-template-columns: 1fr; } | |||
.am-featured { padding: 14px; } | |||
} | } | ||
Latest revision as of 16:49, 13 June 2026
/* ============================================================
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;
}
/* Character portrait at top of infobox (external image from our own domain) */
.am-infobox-portrait img { width: 100%; height: auto; display: block; }
.am-infobox-portrait:empty, .am-infobox-sigil:empty { display: none; }
.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);
}
/* ============================================================
MAIN PAGE (landing gateway)
============================================================ */
.am-hero {
text-align: center;
padding: 34px 20px 26px;
border: 1px solid var(--am-line);
background: var(--am-bg);
position: relative;
margin-bottom: 22px;
}
.am-hero::before {
content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
background: linear-gradient(90deg, transparent, var(--am-accent), transparent);
}
.am-hero .am-h1 {
font-family: var(--font-display);
font-size: 2.4rem; color: var(--am-accent);
border: none; margin: 0 0 8px; line-height: 1.1;
}
.am-hero .am-tagline { font-style: italic; color: var(--am-ink-faint); font-size: 1.12rem; }
.am-intro { font-size: 1.05rem; line-height: 1.7; margin-bottom: 6px; }
.am-realm-grid {
display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
gap: 14px; margin: 16px 0 8px;
}
.am-realm {
border: 1px solid var(--am-line); background: var(--am-panel);
padding: 16px 18px; transition: transform .15s, box-shadow .15s;
}
.am-realm:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(80,50,10,0.16); }
.am-realm .am-realm-name { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.am-realm .am-realm-name a { text-decoration: none; }
.am-realm .am-realm-sub { font-size: 0.9rem; color: var(--am-ink-faint); font-style: italic; margin-top: 2px; }
.am-realm .am-realm-status {
display: inline-block; margin-top: 9px; font-family: var(--font-head);
font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
padding: 2px 8px; border: 1px solid var(--am-line); color: var(--am-ink-faint);
}
.am-realm .am-realm-status.live { color: #3a5a1a; border-color: rgba(58,90,26,0.4); background: rgba(58,90,26,0.08); }
.am-section-title {
font-family: var(--font-head); color: var(--am-accent);
border-bottom: 1px solid var(--am-line); padding-bottom: 6px; margin: 26px 0 14px;
}
.am-featured {
border: 1px solid var(--am-line); background: var(--am-panel);
padding: 18px 20px; position: relative;
}
.am-featured .am-feat-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--am-accent); margin-bottom: 4px; }
.am-featured .am-feat-epithet { font-style: italic; color: var(--am-ink-faint); margin-bottom: 10px; }
.am-browse { display: flex; flex-wrap: wrap; gap: 10px; }
.am-browse a {
font-family: var(--font-head); font-size: 0.86rem; text-decoration: none;
color: var(--am-link); border: 1px solid var(--am-line); padding: 6px 13px; background: var(--am-bg);
}
.am-browse a:hover { background: var(--am-accent2); }
.am-backlink {
text-align: center; margin-top: 28px; padding-top: 16px;
border-top: 1px solid var(--am-line); font-style: italic; color: var(--am-ink-faint);
}
/* ---- Sitenotice: persistent orientation banner on every page ---- */
#siteNotice .am-sitenotice, .am-sitenotice {
font-family: var(--font-head);
text-align: center;
font-size: 0.86rem;
letter-spacing: 0.02em;
padding: 7px 14px;
margin-bottom: 10px;
background: var(--am-bg);
border: 1px solid var(--am-line);
color: var(--am-ink-soft);
}
.am-sitenotice a { color: var(--am-link); text-decoration: none; }
.am-sitenotice a:hover { text-decoration: underline; }
.am-sitenotice .am-sn-sep { color: var(--am-ink-faint); margin: 0 8px; }
/* Back-link banner: dark sepia band so it stands out against the parchment theme */
.am-wiki-backlink a, .am-wiki-backlink a.external {
color: #f1d38c !important; font-weight: 600; text-decoration: none;
}
.am-wiki-backlink a:hover { text-decoration: underline; }
.am-wiki-backlink a.external::after { filter: brightness(2.4) sepia(1) saturate(2); }
/* ============================================================
MOBILE READABILITY (no MobileFrontend installed -> tune Vector for phones)
============================================================ */
@media (max-width: 720px) {
.mw-body, .vector-body, .mw-body-content { font-size: 1.12rem; line-height: 1.65; }
.firstHeading, h1.mw-first-heading { font-size: 1.6rem; }
.mw-body h2, .mw-heading2 { font-size: 1.3rem; }
/* infobox stops floating, centers, and the portrait is capped so it isn't full-screen */
.am-infobox { float: none; width: auto; max-width: 330px; margin: 0 auto 1.3em; }
/* nothing overflows the viewport */
.mw-body img { max-width: 100%; height: auto; }
.mw-body table.wikitable, .mw-body pre { display: block; overflow-x: auto; max-width: 100%; }
.am-realm-grid { grid-template-columns: 1fr; }
.am-featured { padding: 14px; }
}