MediaWiki:Common.css

From Lenn's Fun Stuff

Revision as of 04:05, 18 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.
/* Version 30.0 - High-Fill Infobox Headers
   Fixes: Header/Title vertical height and full-space filling
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap');

:root {
    --kh-green: #3e5a47;
    --kh-yellow: #ffd700;
}

/* --- 1. THE MAIN PAGE CONTAINER --- */
body {
    font-family: 'Crimson Pro', serif !important;
}

#content, .mw-body {
    background-color: #ffffff !important;
    border: 1px solid #a2a9b1 !important;
    padding: 1.5em 2em !important;
    margin: 1em auto !important;
    max-width: 1100px !important;
    display: block !important;
}

/* --- 2. TABLE OF CONTENTS (TOC) --- */
#toc, .toc {
    background-color: #f8f9fa !important;
    border: 1px solid #a2a9b1 !important;
    padding: 8px !important;
    font-size: 90% !important;
    display: table !important;
}

/* --- 3. THE INFOBOX (FULL-HEADER FILL) --- */
.portable-infobox {
    background-color: #fff !important;
    border: 1px solid #a2a9b1 !important;
    width: 270px !important;
    float: right !important;
    margin: 0 0 1em 1.2em !important;
    padding: 0 !important;
    border-spacing: 0 !important;
    font-size: 0.88em !important;
}

/* Title Styling: Increased Height and Fill */
.portable-infobox .pi-title {
    background-color: var(--kh-yellow) !important;
    color: #000 !important;
    font-family: 'Cinzel', serif !important;
    font-weight: bold !important;
    padding: 15px 10px !important; /* Increased top/bottom padding */
    font-size: 1.25em !important;
    border-bottom: 1px solid #a2a9b1 !important;
    text-align: center !important;
    line-height: 1.2 !important; /* Ensures text sits centrally in the taller box */
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Header Styling: Increased Height and Fill */
.portable-infobox .pi-header {
    background-color: var(--kh-green) !important;
    color: #fff !important;
    font-family: 'Cinzel', serif !important;
    padding: 10px 5px !important; /* Increased vertical padding */
    text-align: center !important;
    font-weight: bold !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
}

/* Data Row Precision */
.pi-item.pi-data {
    display: table-row !important;
    width: 100% !important;
}

.pi-data-label {
    display: table-cell !important;
    width: 40% !important;
    background-color: #f2f2f2 !important;
    font-weight: bold !important;
    padding: 6px 8px !important;
    border-bottom: 1px solid #a2a9b1 !important;
    border-right: 1px solid #a2a9b1 !important;
    vertical-align: middle !important;
}

.pi-data-value {
    display: table-cell !important;
    padding: 6px 8px !important;
    border-bottom: 1px solid #a2a9b1 !important;
    vertical-align: middle !important;
    background-color: #ffffff !important;
}

/* --- 4. MOBILE MIRROR --- */
@media screen and (max-width: 768px) {
    #content, .mw-body {
        padding: 1em !important;
        margin: 0 !important;
    }

    .portable-infobox {
        float: none !important;
        width: 100% !important;
        margin: 1em 0 !important;
        display: table !important;
    }
}