MediaWiki:Common.css: Difference between revisions
Appearance
Kill remaining white wrapper backgrounds |
Fix white thumbnail image backgrounds, add ink-frame treatment |
||
| Line 424: | Line 424: | ||
.vector-menu-content-list { | .vector-menu-content-list { | ||
background: transparent !important; | background: transparent !important; | ||
} | |||
/* Kill white behind thumbnail images, give them the retro frame treatment */ | |||
figure.mw-halign-right, | |||
figure.mw-halign-left, | |||
figure.mw-halign-center, | |||
figure.mw-default-size, | |||
.mw-file-description, | |||
.mw-file-element, | |||
.thumb, .thumbinner { | |||
background: transparent !important; | |||
} | |||
.mw-file-element { | |||
border: 3px solid var(--bf-ink) !important; | |||
border-radius: 8px !important; | |||
box-shadow: 5px 5px 0 var(--bf-ink) !important; | |||
} | |||
figcaption, .thumbcaption { | |||
background: transparent !important; | |||
color: var(--bf-muted) !important; | |||
font-family: var(--bf-cond) !important; | |||
font-size: 0.85em !important; | |||
} | } | ||
Revision as of 18:35, 21 August 2026
/* ===== Fullmer Wiki: match brettfullmer.com brand ===== */
@font-face {
font-family: "Alfa Slab One";
src: url("/fonts/AlfaSlabOne-Regular.ttf") format("truetype");
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: "Oswald";
src: url("/fonts/Oswald.ttf") format("truetype");
font-weight: 200 700;
font-display: swap;
}
:root {
--bf-paper: #f2e8d2;
--bf-paper-2: #eaddbd;
--bf-card: #f8f0dc;
--bf-ink: #191410;
--bf-ink-soft: #4a3f33;
--bf-muted: #7a6b58;
--bf-red: #c9342a;
--bf-mustard: #e0a92e;
--bf-teal: #2f7f74;
--bf-slab: "Alfa Slab One", "Rockwell", serif;
--bf-cond: "Oswald", "Arial Narrow", sans-serif;
--bf-serif: Georgia, "Times New Roman", serif;
}
/* ---------- Custom masthead (injected by Common.js) ---------- */
#bf-masthead {
position: sticky;
top: 0;
z-index: 200;
background: var(--bf-paper);
border-bottom: 3px solid var(--bf-ink);
box-shadow: 0 3px 0 rgba(25, 20, 16, 0.12);
font-family: var(--bf-cond);
}
#bf-masthead .bf-wrap {
max-width: 1100px;
margin: 0 auto;
padding: 0 24px;
display: flex;
justify-content: space-between;
align-items: center;
height: 66px;
position: relative;
}
#bf-masthead .bf-name {
font-family: var(--bf-slab);
font-size: 19px;
color: var(--bf-ink);
text-decoration: none;
display: flex;
align-items: center;
}
#bf-masthead .bf-name:hover { color: var(--bf-red); }
#bf-masthead .bf-name img {
width: 24px !important;
height: 24px !important;
max-width: 24px !important;
max-height: 24px !important;
flex-shrink: 0;
object-fit: contain;
margin-right: 9px;
}
#bf-masthead .bf-links {
display: flex;
gap: 24px;
align-items: center;
}
#bf-masthead .bf-links a {
color: var(--bf-ink-soft);
font-family: var(--bf-cond);
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1.5px;
text-decoration: none;
}
#bf-masthead .bf-links a:hover,
#bf-masthead .bf-links a.bf-current { color: var(--bf-red); }
#bf-masthead .bf-cta {
font-family: var(--bf-cond);
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1.5px;
background: var(--bf-red);
color: var(--bf-paper) !important;
border: 2px solid var(--bf-ink);
padding: 8px 18px;
border-radius: 6px;
box-shadow: 3px 3px 0 var(--bf-ink);
text-decoration: none;
transition: transform 0.15s, box-shadow 0.15s;
}
#bf-masthead .bf-cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--bf-ink); }
#bf-masthead .bf-mobile-actions { display: none; align-items: center; gap: 12px; }
#bf-masthead .bf-toggle {
display: none;
flex-direction: column;
justify-content: center;
gap: 5px;
width: 32px;
height: 32px;
background: none;
border: none;
padding: 0;
cursor: pointer;
}
#bf-masthead .bf-toggle span {
display: block;
width: 100%;
height: 3px;
background: var(--bf-ink);
border-radius: 2px;
transition: transform 0.2s ease, opacity 0.2s ease;
}
#bf-masthead .bf-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#bf-masthead .bf-toggle.open span:nth-child(2) { opacity: 0; }
#bf-masthead .bf-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 680px) {
#bf-masthead .bf-mobile-actions { display: flex; }
#bf-masthead .bf-toggle { display: flex; }
#bf-masthead .bf-links .bf-cta-desktop { display: none; }
#bf-masthead .bf-links {
position: absolute;
top: 66px;
left: 0;
right: 0;
flex-direction: column;
align-items: stretch;
gap: 0;
background: var(--bf-paper);
border-bottom: 3px solid var(--bf-ink);
box-shadow: 0 3px 0 rgba(25, 20, 16, 0.12);
max-height: 0;
overflow: hidden;
opacity: 0;
pointer-events: none;
transition: max-height 0.25s ease, opacity 0.2s ease;
}
#bf-masthead .bf-links.open {
max-height: 500px;
opacity: 1;
pointer-events: auto;
}
#bf-masthead .bf-links a {
padding: 16px 24px;
border-bottom: 1px solid rgba(25, 20, 16, 0.1);
}
}
/* ---------- Recolor the wiki body itself ---------- */
body {
background-color: var(--bf-paper) !important;
color: var(--bf-ink) !important;
font-family: var(--bf-serif) !important;
}
.mw-page-container, .mw-body, #content {
background: transparent !important;
}
.mw-body {
background: var(--bf-card) !important;
border: 3px solid var(--bf-ink) !important;
border-radius: 10px !important;
box-shadow: 6px 6px 0 var(--bf-ink) !important;
padding: 30px 34px !important;
}
.mw-body h1, .mw-body h2, .mw-body h3 {
font-family: var(--bf-slab) !important;
font-weight: 400 !important;
color: var(--bf-ink) !important;
border-bottom-color: rgba(25, 20, 16, 0.2) !important;
}
.mw-body a, .vector-menu-content a { color: var(--bf-red) !important; }
.mw-body a.new { color: var(--bf-teal) !important; }
.vector-pinnable-header, .vector-menu-heading, #p-navigation h3, #p-tb h3 {
font-family: var(--bf-cond) !important;
text-transform: uppercase;
letter-spacing: 1px;
}
pre, .mw-highlight, code {
background: var(--bf-paper-2) !important;
border-color: var(--bf-ink) !important;
}
/* ===== Deep Vector restyle: kill the white, match the retro palette ===== */
html { background: var(--bf-paper) !important; }
.mw-page-container,
#mw-content-text,
.vector-body,
.mw-body-content,
.skin-vector-2022 {
background: transparent !important;
}
/* ---------- Vector's own top bar (logo/search/login) ---------- */
.vector-header-container,
header.vector-header,
.vector-pinnable-header-toolbar {
background: var(--bf-paper-2) !important;
border-bottom: 3px solid var(--bf-ink) !important;
box-shadow: none !important;
}
.vector-header-container .mw-logo-wordmark,
.vector-header-container .mw-logo-container {
filter: none !important;
}
/* ---------- Search box ---------- */
.cdx-search-input__input-wrapper .cdx-text-input__input,
.cdx-text-input__input,
#searchInput {
background: var(--bf-card) !important;
border: 2px solid var(--bf-ink) !important;
color: var(--bf-ink) !important;
font-family: var(--bf-serif) !important;
box-shadow: none !important;
}
.cdx-text-input__input:focus {
border-color: var(--bf-red) !important;
box-shadow: 0 0 0 1px var(--bf-red) !important;
}
.cdx-search-input__end-button,
.cdx-button {
font-family: var(--bf-cond) !important;
}
/* Primary buttons (Search button, Save changes, etc.) */
.cdx-button--action-progressive,
.cdx-button--weight-primary.cdx-button--action-progressive,
#p-search .cdx-button,
.mw-ui-button.mw-ui-progressive {
background: var(--bf-red) !important;
border: 2px solid var(--bf-ink) !important;
color: var(--bf-paper) !important;
box-shadow: 2px 2px 0 var(--bf-ink) !important;
border-radius: 6px !important;
}
/* ---------- Left sidebar (navigation, tools) ---------- */
#mw-panel,
.vector-main-menu-container,
.mw-portlet {
background: transparent !important;
}
.vector-menu-heading,
.mw-portlet-label {
font-family: var(--bf-slab) !important;
color: var(--bf-ink) !important;
font-weight: 400 !important;
text-transform: none !important;
letter-spacing: normal !important;
border-bottom: 1px solid rgba(25, 20, 16, 0.15) !important;
}
.vector-menu-content a,
.mw-portlet a {
color: var(--bf-ink-soft) !important;
font-family: var(--bf-cond) !important;
}
.vector-menu-content a:hover,
.mw-portlet a:hover {
color: var(--bf-red) !important;
text-decoration: underline;
}
/* ---------- Page tabs (Read / Edit / View history / Tools) ---------- */
#p-views a,
#p-associated-pages a,
.vector-tab-noicon a,
#p-namespaces a {
color: var(--bf-ink-soft) !important;
font-family: var(--bf-cond) !important;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
#p-views .selected a,
#p-namespaces .selected a {
color: var(--bf-red) !important;
border-bottom: 2px solid var(--bf-red) !important;
}
.vector-page-toolbar,
#left-navigation,
#right-navigation {
background: transparent !important;
}
/* ---------- Table of contents / Appearance panel ---------- */
#toc, .toc,
.vector-toc,
.vector-pinnable-element {
background: var(--bf-card) !important;
border: 2px solid var(--bf-ink) !important;
border-radius: 8px !important;
}
.vector-toc-list a,
.sidebar-toc a {
color: var(--bf-ink-soft) !important;
font-family: var(--bf-cond) !important;
}
.vector-toc-list a:hover { color: var(--bf-red) !important; }
/* Codex radio buttons (Appearance: text size / width) */
.cdx-radio__icon {
border-color: var(--bf-ink) !important;
}
.cdx-radio__input:checked + .cdx-radio__icon {
background-color: var(--bf-red) !important;
border-color: var(--bf-red) !important;
}
.cdx-radio__label {
font-family: var(--bf-serif) !important;
color: var(--bf-ink) !important;
}
/* ---------- Footer ---------- */
#footer, .mw-footer, footer.mw-footer-container {
background: var(--bf-paper-2) !important;
border-top: 2px solid var(--bf-ink) !important;
color: var(--bf-muted) !important;
font-family: var(--bf-cond) !important;
}
#footer a, .mw-footer a { color: var(--bf-teal) !important; }
/* ---------- Misc form elements everywhere (edit forms, etc.) ---------- */
input[type="text"], input[type="search"], textarea, select {
background: var(--bf-card) !important;
border: 2px solid var(--bf-ink) !important;
color: var(--bf-ink) !important;
font-family: var(--bf-serif) !important;
}
/* ===== Fix: hide Vector's own placeholder logo (we have our own masthead), kill overflow, kill remaining white ===== */
.mw-logo, .mw-logo-container, .mw-logo-icon, .mw-logo-wordmark {
display: none !important;
}
* { box-sizing: border-box !important; }
html, body {
overflow-x: hidden !important;
max-width: 100% !important;
}
.mw-body,
.vector-column-start,
.vector-column-end,
.mw-page-container-inner,
.vector-page-toolbar,
.vector-body {
max-width: 100% !important;
}
.mw-body {
margin-left: 0 !important;
}
@media (max-width: 719px) {
.mw-body {
padding: 20px 18px !important;
}
}
/* leftover white containers */
.vector-page-toolbar-container,
.vector-column-start,
.vector-column-end,
.mw-page-container-inner,
.vector-sticky-pinned-container,
.vector-pinnable-header {
background: transparent !important;
}
.vector-pinnable-element {
background: var(--bf-card) !important;
}
/* Kill the remaining white behind pinned/dropdown wrapper containers */
.vector-pinned-container,
.vector-unpinned-container,
.vector-dropdown-content,
.vector-menu-content-list {
background: transparent !important;
}
/* Kill white behind thumbnail images, give them the retro frame treatment */
figure.mw-halign-right,
figure.mw-halign-left,
figure.mw-halign-center,
figure.mw-default-size,
.mw-file-description,
.mw-file-element,
.thumb, .thumbinner {
background: transparent !important;
}
.mw-file-element {
border: 3px solid var(--bf-ink) !important;
border-radius: 8px !important;
box-shadow: 5px 5px 0 var(--bf-ink) !important;
}
figcaption, .thumbcaption {
background: transparent !important;
color: var(--bf-muted) !important;
font-family: var(--bf-cond) !important;
font-size: 0.85em !important;
}