MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
| Line 1: | Line 1: | ||
/* Version | /* Version 21.0 - Professional Miraheze Layout */ | ||
@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'); | ||
:root { | :root { | ||
--kh-green: #3e5a47 | --kh-green: #3e5a47; | ||
--kh-yellow: #ffd700 | --kh-yellow: #ffd700; | ||
} | } | ||
/* 1. GLOBAL | /* 1. GLOBAL FONTS */ | ||
body, html { | body, html { | ||
font-family: 'Crimson Pro', serif !important; | font-family: 'Crimson Pro', serif !important; | ||
| Line 13: | Line 13: | ||
} | } | ||
/* 2. PORTABLE INFOBOXES */ | /* 2. PORTABLE INFOBOXES (Miraheze Style) */ | ||
.portable-infobox { | .portable-infobox { | ||
background-color: #fff !important; | background-color: #fff !important; | ||
| Line 24: | Line 24: | ||
} | } | ||
/* | /* Full-width Headers and Images */ | ||
.portable-infobox .pi-title, | .portable-infobox .pi-title, | ||
.portable-infobox .pi-header, | .portable-infobox .pi-header, | ||
.portable-infobox .pi-image | .portable-infobox .pi-image { | ||
width: 100% !important; | width: 100% !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
} | } | ||
| Line 38: | Line 36: | ||
color: #2d4234 !important; | color: #2d4234 !important; | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
padding: | padding: 12px !important; | ||
text-align: center !important; | text-align: center !important; | ||
font-size: 1.2em !important; | |||
} | } | ||
| Line 46: | Line 45: | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
padding: | padding: 8px !important; | ||
text-align: center !important; | text-align: center !important; | ||
} | } | ||
/* | /* Data Rows: Label on Left (40%), Value on Right */ | ||
.pi-item.pi-data { | .pi-item.pi-data { | ||
display: flex !important; | display: flex !important; | ||
border-bottom: 1px solid #eeeeee; | |||
border-bottom: 1px solid # | |||
} | } | ||
.pi-data-label { | .pi-data-label { | ||
flex: 0 0 40% !important; | flex: 0 0 40% !important; | ||
background-color: # | background-color: #f5f5f5 !important; | ||
padding: | padding: 10px !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
border-right: 1px solid # | font-size: 0.9em !important; | ||
border-right: 1px solid #eeeeee; | |||
} | } | ||
.pi-data-value { | .pi-data-value { | ||
flex: 1 !important; | flex: 1 !important; | ||
padding: | padding: 10px !important; | ||
font-size: 0.95em !important; | |||
} | } | ||
Revision as of 02:23, 17 March 2026
/* Version 21.0 - Professional Miraheze Layout */
@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;
}
/* 1. GLOBAL FONTS */
body, html {
font-family: 'Crimson Pro', serif !important;
background-color: #f9fdfa !important;
}
/* 2. PORTABLE INFOBOXES (Miraheze Style) */
.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;
display: flex !important;
flex-direction: column !important;
}
/* Full-width Headers and Images */
.portable-infobox .pi-title,
.portable-infobox .pi-header,
.portable-infobox .pi-image {
width: 100% !important;
box-sizing: border-box !important;
}
.portable-infobox .pi-title {
background-color: var(--kh-yellow) !important;
color: #2d4234 !important;
font-family: 'Cinzel', serif !important;
padding: 12px !important;
text-align: center !important;
font-size: 1.2em !important;
}
.portable-infobox .pi-header {
background-color: var(--kh-green) !important;
color: #ffffff !important;
font-family: 'Cinzel', serif !important;
padding: 8px !important;
text-align: center !important;
}
/* Data Rows: Label on Left (40%), Value on Right */
.pi-item.pi-data {
display: flex !important;
border-bottom: 1px solid #eeeeee;
}
.pi-data-label {
flex: 0 0 40% !important;
background-color: #f5f5f5 !important;
padding: 10px !important;
font-weight: bold !important;
font-size: 0.9em !important;
border-right: 1px solid #eeeeee;
}
.pi-data-value {
flex: 1 !important;
padding: 10px !important;
font-size: 0.95em !important;
}