MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
PORTABLE INFOBOX - KH LEAF THEME | PORTABLE INFOBOX - KH LEAF THEME (EMOJI EDITION) | ||
============================================================ */ | ============================================================ */ | ||
| Line 14: | Line 14: | ||
box-shadow: 2px 2px 8px rgba(0,0,0,0.15) !important; | box-shadow: 2px 2px 8px rgba(0,0,0,0.15) !important; | ||
font-family: "Georgia", serif !important; | font-family: "Georgia", serif !important; | ||
overflow: hidden; | overflow: hidden !important; | ||
} | } | ||
/* 2. THE TITLE */ | /* 2. THE TITLE (KH Blue) */ | ||
body.mediawiki .pi-title { | body.mediawiki .pi-title { | ||
background-color: #003366 !important; | background-color: #003366 !important; | ||
| Line 25: | Line 25: | ||
text-align: center !important; | text-align: center !important; | ||
padding: 10px !important; | padding: 10px !important; | ||
display: block !important; | |||
} | } | ||
/* 3. SECTION HEADERS ( | /* 3. SECTION HEADERS (Forest Green Accent) */ | ||
body.mediawiki .pi-header { | body.mediawiki .pi-header { | ||
background-color: #3e5a47 !important; | background-color: #3e5a47 !important; | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
| Line 38: | Line 39: | ||
letter-spacing: 1.2px !important; | letter-spacing: 1.2px !important; | ||
border-top: 1px solid #2d4234 !important; | border-top: 1px solid #2d4234 !important; | ||
display: block !important; | |||
} | } | ||
/* 4. | /* 4. LEAF BULLETS FOR LISTS */ | ||
/* This removes the default black dots and adds the Leaf emoji */ | |||
body.mediawiki .pi-data-value ul { | body.mediawiki .pi-data-value ul { | ||
list-style: none !important; | list-style: none !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
padding-left: | padding-left: 0 !important; | ||
} | } | ||
body.mediawiki .pi-data-value li { | body.mediawiki .pi-data-value li { | ||
padding-left: | padding-left: 1.5em !important; | ||
position: relative !important; | position: relative !important; | ||
font-size: 11px !important; | font-size: 11px !important; | ||
| Line 54: | Line 57: | ||
} | } | ||
body.mediawiki .pi-data-value li::before { | body.mediawiki .pi-data-value li::before { | ||
content: ""; | content: "🍃" !important; | ||
position: absolute; | position: absolute !important; | ||
left: 0 | left: 0 !important; | ||
font-size: 10px !important; /* Adjust size of leaf */ | |||
top: 0 !important; | |||
} | } | ||
/* 5. DATA ROW SETUP */ | /* 5. DATA ROW SETUP (Same-line Alignment) */ | ||
body.mediawiki .pi-data { | body.mediawiki .pi-data { | ||
display: flex !important; | display: flex !important; | ||
flex-direction: row !important; | flex-direction: row !important; | ||
flex-wrap: nowrap !important; | |||
align-items: stretch !important; | align-items: stretch !important; | ||
border-bottom: 1px solid #e0e0e0 !important; | border-bottom: 1px solid #e0e0e0 !important; | ||
| Line 78: | Line 76: | ||
body.mediawiki .pi-data-label { | body.mediawiki .pi-data-label { | ||
background-color: #f2f2f2 !important; | background-color: #f2f2f2 !important; | ||
color: #333333 !important; | |||
font-weight: bold !important; | |||
padding: 8px 12px !important; | padding: 8px 12px !important; | ||
font-size: 11px !important; | font-size: 11px !important; | ||
flex: 0 0 40% !important; | flex: 0 0 40% !important; | ||
border-right: 1px solid #dddddd !important; | border-right: 1px solid #dddddd !important; | ||
display: flex !important; | |||
align-items: center !important; | |||
} | } | ||
body.mediawiki .pi-data-value { | body.mediawiki .pi-data-value { | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
color: #333333 !important; | |||
padding: 8px 12px !important; | padding: 8px 12px !important; | ||
font-size: 11px !important; | font-size: 11px !important; | ||
flex: 1 !important; | flex: 1 !important; | ||
display: flex !important; | |||
align-items: center !important; | |||
} | } | ||
/* 6. IMAGE AREA */ | /* 6. IMAGE AREA */ | ||
body.mediawiki .pi-image { | body.mediawiki .pi-image { | ||
display: block !important; | |||
background-color: #f8f9fa !important; | |||
text-align: center !important; | text-align: center !important; | ||
padding: 10px !important; | padding: 10px !important; | ||
border-bottom: 1px solid #dddddd !important; | border-bottom: 1px solid #dddddd !important; | ||
} | |||
body.mediawiki .pi-image img { | |||
max-width: 100% !important; | |||
height: auto !important; | |||
} | } | ||
Revision as of 01:24, 12 March 2026
/* ============================================================
PORTABLE INFOBOX - KH LEAF THEME (EMOJI EDITION)
============================================================ */
/* 1. MAIN CONTAINER */
body.mediawiki .portable-infobox {
background-color: #ffffff !important;
border: 2px solid #003366 !important;
width: 300px !important;
float: right !important;
clear: right !important;
margin: 0 0 1em 1em !important;
padding: 0 !important;
box-shadow: 2px 2px 8px rgba(0,0,0,0.15) !important;
font-family: "Georgia", serif !important;
overflow: hidden !important;
}
/* 2. THE TITLE (KH Blue) */
body.mediawiki .pi-title {
background-color: #003366 !important;
color: #ffffff !important;
font-size: 16px !important;
font-weight: bold !important;
text-align: center !important;
padding: 10px !important;
display: block !important;
}
/* 3. SECTION HEADERS (Forest Green Accent) */
body.mediawiki .pi-header {
background-color: #3e5a47 !important;
color: #ffffff !important;
font-weight: bold !important;
text-align: center !important;
padding: 6px 0 !important;
text-transform: uppercase !important;
font-size: 10px !important;
letter-spacing: 1.2px !important;
border-top: 1px solid #2d4234 !important;
display: block !important;
}
/* 4. LEAF BULLETS FOR LISTS */
/* This removes the default black dots and adds the Leaf emoji */
body.mediawiki .pi-data-value ul {
list-style: none !important;
margin: 0 !important;
padding-left: 0 !important;
}
body.mediawiki .pi-data-value li {
padding-left: 1.5em !important;
position: relative !important;
font-size: 11px !important;
line-height: 1.6 !important;
}
body.mediawiki .pi-data-value li::before {
content: "🍃" !important;
position: absolute !important;
left: 0 !important;
font-size: 10px !important; /* Adjust size of leaf */
top: 0 !important;
}
/* 5. DATA ROW SETUP (Same-line Alignment) */
body.mediawiki .pi-data {
display: flex !important;
flex-direction: row !important;
flex-wrap: nowrap !important;
align-items: stretch !important;
border-bottom: 1px solid #e0e0e0 !important;
}
body.mediawiki .pi-data-label {
background-color: #f2f2f2 !important;
color: #333333 !important;
font-weight: bold !important;
padding: 8px 12px !important;
font-size: 11px !important;
flex: 0 0 40% !important;
border-right: 1px solid #dddddd !important;
display: flex !important;
align-items: center !important;
}
body.mediawiki .pi-data-value {
background-color: #ffffff !important;
color: #333333 !important;
padding: 8px 12px !important;
font-size: 11px !important;
flex: 1 !important;
display: flex !important;
align-items: center !important;
}
/* 6. IMAGE AREA */
body.mediawiki .pi-image {
display: block !important;
background-color: #f8f9fa !important;
text-align: center !important;
padding: 10px !important;
border-bottom: 1px solid #dddddd !important;
}
body.mediawiki .pi-image img {
max-width: 100% !important;
height: auto !important;
}