MediaWiki:Common.css

Revision as of 02:00, 12 March 2026 by LennLeaf (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ============================================================
   KH LEAF THEME - FULL STRETCH & ALIGNMENT FIX
   ============================================================ */

/* 1. MAIN INFOBOX CONTAINER */
body.mediawiki .portable-infobox {
    background-color: #ffffff !important;
    border: 2px solid #003366 !important; 
    width: 300px !important;
    float: right !important;
    margin: 0 0 1em 1em !important;
    font-family: "Georgia", serif !important;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1) !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 */
body.mediawiki .pi-title {
    background-color: #003366 !important; 
    color: #ffffff !important; 
    text-align: center !important;
    padding: 12px 0 !important; /* Vertical padding only */
    font-size: 16px !important;
    display: block !important;
    width: 100% !important; /* Forces stretch */
    margin: 0 !important;   /* Removes any offset */
    box-sizing: border-box !important;
}

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

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

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

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

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

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

/* 4. LEAF BULLETS FOR LISTS */
body.mediawiki .pi-data-value ul { 
    list-style: none !important; 
    margin: 0 !important; 
    padding: 0 !important; 
}
body.mediawiki .pi-data-value li::before { 
    content: "\1F343  " !important; 
    font-size: 10px !important; 
}

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