MediaWiki:Common.css: Difference between revisions
From Lenn's Fun Stuff
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
PORTABLE INFOBOX - | PORTABLE INFOBOX - KH LEAF THEME | ||
============================================================ */ | ============================================================ */ | ||
| 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; | ||
} | } | ||
/* 2 | /* 2. THE TITLE */ | ||
body.mediawiki .pi-title { | body.mediawiki .pi-title { | ||
background-color: #003366 !important; | background-color: #003366 !important; | ||
| Line 31: | Line 25: | ||
text-align: center !important; | text-align: center !important; | ||
padding: 10px !important; | padding: 10px !important; | ||
} | } | ||
/* | /* 3. SECTION HEADERS (Subtle Leaf Green Accent) */ | ||
body.mediawiki .pi-header { | body.mediawiki .pi-header { | ||
background-color: # | background-color: #3e5a47 !important; /* A deep Forest Green */ | ||
color: #ffffff !important; | color: #ffffff !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
| Line 44: | Line 37: | ||
font-size: 10px !important; | font-size: 10px !important; | ||
letter-spacing: 1.2px !important; | letter-spacing: 1.2px !important; | ||
border-top: 1px solid # | border-top: 1px solid #2d4234 !important; | ||
} | |||
/* 4. THE LEAF BULLETS (Lists inside Infobox) */ | |||
body.mediawiki .pi-data-value ul { | |||
list-style: none !important; /* Remove standard dots */ | |||
margin: 0 !important; | |||
padding-left: 5px !important; | |||
} | |||
body.mediawiki .pi-data-value li { | |||
padding-left: 20px !important; | |||
position: relative !important; | |||
font-size: 11px !important; | |||
line-height: 1.6 !important; | |||
} | |||
/* This creates the leaf bullet */ | |||
body.mediawiki .pi-data-value li::before { | |||
content: ""; | |||
position: absolute; | |||
left: 0; | |||
top: 4px; | |||
width: 12px; | |||
height: 12px; | |||
/* REPLACE THE URL BELOW WITH YOUR UPLOADED LEAF IMAGE URL */ | |||
background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/eb/Leaf_icon_15.svg') !important; | |||
background-size: contain !important; | |||
background-repeat: no-repeat !important; | |||
} | } | ||
/* 5. DATA ROW | /* 5. DATA ROW SETUP */ | ||
body.mediawiki .pi-data { | body.mediawiki .pi-data { | ||
display: flex !important; | display: flex !important; | ||
flex-direction: row !important; | flex-direction: row !important; | ||
align-items: stretch !important; | align-items: stretch !important; | ||
border-bottom: 1px solid #e0e0e0 !important; | border-bottom: 1px solid #e0e0e0 !important; | ||
} | } | ||
body.mediawiki .pi-data-label { | body.mediawiki .pi-data-label { | ||
background-color: #f2f2f2 !important; | background-color: #f2f2f2 !important; | ||
padding: 8px 12px !important; | padding: 8px 12px !important; | ||
font-size: 11px !important; | font-size: 11px !important; | ||
flex: 0 0 40% !important; | font-weight: bold !important; | ||
flex: 0 0 40% !important; | |||
border-right: 1px solid #dddddd !important; | border-right: 1px solid #dddddd !important; | ||
} | } | ||
body.mediawiki .pi-data-value { | body.mediawiki .pi-data-value { | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
padding: 8px 12px !important; | padding: 8px 12px !important; | ||
font-size: 11px !important; | font-size: 11px !important; | ||
flex: 1 | flex: 1 !important; | ||
} | } | ||
/* | /* 6. IMAGE AREA */ | ||
body.mediawiki .pi-image { | body.mediawiki .pi-image { | ||
text-align: center !important; | text-align: center !important; | ||
padding: 10px !important; | padding: 10px !important; | ||
background-color: #f8f9fa !important; | |||
border-bottom: 1px solid #dddddd !important; | border-bottom: 1px solid #dddddd !important; | ||
} | } | ||
Revision as of 01:22, 12 March 2026
/* ============================================================
PORTABLE INFOBOX - KH LEAF THEME
============================================================ */
/* 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;
}
/* 2. THE TITLE */
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;
}
/* 3. SECTION HEADERS (Subtle Leaf Green Accent) */
body.mediawiki .pi-header {
background-color: #3e5a47 !important; /* A deep Forest Green */
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;
}
/* 4. THE LEAF BULLETS (Lists inside Infobox) */
body.mediawiki .pi-data-value ul {
list-style: none !important; /* Remove standard dots */
margin: 0 !important;
padding-left: 5px !important;
}
body.mediawiki .pi-data-value li {
padding-left: 20px !important;
position: relative !important;
font-size: 11px !important;
line-height: 1.6 !important;
}
/* This creates the leaf bullet */
body.mediawiki .pi-data-value li::before {
content: "";
position: absolute;
left: 0;
top: 4px;
width: 12px;
height: 12px;
/* REPLACE THE URL BELOW WITH YOUR UPLOADED LEAF IMAGE URL */
background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/eb/Leaf_icon_15.svg') !important;
background-size: contain !important;
background-repeat: no-repeat !important;
}
/* 5. DATA ROW SETUP */
body.mediawiki .pi-data {
display: flex !important;
flex-direction: row !important;
align-items: stretch !important;
border-bottom: 1px solid #e0e0e0 !important;
}
body.mediawiki .pi-data-label {
background-color: #f2f2f2 !important;
padding: 8px 12px !important;
font-size: 11px !important;
font-weight: bold !important;
flex: 0 0 40% !important;
border-right: 1px solid #dddddd !important;
}
body.mediawiki .pi-data-value {
background-color: #ffffff !important;
padding: 8px 12px !important;
font-size: 11px !important;
flex: 1 !important;
}
/* 6. IMAGE AREA */
body.mediawiki .pi-image {
text-align: center !important;
padding: 10px !important;
background-color: #f8f9fa !important;
border-bottom: 1px solid #dddddd !important;
}