MediaWiki:Common.css: Difference between revisions
From Artifacts of Capitalism
No edit summary |
No edit summary |
||
| Line 25: | Line 25: | ||
color: #333 !important; | color: #333 !important; | ||
} | } | ||
/* ── Load EB Garamond | /* ── Load EB Garamond with medium & bold weights ── */ | ||
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;700&display=swap'); | @import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;700&display=swap'); | ||
/* ── Apply Garamond to body text ── */ | /* ── Apply Garamond to body text, slightly bolder ── */ | ||
body, .mw-body { | body, .mw-body { | ||
font-family: 'EB Garamond', Garamond, serif !important; | font-family: 'EB Garamond', Garamond, serif !important; | ||
font-weight: 500 !important; /* “medium” weight */ | |||
} | } | ||
/* ── | /* ── Headings even stronger ── */ | ||
h1, h2, h3, h4, h5, h6 { | h1, h2, h3, h4, h5, h6 { | ||
font-family: 'EB Garamond', Garamond, serif !important; | font-family: 'EB Garamond', Garamond, serif !important; | ||
font-weight: 700 !important; /* “bold” weight */ | |||
} | } | ||
Revision as of 18:38, 14 July 2025
/* Custom ribbon background image */
.p-navbar {
background-image: url('/images/ribbon.png') !important;
background-size: cover !important;
background-position: center !important;
background-repeat: no-repeat !important;
background-color: transparent !important;
}
/* Make navbar text black */
.p-navbar,
.p-navbar .nav-link,
.p-navbar .navbar-tool-link,
.p-navbar .navbar-more-tools,
.p-navbar .mw-list-item a {
color: black !important;
}
/* Optional: make dropdowns and other elements match */
.p-navbar .dropdown-menu a {
color: black !important;
}
.p-navbar .nav-link:hover,
.p-navbar .nav-link:focus {
color: #333 !important;
}
/* ── Load EB Garamond with medium & bold weights ── */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;700&display=swap');
/* ── Apply Garamond to body text, slightly bolder ── */
body, .mw-body {
font-family: 'EB Garamond', Garamond, serif !important;
font-weight: 500 !important; /* “medium” weight */
}
/* ── Headings even stronger ── */
h1, h2, h3, h4, h5, h6 {
font-family: 'EB Garamond', Garamond, serif !important;
font-weight: 700 !important; /* “bold” weight */
}