MediaWiki:Common.css: Difference between revisions
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 17.0 - Clean 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 15: | Line 15: | ||
} | } | ||
/* 2. PORTABLE INFOBOXES */ | /* 2. PORTABLE INFOBOXES (Miraheze Clone) */ | ||
.portable-infobox { | .portable-infobox { | ||
background | background: #fff !important; | ||
border: 2px solid var(--kh-green) !important; | border: 2px solid var(--kh-green) !important; | ||
width: 300px !important; | width: 300px !important; | ||
float: right !important; | float: right !important; | ||
margin: 0 0 1em 1em !important; | margin: 0 0 1em 1em !important; | ||
display: | 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-title, | ||
.portable-infobox .pi-header, | .portable-infobox .pi-header, | ||
.portable-infobox .pi-image | .portable-infobox .pi-image { | ||
display: table-caption !important; /* Force them to top */ | |||
width: 100% !important; | width: 100% !important; | ||
} | } | ||
| Line 43: | Line 40: | ||
padding: 10px !important; | padding: 10px !important; | ||
text-align: center !important; | text-align: center !important; | ||
caption-side: top !important; | |||
} | } | ||
| Line 51: | Line 49: | ||
padding: 6px !important; | padding: 6px !important; | ||
text-align: center !important; | text-align: center !important; | ||
display: table-row !important; | |||
} | } | ||
/* | /* Data Row Alignment */ | ||
.pi-item.pi-data { | .pi-item.pi-data { | ||
display: | display: table-row !important; | ||
} | } | ||
.pi-data-label { | .pi-data-label { | ||
display: table-cell !important; | |||
width: 40% !important; | |||
background-color: #f2f2f2 !important; | background-color: #f2f2f2 !important; | ||
padding: 8px !important; | padding: 8px !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
border-right: 1px solid #ddd; | border-right: 1px solid #ddd; | ||
border-bottom: 1px solid #ddd; | |||
} | } | ||
.pi-data-value { | .pi-data-value { | ||
display: table-cell !important; | |||
padding: 8px !important; | padding: 8px !important; | ||
border-bottom: 1px solid #ddd; | |||
} | } | ||