MediaWiki:Common.css: Difference between revisions
From Artifacts of Capitalism
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Custom ribbon background image */ | /* ── Custom ribbon background image ── */ | ||
.p-navbar { | .p-navbar { | ||
background-image: url('/images/ribbon.png') !important; | background-image: url('/images/ribbon.png') !important; | ||
| Line 7: | Line 7: | ||
background-color: transparent !important; | background-color: transparent !important; | ||
} | } | ||
/* Make navbar text black */ | |||
/* ── Make navbar text black ── */ | |||
.p-navbar, | .p-navbar, | ||
.p-navbar .nav-link, | .p-navbar .nav-link, | ||
.p-navbar .navbar-tool-link, | .p-navbar .navbar-tool-link, | ||
.p-navbar .navbar-more-tools, | .p-navbar .navbar-more-tools, | ||
.p-navbar .mw-list-item a | .p-navbar .mw-list-item a, | ||
.p-navbar .dropdown-menu a { | .p-navbar .dropdown-menu a { | ||
color: black !important; | color: black !important; | ||
} | } | ||
.p-navbar .nav-link:hover, | .p-navbar .nav-link:hover, | ||
.p-navbar .nav-link:focus { | .p-navbar .nav-link:focus { | ||
color: #333 !important; | color: #333 !important; | ||
} | } | ||
/* ── Load EB Garamond with medium & bold weights ── */ | /* ── Load EB Garamond with medium & bold weights ── */ | ||
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;700&display=swap'); | @import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;700&display=swap'); | ||
| Line 31: | Line 28: | ||
body, .mw-body { | body, .mw-body { | ||
font-family: 'EB Garamond', Garamond, serif !important; | font-family: 'EB Garamond', Garamond, serif !important; | ||
font-weight: 500 !important; | font-weight: 500 !important; | ||
} | } | ||
| Line 37: | Line 34: | ||
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; | font-weight: 700 !important; | ||
} | } | ||
body.anonymous .cmln-personal-tools { | |||
/* ── Hide personal tools when logged out ── */ | |||
body.anonymous .cmln-personal-tools, | |||
body.anonymous #pt-userpage, | |||
body.anonymous #pt-logout { | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* 🔥 | |||
/* 🔥 Kill any “Special pages” link, however injected ── */ | |||
a.n-specialpages[href*="Special:SpecialPages"], | a.n-specialpages[href*="Special:SpecialPages"], | ||
#p-specialpages, | #p-specialpages, | ||
| Line 51: | Line 53: | ||
} | } | ||
/* | /* ── Hide MediaWiki default footer icons ── */ | ||
.footer-icons { | .footer-icons { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* Add custom footer image */ | /* ── Add custom footer image ── */ | ||
#footer { | #footer { | ||
position: relative; | position: relative; | ||
} | } | ||
#footer::after { | #footer::after { | ||
content: ""; | content: ""; | ||
display: block; | display: block; | ||
background-image: url('/images/image.png'); | background-image: url('/images/image.png'); /* your path */ | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-size: contain; | background-size: contain; | ||
| Line 81: | Line 76: | ||
/* Optional tweaks to footer logo */ | /* Optional tweaks to footer logo */ | ||
#footer .mw-logo-icon { | #footer .mw-logo-icon { | ||
width: 50px; | width: 50px; | ||
height: auto; | height: auto; | ||
margin-right: 10px; | margin-right: 10px; | ||
} | } | ||
/* ———————————————————————— | /* ———————————————————————— | ||
Page-of-the-Day box | Page-of-the-Day preview box | ||
———————————————————————— */ | ———————————————————————— */ | ||
.artifact-preview { | .artifact-preview { | ||
display: grid; | display: grid; | ||
grid-template-columns: 200px 1fr; | grid-template-columns: 200px 1fr; | ||
gap: 0.75em; | gap: 0.75em; | ||
margin: 2em 0; /* flush with text above/below */ | |||
margin: 2em | padding: 0.75em 1em; | ||
padding: 0.75em 1em; | |||
border: 1px solid #ddd; | border: 1px solid #ddd; | ||
border-radius: 6px; | border-radius: 6px; | ||
| Line 145: | Line 95: | ||
box-shadow: 0 1px 3px rgba(0,0,0,0.05); | box-shadow: 0 1px 3px rgba(0,0,0,0.05); | ||
} | } | ||
.artifact-thumb img { | .artifact-thumb img { | ||
display: block; | display: block; | ||
| Line 156: | Line 101: | ||
border-radius: 4px; | border-radius: 4px; | ||
} | } | ||
.artifact-text h3 { | .artifact-text h3 { | ||
margin: 0 0 0.4em; | margin: 0 0 0.4em; | ||
| Line 167: | Line 107: | ||
padding-bottom: 0.2em; | padding-bottom: 0.2em; | ||
} | } | ||
/* Stack on small screens */ | /* Stack on small screens */ | ||
@media (max-width: 600px) { | @media (max-width: 600px) { | ||
Revision as of 23:06, 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,
.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;
}
/* ── Headings even stronger ── */
h1, h2, h3, h4, h5, h6 {
font-family: 'EB Garamond', Garamond, serif !important;
font-weight: 700 !important;
}
/* ── Hide personal tools when logged out ── */
body.anonymous .cmln-personal-tools,
body.anonymous #pt-userpage,
body.anonymous #pt-logout {
display: none !important;
}
/* 🔥 Kill any “Special pages” link, however injected ── */
a.n-specialpages[href*="Special:SpecialPages"],
#p-specialpages,
li#n-specialpages,
li#t-specialpages,
li#pt-specialpages {
display: none !important;
}
/* ── Hide MediaWiki default footer icons ── */
.footer-icons {
display: none !important;
}
/* ── Add custom footer image ── */
#footer {
position: relative;
}
#footer::after {
content: "";
display: block;
background-image: url('/images/image.png'); /* your path */
background-repeat: no-repeat;
background-size: contain;
width: 120px;
height: 40px;
position: absolute;
right: 20px;
bottom: 10px;
}
/* Optional tweaks to footer logo */
#footer .mw-logo-icon {
width: 50px;
height: auto;
margin-right: 10px;
}
/* ————————————————————————
Page-of-the-Day preview box
———————————————————————— */
.artifact-preview {
display: grid;
grid-template-columns: 200px 1fr;
gap: 0.75em;
margin: 2em 0; /* flush with text above/below */
padding: 0.75em 1em;
border: 1px solid #ddd;
border-radius: 6px;
background: #fafafa;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.artifact-thumb img {
display: block;
width: 100%;
height: auto;
border-radius: 4px;
}
.artifact-text h3 {
margin: 0 0 0.4em;
font-size: 1.25em;
border-bottom: 1px solid #ccc;
padding-bottom: 0.2em;
}
/* Stack on small screens */
@media (max-width: 600px) {
.artifact-preview {
grid-template-columns: 1fr;
}
}