MediaWiki:Common.css

Revision as of 02:03, 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 - COMPLETED VERSION
   ============================================================ */

/* 1. THE MAIN CONTAINER */
.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;
    overflow: hidden !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.1) !important;
}

/* 2. THE TITLE (Solid Blue, Full Width) */
.portable-infobox .pi-title {
    background-color: #003366 !important; 
    color: #ffffff !important;
    text-align: center !important;
    padding: 12px 0 !important;
    font-size: 16px !important;
    display: block !important;
    width: calc(100% + 4px) !important;
    margin: -2px -2px 0 -2px !important;
    box-sizing: border-box !important;
}

/* 3. SECTION HEADERS (Solid Green, White Text) */
.portable-infobox .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: calc(100% + 4px) !important;
    margin: 0 -2px !important;
    box-sizing: border-box !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* 4. IMAGE AREA (Centered with Soft Green Tint) */
.portable-infobox .pi-image {
    background-color: #f2f7f4 !important; /* Soft leafy-green tint */
    padding: 15px !important;
    text-align: center !important;
    display: block !important;
    border-bottom: 1px solid #d4e0d8 !important;
}

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

/* 5. DATA ROWS & LEAF BULLETS */
.portable-infobox .pi-data {
    display: flex !important;
    border-bottom: 1px solid #eee !important;
}

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

.portable-infobox .pi-data-value {
    padding: 10px !important;
    flex: 1 !important;
    font-size: 11px !important;
}

/* Leaf Bullets 🍃 */
.portable-infobox .pi-data-value ul { 
    list-style: none !important; 
    margin: 0 !important; 
    padding: 0 !important; 
}

.portable-infobox .pi-data-value li::before { 
    content: "\1F343  " !important; 
    font-size: 10px !important; 
    display: inline-block !important;
}

/* 6. PAGE HEADERS (H2/H3) LEAF DECORATION */
.mw-parser-output h2, .mw-parser-output h3 {
    border-bottom: 2px solid #3e5a47 !important;
    color: #003366 !important;
    padding-bottom: 5px !important;
}

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

/* 7. UI FIXES */
#p-search, .vector-search-box {
    float: right !important;
}