MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Version | /* Version 25.0 - Exact Miraheze Mirror | ||
Targeting Typography, Infoboxes, and Mobile Responsiveness | |||
*/ | */ | ||
| Line 8: | Line 8: | ||
--kh-green: #3e5a47; | --kh-green: #3e5a47; | ||
--kh-yellow: #ffd700; | --kh-yellow: #ffd700; | ||
--miraheze- | --miraheze-white: #ffffff; | ||
--miraheze-border: #dcdcdc; | |||
} | } | ||
/* --- | /* --- GLOBAL BODY & CONTENT --- */ | ||
body | body { | ||
font-family: 'Crimson Pro', serif !important; | font-family: 'Crimson Pro', serif !important; | ||
background-color: #1a1a1a !important; /* Dark background behind the content box */ | |||
margin: 0; | |||
padding: 0; | |||
} | } | ||
#content, .mw-body { | |||
.mw-body | background-color: var(--miraheze-white) !important; | ||
background-color: | border: 1px solid var(--miraheze-border) !important; | ||
border: 1px solid | |||
padding: 1.5em !important; | padding: 1.5em !important; | ||
margin: 10px auto !important; | |||
max-width: 1200px; | |||
box-sizing: border-box; | |||
} | } | ||
/* | /* --- HEADINGS --- */ | ||
h1, h2, h3, .firstHeading { | h1, h2, h3, .firstHeading { | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
color: var(--kh-green) !important; | color: var(--kh-green) !important; | ||
border-bottom: 2px solid var(--kh-green) !important; | border-bottom: 2px solid var(--kh-green) !important; | ||
font-weight: 700 !important; | |||
} | } | ||
/* --- | /* --- PORTABLE INFOBOX: DESKTOP --- */ | ||
.portable-infobox { | .portable-infobox { | ||
background-color: #fff !important; | background-color: #fff !important; | ||
border: | border: 1px solid var(--miraheze-border) !important; | ||
width: 300px !important; | width: 300px !important; | ||
float: right !important; | float: right !important; | ||
clear: right !important; | |||
margin: 0 0 1em 1em !important; | |||
display: flex !important; | display: flex !important; | ||
flex-direction: column !important; | flex-direction: column !important; | ||
font-size: 0.9em !important; | |||
} | } | ||
| Line 56: | Line 53: | ||
background-color: var(--kh-yellow) !important; | background-color: var(--kh-yellow) !important; | ||
color: #2d4234 !important; | color: #2d4234 !important; | ||
font-family: 'Cinzel', serif !important; | |||
font-weight: bold !important; | |||
padding: 10px !important; | padding: 10px !important; | ||
text-align: center !important; | |||
text-transform: uppercase !important; | |||
} | } | ||
| Line 62: | Line 63: | ||
background-color: var(--kh-green) !important; | background-color: var(--kh-green) !important; | ||
color: #fff !important; | color: #fff !important; | ||
padding: | font-family: 'Cinzel', serif !important; | ||
padding: 5px !important; | |||
text-align: center !important; | |||
} | } | ||
.pi-item.pi-data { | .pi-item.pi-data { | ||
display: flex !important; | display: flex !important; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #f0f0f0 !important; | ||
} | } | ||
.pi-data-label { | .pi-data-label { | ||
flex: 0 0 | flex: 0 0 35% !important; | ||
background-color: # | background-color: #f8f9fa !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
padding: | padding: 6px !important; | ||
border-right: 1px solid # | border-right: 1px solid #f0f0f0 !important; | ||
} | } | ||
.pi-data-value { | .pi-data-value { | ||
flex: 1 !important; | flex: 1 !important; | ||
padding: | padding: 6px !important; | ||
} | } | ||
/* --- | /* --- MOBILE RESPONSIVENESS (The Miraheze Mobile Look) --- */ | ||
. | @media screen and (max-width: 768px) { | ||
#content, .mw-body { | |||
} | margin: 0 !important; | ||
border: none !important; | |||
padding: 10px !important; | |||
width: 100% !important; | |||
} | |||
.portable-infobox { | |||
float: none !important; | |||
width: 100% !important; | |||
margin: 10px 0 !important; | |||
display: block !important; | |||
} | |||
.pi-item.pi-data { | |||
flex-direction: column !important; | |||
} | |||
. | .pi-data-label { | ||
background-color: #eee !important; | |||
width: 100% !important; | |||
border-right: none !important; | |||
border-bottom: 1px solid #ddd !important; | |||
} | |||
} | } | ||
Revision as of 03:50, 18 March 2026
/* Version 25.0 - Exact Miraheze Mirror
Targeting Typography, Infoboxes, and Mobile Responsiveness
*/
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap');
:root {
--kh-green: #3e5a47;
--kh-yellow: #ffd700;
--miraheze-white: #ffffff;
--miraheze-border: #dcdcdc;
}
/* --- GLOBAL BODY & CONTENT --- */
body {
font-family: 'Crimson Pro', serif !important;
background-color: #1a1a1a !important; /* Dark background behind the content box */
margin: 0;
padding: 0;
}
#content, .mw-body {
background-color: var(--miraheze-white) !important;
border: 1px solid var(--miraheze-border) !important;
padding: 1.5em !important;
margin: 10px auto !important;
max-width: 1200px;
box-sizing: border-box;
}
/* --- HEADINGS --- */
h1, h2, h3, .firstHeading {
font-family: 'Cinzel', serif !important;
color: var(--kh-green) !important;
border-bottom: 2px solid var(--kh-green) !important;
font-weight: 700 !important;
}
/* --- PORTABLE INFOBOX: DESKTOP --- */
.portable-infobox {
background-color: #fff !important;
border: 1px solid var(--miraheze-border) !important;
width: 300px !important;
float: right !important;
clear: right !important;
margin: 0 0 1em 1em !important;
display: flex !important;
flex-direction: column !important;
font-size: 0.9em !important;
}
.portable-infobox .pi-title {
background-color: var(--kh-yellow) !important;
color: #2d4234 !important;
font-family: 'Cinzel', serif !important;
font-weight: bold !important;
padding: 10px !important;
text-align: center !important;
text-transform: uppercase !important;
}
.portable-infobox .pi-header {
background-color: var(--kh-green) !important;
color: #fff !important;
font-family: 'Cinzel', serif !important;
padding: 5px !important;
text-align: center !important;
}
.pi-item.pi-data {
display: flex !important;
border-bottom: 1px solid #f0f0f0 !important;
}
.pi-data-label {
flex: 0 0 35% !important;
background-color: #f8f9fa !important;
font-weight: bold !important;
padding: 6px !important;
border-right: 1px solid #f0f0f0 !important;
}
.pi-data-value {
flex: 1 !important;
padding: 6px !important;
}
/* --- MOBILE RESPONSIVENESS (The Miraheze Mobile Look) --- */
@media screen and (max-width: 768px) {
#content, .mw-body {
margin: 0 !important;
border: none !important;
padding: 10px !important;
width: 100% !important;
}
.portable-infobox {
float: none !important;
width: 100% !important;
margin: 10px 0 !important;
display: block !important;
}
.pi-item.pi-data {
flex-direction: column !important;
}
.pi-data-label {
background-color: #eee !important;
width: 100% !important;
border-right: none !important;
border-bottom: 1px solid #ddd !important;
}
}