MediaWiki:Common.css

Revision as of 01:08, 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.
/* ============================================================
   PORTABLE INFOBOX - THE ULTIMATE KH STYLE
   ============================================================ */

/* 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 !important;
    transition: box-shadow 0.3s ease-in-out !important; /* Smooth glow transition */
}

/* 2. HOVER EFFECT (KH Blue Glow) */
body.mediawiki .portable-infobox:hover {
    box-shadow: 0 0 15px rgba(51, 153, 255, 0.5) !important;
}

/* 3. THE TITLE (Compact) */
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;
    display: block !important;
}

/* 4. SECTION HEADERS (Compact) */
body.mediawiki .pi-header {
    background-color: #4a4a4a !important;
    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 #333 !important;
    display: block !important;
}

/* 5. DATA ROW (Flexbox Alignment) */
body.mediawiki .pi-data {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    border-bottom: 1px solid #e0e0e0 !important;
    width: 100% !important;
}

/* 6. DATA LABELS (Left Side - Spaced) */
body.mediawiki .pi-data-label {
    background-color: #f2f2f2 !important;
    color: #333333 !important;
    font-weight: bold !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    flex: 0 0 40% !important; /* 40% width */
    border-right: 1px solid #dddddd !important;
    display: flex !important;
    align-items: center !important;
}

/* 7. DATA VALUES (Right Side - Spaced) */
body.mediawiki .pi-data-value {
    background-color: #ffffff !important;
    color: #333333 !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    flex: 1 !important; /* Remaining 60% */
    display: flex !important;
    align-items: center !important;
    word-break: break-word !important;
}

/* 8. IMAGE AREA */
body.mediawiki .pi-image {
    display: block !important;
    background-color: #f8f9fa !important; 
    text-align: center !important;
    padding: 10px !important;
    border-bottom: 1px solid #dddddd !important;
}

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

/* 9. LISTS INSIDE INFOBOX */
body.mediawiki .pi-data-value ul {
    margin: 0 !important;
    padding-left: 1.2em !important;
    font-size: 11px !important;
}