MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
/* ============================================================
/* ============================================================
   KH LEAF THEME - FULL STRETCH & ALIGNMENT FIX
   KH LEAF THEME - THE "NO GAPS" VERSION
   ============================================================ */
   ============================================================ */


/* 1. MAIN INFOBOX CONTAINER */
/* 1. THE MAIN CONTAINER */
body.mediawiki .portable-infobox {
.portable-infobox {
     background-color: #ffffff !important;
     background-color: #ffffff !important;
     border: 2px solid #003366 !important;  
     border: 2px solid #003366 !important;  
Line 11: Line 11:
     margin: 0 0 1em 1em !important;
     margin: 0 0 1em 1em !important;
     font-family: "Georgia", serif !important;
     font-family: "Georgia", serif !important;
     box-shadow: 2px 2px 8px rgba(0,0,0,0.1) !important;
     overflow: hidden !important;
    padding: 0 !important; /* Removes the inner gap */
     box-sizing: border-box !important;
     box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 !important; /* CRITICAL: Removes the gap around headers */
}
}


/* Fixes the Shaded Title - Solid Blue, White Text, Full Stretch */
/* 2. THE TITLE (FORCED FULL WIDTH) */
body.mediawiki .pi-title {
.portable-infobox .pi-title {
     background-color: #003366 !important;  
     background-color: #003366 !important;  
     color: #ffffff !important;  
     color: #ffffff !important;
     text-align: center !important;
     text-align: center !important;
     padding: 12px 0 !important; /* Vertical padding only */
     padding: 12px 0 !important;
     font-size: 16px !important;
     font-size: 16px !important;
     display: block !important;
     display: block !important;
     width: 100% !important; /* Forces stretch */
     width: calc(100% + 4px) !important; /* Pulls it over the border slightly */
     margin: 0 !important;   /* Removes any offset */
     margin: -2px -2px 0 -2px !important; /* Aligns with the main border */
     box-sizing: border-box !important;
     box-sizing: border-box !important;
}
}


/* Fixes Section Headers - Solid Green, White Text, Full Stretch */
/* 3. SECTION HEADERS (FORCED FULL WIDTH) */
body.mediawiki .pi-header {
.portable-infobox .pi-header {
     background-color: #3e5a47 !important;  
     background-color: #3e5a47 !important;  
     color: #ffffff !important;  
     color: #ffffff !important;
     text-align: center !important;
     text-align: center !important;
     padding: 8px 0 !important;
     padding: 8px 0 !important;
     font-size: 11px !important;
     font-size: 11px !important;
     display: block !important;
     display: block !important;
     width: 100% !important; /* Forces stretch */
     width: calc(100% + 4px) !important;
     margin: 0 !important;   /* Removes any offset */
     margin: 0 -2px !important;
     box-sizing: border-box !important;
     box-sizing: border-box !important;
     text-transform: uppercase !important;
     text-transform: uppercase !important;
}
}


/* 2. IMAGE ALIGNMENT FIX (Centered) */
/* 4. IMAGE AREA (THE CENTER FIX) */
body.mediawiki .pi-image {
.portable-infobox .pi-image {
     display: flex !important;
     background-color: #f8f9fa !important;
    justify-content: center !important;
    align-items: center !important;
     padding: 15px !important;
     padding: 15px !important;
     background-color: #f8f9fa !important;
     text-align: center !important;
     width: 100% !important;
     display: block !important;
    box-sizing: border-box !important;
}
}


body.mediawiki .pi-image img {
.portable-infobox .pi-image img {
    margin: 0 auto !important;
    display: block !important;
     max-width: 100% !important;
     max-width: 100% !important;
     height: auto !important;
     height: auto !important;
    display: block !important;
}
}


/* 3. DATA ROWS (Labels & Values) */
/* 5. DATA ROWS & THE LEAVES */
body.mediawiki .pi-data {
.portable-infobox .pi-data {
     display: flex !important;
     display: flex !important;
    flex-direction: row !important;
     border-bottom: 1px solid #eee !important;
     border-bottom: 1px solid #eee !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
}


body.mediawiki .pi-data-label {
.portable-infobox .pi-data-label {
     background-color: #f2f2f2 !important;
     background-color: #f2f2f2 !important;
     padding: 10px !important;
     padding: 10px !important;
     flex: 0 0 40% !important;
     flex: 0 0 40% !important;
     border-right: 1px solid #dddddd !important;
     border-right: 1px solid #ddd !important;
     font-size: 11px !important;
     font-size: 11px !important;
     font-weight: bold !important;
     font-weight: bold !important;
    color: #333 !important;
}
}


body.mediawiki .pi-data-value {
.portable-infobox .pi-data-value {
     padding: 10px !important;
     padding: 10px !important;
     flex: 1 !important;
     flex: 1 !important;
     font-size: 11px !important;
     font-size: 11px !important;
    background-color: #ffffff !important;
}
}


/* 4. LEAF BULLETS FOR LISTS */
/* RE-ADDING THE LEAVES (The Fix) */
body.mediawiki .pi-data-value ul {  
/* This ensures the 🍃 emoji appears in lists inside the box */
.portable-infobox .pi-data-value ul {  
     list-style: none !important;  
     list-style: none !important;  
     margin: 0 !important;  
     margin: 0 !important;  
     padding: 0 !important;  
     padding: 0 !important;  
}
}
body.mediawiki .pi-data-value li::before {  
 
.portable-infobox .pi-data-value li::before {  
     content: "\1F343  " !important;  
     content: "\1F343  " !important;  
     font-size: 10px !important;  
     font-size: 10px !important;  
    display: inline-block !important;
}
/* 6. MAIN PAGE HEADERS (H2/H3) LEAVES */
.mw-parser-output h2::before {
    content: "\1F343  " !important;
    font-size: 20px !important;
}
.mw-parser-output h3::before {
    content: "\1F343  " !important;
    font-size: 16px !important;
}
}


/* 5. SEARCH BAR FIX (Stays Right) */
/* 7. SEARCH BAR (KEEPS IT RIGHT) */
#p-search, .vector-search-box, #searchform {
#p-search, .vector-search-box {
     float: right !important;
     float: right !important;
    margin-left: auto !important;
}
}