MediaWiki:Common.css

Revision as of 03:55, 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 27.0 - Hard Reset & Miraheze Precision
   Specifically fixing Reece McCartney and Featured World alignment
*/

@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;
    --miraheze-white: #ffffff;
}

/* --- 1. THE LAYOUT RESET --- */
/* This stops Cosmos from "squishing" your content */
.mw-body, #content {
    background-color: var(--miraheze-white) !important;
    border: 1px solid #dcdcdc !important;
    padding: 30px !important;
    margin: 20px auto !important;
    max-width: 1200px !important;
    display: block !important; /* Forces a standard block layout over Cosmos flex */
    overflow: visible !important;
}

/* Fixes the "Featured World" and lore box alignment */
.mw-parser-output {
    display: block !important;
    text-align: left !important;
}

/* --- 2. THE INFOBOX (EXACT MIRAHEZE SPECS) --- */
/* Matches the padding and border-collapse of source  */
.portable-infobox {
    background-color: #fff !important;
    border: 1px solid #a2a9b1 !important;
    width: 320px !important;
    float: right !important;
    margin: 0 0 1em 1em !important;
    border-collapse: collapse !important;
    font-family: 'Crimson Pro', serif !important;
}

.portable-infobox .pi-title {
    background-color: var(--kh-yellow) !important;
    color: #2d4234 !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
    padding: 12px !important;
    text-align: center !important;
    font-size: 1.3em !important;
    border-bottom: 1px solid #a2a9b1 !important;
}

.portable-infobox .pi-header {
    background-color: var(--kh-green) !important;
    color: #fff !important;
    font-family: 'Cinzel', serif !important;
    padding: 8px !important;
    text-align: center !important;
    font-weight: bold !important;
}

/* Data Table Alignment Fix */
.pi-item.pi-data {
    display: flex !important;
    width: 100% !important;
    border-bottom: 1px solid #f0f0f0 !important;
    margin: 0 !important;
}

.pi-data-label {
    flex: 0 0 40% !important;
    background-color: #f8f9fa !important;
    font-weight: 700 !important;
    padding: 10px !important;
    border-right: 1px solid #f0f0f0 !important;
    color: #202122 !important;
}

.pi-data-value {
    flex: 1 !important;
    padding: 10px !important;
    background-color: #fff !important;
}

/* --- 3. IMAGES & CAPTIONS --- */
.portable-infobox .pi-image {
    padding: 10px !important;
    text-align: center !important;
    background: #fff !important;
}

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

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

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

    .pi-item.pi-data {
        flex-direction: column !important;
    }

    .pi-data-label {
        width: 100% !important;
        border-right: none !important;
        background-color: #eee !important;
    }
}