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 19.0 - Flex-Stable Miraheze Build */ | ||
@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 6: | Line 6: | ||
--kh-yellow: #ffd700 !important; | --kh-yellow: #ffd700 !important; | ||
--kh-dark-text: #2d4234 !important; | --kh-dark-text: #2d4234 !important; | ||
} | } | ||
| Line 12: | Line 11: | ||
body, html { | body, html { | ||
font-family: 'Crimson Pro', serif !important; | font-family: 'Crimson Pro', serif !important; | ||
background-color: | background-color: #f9fdfa !important; | ||
} | } | ||
/* 2. PORTABLE INFOBOXES | /* 2. PORTABLE INFOBOXES */ | ||
.portable-infobox { | .portable-infobox { | ||
background-color: #fff !important; | background-color: #fff !important; | ||
| Line 28: | Line 22: | ||
margin: 0 0 1em 1em !important; | margin: 0 0 1em 1em !important; | ||
display: flex !important; | display: flex !important; | ||
flex-direction: column !important; | flex-direction: column !important; /* Stack top elements vertically */ | ||
} | } | ||
/* Force Title, Header, and Image to | /* Force Title, Header, and Image to be Full Width */ | ||
.portable-infobox .pi-title, | .portable-infobox .pi-title, | ||
.portable-infobox .pi-header, | .portable-infobox .pi-header, | ||
| Line 39: | Line 33: | ||
display: block !important; | display: block !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
} | } | ||
| Line 55: | Line 48: | ||
font-family: 'Cinzel', serif !important; | font-family: 'Cinzel', serif !important; | ||
padding: 6px !important; | padding: 6px !important; | ||
text-align: center !important; | |||
} | } | ||
/* | /* Data Row Logic */ | ||
.pi-item.pi-data { | .pi-item.pi-data { | ||
display: flex !important; | display: flex !important; | ||
| Line 70: | Line 64: | ||
padding: 8px !important; | padding: 8px !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
border-right: 1px solid #ddd; | border-right: 1px solid #ddd; | ||
} | } | ||
Revision as of 02:12, 17 March 2026
/* Version 19.0 - Flex-Stable Miraheze Build */
@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;
}
/* 1. GLOBAL STYLE */
body, html {
font-family: 'Crimson Pro', serif !important;
background-color: #f9fdfa !important;
}
/* 2. PORTABLE INFOBOXES */
.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; /* Stack top elements vertically */
}
/* Force Title, Header, and Image to be Full Width */
.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;
}
.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;
}
/* Data Row Logic */
.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;
border-right: 1px solid #ddd;
}
.pi-data-value {
flex: 1 !important;
padding: 8px !important;
}