MediaWiki:Common.css

Revision as of 01:40, 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 - INFOBOX & UI COMPLIANCE
   ============================================================ */

/* 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;
    display: block !important; /* Ensures it doesn't act like a flex item */
}

/* Fixes the Shaded Title - Ensures solid Blue */
body.mediawiki .pi-title {
    background-color: #003366 !important; 
    color: #ffffff !important;
    text-align: center !important;
    padding: 10px !important;
    font-size: 16px !important;
    display: block !important; /* Fixes alignment/shading */
    border: none !important;
}

/* Fixes Section Headers - Centered & Solid Green */
body.mediawiki .pi-header {
    background-color: #3e5a47 !important; 
    color: #ffffff !important;
    text-align: center !important;
    padding: 6px 0 !important;
    font-size: 11px !important;
    display: block !important;
    border: none !important;
}

/* 2. IMAGE ALIGNMENT FIX */
body.mediawiki .pi-image {
    display: block !important;
    text-align: center !important;
    padding: 10px !important;
    background-color: #f8f9fa !important;
    margin: 0 auto !important;
}

body.mediawiki .pi-image img {
    max-width: 100% !important;
    height: auto !important;
    display: inline-block !important; /* Keeps it centered in the box */
}

/* 3. DATA ROWS (Labels & Values) */
body.mediawiki .pi-data {
    display: flex !important;
    flex-direction: row !important;
    border-bottom: 1px solid #eee !important;
    text-align: left !important; /* Ensures text doesn't inherit center-align */
}

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

body.mediawiki .pi-data-value {
    padding: 8px !important;
    flex: 1 !important;
    font-size: 11px !important;
}

/* 4. LEAF BULLETS (Lists only) */
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. PAGE HEADERS (SCOPED - FIXES OVERLAP) */
.mw-parser-output h2, .mw-parser-output h3 {
    border-bottom: 2px solid #3e5a47 !important;
    color: #003366 !important;
    padding-bottom: 5px !important;
    margin-top: 1.5em !important;
    clear: none !important; /* Allows it to sit next to the infobox */
}

.mw-parser-output h2::before { content: "\1F343  " !important; font-size: 20px !important; }

/* 6. SEARCH BAR (STAYS RIGHT) */
#p-search, .vector-search-box, #searchform {
    float: right !important;
    margin-left: auto !important;
}