MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary |
No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
| Line 1: | Line 1: | ||
/* Version | /* Version 10.0 - Miraheze Style (Desktop & Infobox Logic) */ | ||
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap'); | @import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap'); | ||
| Line 7: | Line 7: | ||
--kh-dark-text: #2d4234 !important; | --kh-dark-text: #2d4234 !important; | ||
--kh-light-bg: #f9fdfa !important; | --kh-light-bg: #f9fdfa !important; | ||
} | } | ||
/* 1. GLOBAL | /* 1. GLOBAL STYLE */ | ||
body, html, | body, html { | ||
font-family: 'Crimson Pro', serif !important; | |||
background-color: var(--kh-light-bg) !important; | background-color: var(--kh-light-bg) !important; | ||
} | } | ||
h1, h2, h3, .mw-headline { | |||
color: var(--kh-green) !important; | |||
font-family: 'Cinzel', serif !important; | |||
} | } | ||
h2::before, h3::before { content: "\1F343\0020" !important; } | |||
/* | /* 2. PORTABLE INFOBOXES (Miraheze Alignment Fix) */ | ||
.portable-infobox { | .portable-infobox { | ||
background-color: | background-color: #fff !important; | ||
border: var(--kh- | border: 2px solid var(--kh-green) !important; | ||
width: 300px !important; | width: 300px !important; | ||
float: right !important; | float: right !important; | ||
margin: 0 0 1em 1em !important; | margin: 0 0 1em 1em !important; | ||
border-collapse: collapse !important; | border-collapse: collapse !important; | ||
display: table !important; | |||
} | } | ||
.portable-infobox .pi-title { | .portable-infobox .pi-title { | ||
background-color: var(--kh-yellow) !important; | background-color: var(--kh-yellow) !important; | ||
| Line 65: | Line 36: | ||
padding: 10px !important; | padding: 10px !important; | ||
text-align: center !important; | text-align: center !important; | ||
} | } | ||
.portable-infobox .pi-header { | .portable-infobox .pi-header { | ||
background-color: var(--kh-green) !important; | background-color: var(--kh-green) !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
} | } | ||
.pi-item.pi-data { | .pi-item.pi-data { | ||
display: table !important | display: table-row !important; | ||
} | } | ||
.pi-data-label { | .pi-data-label { | ||
display: table-cell !important; | display: table-cell !important; | ||
width: 40% !important; | width: 40% !important; | ||
background-color: | background-color: #f2f2f2 !important; | ||
padding: 8px !important; | padding: 8px !important; | ||
font- | font-weight: bold !important; | ||
border-right: 1px solid #ddd; | border-right: 1px solid #ddd; | ||
border-bottom: 1px solid #ddd; | |||
} | } | ||
.pi-data-value { | .pi-data-value { | ||
display: table-cell !important; | display: table-cell !important; | ||
padding: 8px !important; | padding: 8px !important; | ||
border-bottom: 1px solid #ddd; | |||
} | } | ||
/* | /* 3. DESKTOP CARD LAYOUT */ | ||
@media screen and (min-width: 1024px) { | |||
#cosmos-content { | |||
width: 1200px !important; | |||
margin: 40px auto !important; | |||
display: block !important; | |||
} | |||
#cosmos-content-main { | |||
width: 860px !important; | |||
float: left !important; | |||
background: #ffffff !important; | |||
padding: 40px !important; | |||
box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important; | |||
} | |||
#cosmos-right-rail { | |||
width: 310px !important; | |||
float: right !important; | |||
} | |||
} | } | ||
/* | /* 4. HEADER */ | ||
#cosmos-header, .header-container { | #cosmos-header, .header-container { | ||
background-color: var(--kh-green) !important; | background-color: var(--kh-green) !important; | ||
border-bottom: 3px solid var(--kh-yellow) !important; | border-bottom: 3px solid var(--kh-yellow) !important; | ||
} | } | ||
Revision as of 01:39, 17 March 2026
/* Version 10.0 - Miraheze Style (Desktop & Infobox Logic) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap');
:root {
--kh-green: #3e5a47 !important;
--kh-yellow: #ffd700 !important;
--kh-dark-text: #2d4234 !important;
--kh-light-bg: #f9fdfa !important;
}
/* 1. GLOBAL STYLE */
body, html {
font-family: 'Crimson Pro', serif !important;
background-color: var(--kh-light-bg) !important;
}
h1, h2, h3, .mw-headline {
color: var(--kh-green) !important;
font-family: 'Cinzel', serif !important;
}
h2::before, h3::before { content: "\1F343\0020" !important; }
/* 2. PORTABLE INFOBOXES (Miraheze Alignment Fix) */
.portable-infobox {
background-color: #fff !important;
border: 2px solid var(--kh-green) !important;
width: 300px !important;
float: right !important;
margin: 0 0 1em 1em !important;
border-collapse: collapse !important;
display: table !important;
}
.portable-infobox .pi-title {
background-color: var(--kh-yellow) !important;
color: var(--kh-dark-text) !important;
font-family: 'Cinzel', serif !important;
padding: 10px !important;
text-align: center !important;
}
.portable-infobox .pi-header {
background-color: var(--kh-green) !important;
color: #ffffff !important;
font-family: 'Cinzel', serif !important;
}
.pi-item.pi-data {
display: table-row !important;
}
.pi-data-label {
display: table-cell !important;
width: 40% !important;
background-color: #f2f2f2 !important;
padding: 8px !important;
font-weight: bold !important;
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
}
.pi-data-value {
display: table-cell !important;
padding: 8px !important;
border-bottom: 1px solid #ddd;
}
/* 3. DESKTOP CARD LAYOUT */
@media screen and (min-width: 1024px) {
#cosmos-content {
width: 1200px !important;
margin: 40px auto !important;
display: block !important;
}
#cosmos-content-main {
width: 860px !important;
float: left !important;
background: #ffffff !important;
padding: 40px !important;
box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}
#cosmos-right-rail {
width: 310px !important;
float: right !important;
}
}
/* 4. HEADER */
#cosmos-header, .header-container {
background-color: var(--kh-green) !important;
border-bottom: 3px solid var(--kh-yellow) !important;
}