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 |
||
| Line 1: | Line 1: | ||
/* Version | /* Version 15.0 - Final Miraheze Fix */ | ||
@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 14: | Line 14: | ||
background-color: var(--kh-light-bg) !important; | background-color: var(--kh-light-bg) !important; | ||
} | } | ||
/* 2. PORTABLE INFOBOXES */ | /* 2. PORTABLE INFOBOXES (Miraheze Clone) */ | ||
.portable-infobox { | .portable-infobox { | ||
background-color: #fff !important; | background-color: #fff !important; | ||
| Line 27: | Line 22: | ||
float: right !important; | float: right !important; | ||
margin: 0 0 1em 1em !important; | margin: 0 0 1em 1em !important; | ||
display: block !important; | display: block !important; | ||
overflow: hidden !important; | |||
} | } | ||
/* | /* Fix for squished Titles/Headers/Images */ | ||
.portable-infobox .pi-title, | .portable-infobox .pi-title, | ||
.portable-infobox .pi-header, | .portable-infobox .pi-header, | ||
| Line 38: | Line 34: | ||
display: block !important; | display: block !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
float: none !important; | |||
} | } | ||
| Line 52: | Line 49: | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
padding: 6px !important; | |||
text-align: center !important; | text-align: center !important; | ||
} | } | ||
/* Data | /* Side-by-Side Data Fix */ | ||
.pi-item.pi-data { | .pi-item.pi-data { | ||
display: flex !important; | display: flex !important; | ||
| Line 78: | Line 75: | ||
padding: 8px !important; | padding: 8px !important; | ||
background-color: #fff !important; | background-color: #fff !important; | ||
} | } | ||
Revision as of 01:56, 17 March 2026
/* Version 15.0 - Final Miraheze Fix */
@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;
}
/* 2. PORTABLE INFOBOXES (Miraheze Clone) */
.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: block !important;
overflow: hidden !important;
}
/* Fix for squished Titles/Headers/Images */
.portable-infobox .pi-title,
.portable-infobox .pi-header,
.portable-infobox .pi-image,
.portable-infobox .pi-image img {
width: 100% !important;
display: block !important;
box-sizing: border-box !important;
float: none !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;
padding: 6px !important;
text-align: center !important;
}
/* Side-by-Side Data Fix */
.pi-item.pi-data {
display: flex !important;
flex-direction: row !important;
width: 100% !important;
border-bottom: 1px solid #ddd;
}
.pi-data-label {
flex: 0 0 40% !important;
background-color: #f2f2f2 !important;
padding: 8px !important;
font-weight: bold !important;
font-family: 'Cinzel', serif !important;
font-size: 0.85em !important;
border-right: 1px solid #ddd;
}
.pi-data-value {
flex: 1 !important;
padding: 8px !important;
background-color: #fff !important;
}