MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Version | /* Version 24.0 - Total Miraheze & Kingdom Hearts Style Alignment | ||
Combines Infobox fixes with Miraheze UI styles | |||
*/ | |||
@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 5: | Line 8: | ||
--kh-green: #3e5a47; | --kh-green: #3e5a47; | ||
--kh-yellow: #ffd700; | --kh-yellow: #ffd700; | ||
--miraheze-bg: #f9fdfa; | |||
} | |||
/* --- 1. GLOBAL PAGE STYLING --- */ | |||
body, html { | |||
font-family: 'Crimson Pro', serif !important; | |||
} | } | ||
/* | /* Main Content Area (The "White Box" look) */ | ||
.mw-body, #content { | |||
background-color: rgba(255, 255, 255, 0.98) !important; | |||
border: 1px solid #dcdcdc !important; | |||
border-radius: 4px !important; | |||
padding: 1.5em !important; | |||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important; | |||
} | |||
/* Headings (Miraheze/KH Serif Style) */ | |||
h1, h2, h3, .firstHeading { | |||
font-family: 'Cinzel', serif !important; | |||
color: var(--kh-green) !important; | |||
border-bottom: 2px solid var(--kh-green) !important; | |||
padding-bottom: 5px !important; | |||
} | |||
/* --- 2. PORTABLE INFOBOX ALIGNMENT --- */ | |||
.portable-infobox { | .portable-infobox { | ||
background-color: #fff !important; | background-color: #fff !important; | ||
| Line 15: | Line 41: | ||
display: flex !important; | display: flex !important; | ||
flex-direction: column !important; | flex-direction: column !important; | ||
margin-left: 1em !important; | |||
margin-bottom: 1em !important; | |||
} | } | ||
| Line 54: | Line 82: | ||
flex: 1 !important; | flex: 1 !important; | ||
padding: 8px !important; | padding: 8px !important; | ||
} | |||
/* --- 3. COSMOS SKIN SIDEBAR TWEAKS --- */ | |||
.cosmos-sidebar { | |||
font-family: 'Crimson Pro', serif !important; | |||
} | |||
.cosmos-sidebar .sidebar-title { | |||
font-family: 'Cinzel', serif !important; | |||
color: var(--kh-yellow) !important; | |||
} | } | ||
Revision as of 03:47, 18 March 2026
/* Version 24.0 - Total Miraheze & Kingdom Hearts Style Alignment
Combines Infobox fixes with Miraheze UI styles
*/
@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-bg: #f9fdfa;
}
/* --- 1. GLOBAL PAGE STYLING --- */
body, html {
font-family: 'Crimson Pro', serif !important;
}
/* Main Content Area (The "White Box" look) */
.mw-body, #content {
background-color: rgba(255, 255, 255, 0.98) !important;
border: 1px solid #dcdcdc !important;
border-radius: 4px !important;
padding: 1.5em !important;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}
/* Headings (Miraheze/KH Serif Style) */
h1, h2, h3, .firstHeading {
font-family: 'Cinzel', serif !important;
color: var(--kh-green) !important;
border-bottom: 2px solid var(--kh-green) !important;
padding-bottom: 5px !important;
}
/* --- 2. PORTABLE INFOBOX ALIGNMENT --- */
.portable-infobox {
background-color: #fff !important;
border: 2px solid var(--kh-green) !important;
width: 300px !important;
float: right !important;
display: flex !important;
flex-direction: column !important;
margin-left: 1em !important;
margin-bottom: 1em !important;
}
/* Stretch Titles/Headers */
.portable-infobox .pi-title,
.portable-infobox .pi-header {
width: 100% !important;
text-align: center !important;
font-family: 'Cinzel', serif !important;
}
.portable-infobox .pi-title {
background-color: var(--kh-yellow) !important;
color: #2d4234 !important;
padding: 10px !important;
}
.portable-infobox .pi-header {
background-color: var(--kh-green) !important;
color: #fff !important;
padding: 6px !important;
}
/* Label/Data Alignment */
.pi-item.pi-data {
display: flex !important;
border-bottom: 1px solid #ddd !important;
}
.pi-data-label {
flex: 0 0 40% !important;
background-color: #f2f2f2 !important;
font-weight: bold !important;
padding: 8px !important;
border-right: 1px solid #ddd !important;
}
.pi-data-value {
flex: 1 !important;
padding: 8px !important;
}
/* --- 3. COSMOS SKIN SIDEBAR TWEAKS --- */
.cosmos-sidebar {
font-family: 'Crimson Pro', serif !important;
}
.cosmos-sidebar .sidebar-title {
font-family: 'Cinzel', serif !important;
color: var(--kh-yellow) !important;
}