MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Version 32.0 - Dual-Skin (Anisa | /* Version 32.0 - Dual-Skin Miraheze Sync (Anisa + Cosmos) | ||
Fixes: Small text in Anisa, layout clashing, and unified Infoboxes | Fixes: Small text in Anisa, layout clashing, and unified Infoboxes | ||
*/ | */ | ||
| Line 8: | Line 8: | ||
--kh-green: #3e5a47; | --kh-green: #3e5a47; | ||
--kh-yellow: #ffd700; | --kh-yellow: #ffd700; | ||
} | } | ||
/* --- | /* --- GLOBAL TYPOGRAPHY --- */ | ||
body { | body { | ||
font-family: 'Crimson Pro', serif !important; | font-family: 'Crimson Pro', serif !important; | ||
line-height: 1.6 !important; | |||
} | } | ||
/* | /* --- ANISA (DESKTOP) SPECIFIC FIXES --- */ | ||
.skin-anisa # | .skin-anisa #content, | ||
.skin-anisa .mw- | .skin-anisa .mw-body { | ||
font-size: 1.1em !important; /* | font-size: 1.1em !important; /* Fixes the "small text" issue */ | ||
max-width: 1200px !important; | |||
margin: 20px auto !important; | |||
border: 1px solid #a2a9b1 !important; | |||
padding: 2.5em !important; | |||
} | } | ||
/* | /* --- COSMOS (MOBILE) SPECIFIC FIXES --- */ | ||
#content, .mw-body | .skin-cosmos #content, | ||
.skin-cosmos .mw-body { | |||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
padding: 1em !important; | |||
padding: | margin: 0 !important; | ||
margin: | |||
} | } | ||
/* --- | /* --- UNIFIED PORTABLE INFOBOX (Works for both) --- */ | ||
.portable-infobox { | .portable-infobox { | ||
background-color: #fff !important; | background-color: #fff !important; | ||
border: 1px solid | border: 1px solid #a2a9b1 !important; | ||
width: 280px !important; | width: 280px !important; | ||
float: right !important; | float: right !important; | ||
margin: 0 0 1em 1. | margin: 0 0 1em 1.5em !important; | ||
border-collapse: collapse !important; | border-collapse: collapse !important; | ||
border-spacing: 0 !important; | border-spacing: 0 !important; | ||
font-size: 0.9em !important; | |||
font- | |||
} | } | ||
| Line 68: | Line 49: | ||
background-color: var(--kh-yellow) !important; | background-color: var(--kh-yellow) !important; | ||
color: #000 !important; | color: #000 !important; | ||
font-family: 'Cinzel', serif !important; | |||
font-weight: bold !important; | |||
padding: 12px 10px !important; | padding: 12px 10px !important; | ||
font-size: 1.2em !important; | font-size: 1.2em !important; | ||
border-bottom: 1px solid | text-align: center !important; | ||
border-bottom: 1px solid #a2a9b1 !important; | |||
} | } | ||
| Line 76: | Line 60: | ||
background-color: var(--kh-green) !important; | background-color: var(--kh-green) !important; | ||
color: #fff !important; | color: #fff !important; | ||
font-family: 'Cinzel', serif !important; | |||
padding: 8px 5px !important; | padding: 8px 5px !important; | ||
text-align: center !important; | |||
} | } | ||
.pi-item.pi-data { | .pi-item.pi-data { | ||
display: table-row !important; | display: table-row !important; | ||
} | } | ||
.pi-data-label | .pi-data-label { | ||
display: table-cell !important; | display: table-cell !important; | ||
width: 40% !important; | width: 40% !important; | ||
background-color: #f2f2f2 !important; | background-color: #f2f2f2 !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
border-right: 1px solid | padding: 7px 10px !important; | ||
border-bottom: 1px solid #a2a9b1 !important; | |||
border-right: 1px solid #a2a9b1 !important; | |||
} | } | ||
/* --- | .pi-data-value { | ||
display: table-cell !important; | |||
padding: 7px 10px !important; | |||
border-bottom: 1px solid #a2a9b1 !important; | |||
background-color: #ffffff !important; | |||
} | |||
/* --- TABLE OF CONTENTS --- */ | |||
#toc, .toc { | |||
background-color: #f8f9fa !important; | |||
border: 1px solid #a2a9b1 !important; | |||
padding: 10px !important; | |||
display: table !important; | |||
} | |||
/* --- MOBILE RESPONSIVENESS --- */ | |||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
.portable-infobox { | .portable-infobox { | ||
float: none !important; | float: none !important; | ||
width: 100% !important; | width: 100% !important; | ||
margin: 1em 0 !important; | margin: 1em 0 !important; | ||
} | } | ||
} | } | ||
Revision as of 04:37, 18 March 2026
/* Version 32.0 - Dual-Skin Miraheze Sync (Anisa + Cosmos)
Fixes: Small text in Anisa, layout clashing, and unified Infoboxes
*/
@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;
}
/* --- GLOBAL TYPOGRAPHY --- */
body {
font-family: 'Crimson Pro', serif !important;
line-height: 1.6 !important;
}
/* --- ANISA (DESKTOP) SPECIFIC FIXES --- */
.skin-anisa #content,
.skin-anisa .mw-body {
font-size: 1.1em !important; /* Fixes the "small text" issue */
max-width: 1200px !important;
margin: 20px auto !important;
border: 1px solid #a2a9b1 !important;
padding: 2.5em !important;
}
/* --- COSMOS (MOBILE) SPECIFIC FIXES --- */
.skin-cosmos #content,
.skin-cosmos .mw-body {
background-color: #ffffff !important;
padding: 1em !important;
margin: 0 !important;
}
/* --- UNIFIED PORTABLE INFOBOX (Works for both) --- */
.portable-infobox {
background-color: #fff !important;
border: 1px solid #a2a9b1 !important;
width: 280px !important;
float: right !important;
margin: 0 0 1em 1.5em !important;
border-collapse: collapse !important;
border-spacing: 0 !important;
font-size: 0.9em !important;
}
.portable-infobox .pi-title {
background-color: var(--kh-yellow) !important;
color: #000 !important;
font-family: 'Cinzel', serif !important;
font-weight: bold !important;
padding: 12px 10px !important;
font-size: 1.2em !important;
text-align: center !important;
border-bottom: 1px solid #a2a9b1 !important;
}
.portable-infobox .pi-header {
background-color: var(--kh-green) !important;
color: #fff !important;
font-family: 'Cinzel', serif !important;
padding: 8px 5px !important;
text-align: center !important;
}
.pi-item.pi-data {
display: table-row !important;
}
.pi-data-label {
display: table-cell !important;
width: 40% !important;
background-color: #f2f2f2 !important;
font-weight: bold !important;
padding: 7px 10px !important;
border-bottom: 1px solid #a2a9b1 !important;
border-right: 1px solid #a2a9b1 !important;
}
.pi-data-value {
display: table-cell !important;
padding: 7px 10px !important;
border-bottom: 1px solid #a2a9b1 !important;
background-color: #ffffff !important;
}
/* --- TABLE OF CONTENTS --- */
#toc, .toc {
background-color: #f8f9fa !important;
border: 1px solid #a2a9b1 !important;
padding: 10px !important;
display: table !important;
}
/* --- MOBILE RESPONSIVENESS --- */
@media screen and (max-width: 768px) {
.portable-infobox {
float: none !important;
width: 100% !important;
margin: 1em 0 !important;
}
}