MediaWiki:Common.css
From Lenn's Fun Stuff
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Version 17.0 - Clean 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;
--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: #fff !important;
border: 2px solid var(--kh-green) !important;
width: 300px !important;
float: right !important;
margin: 0 0 1em 1em !important;
display: table !important; /* Switch back to table for better data alignment */
border-collapse: collapse !important;
}
/* Fix for squished titles/images - Force them to be their own rows */
.portable-infobox .pi-title,
.portable-infobox .pi-header,
.portable-infobox .pi-image {
display: table-caption !important; /* Force them to top */
width: 100% !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;
caption-side: top !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;
display: table-row !important;
}
/* Data Row Alignment */
.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;
}