MediaWiki:Common.css

From Lenn's Fun Stuff

Revision as of 03:50, 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 25.0 - Exact Miraheze Mirror 
   Targeting Typography, Infoboxes, and Mobile Responsiveness
*/

@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;
    --miraheze-border: #dcdcdc;
}

/* --- GLOBAL BODY & CONTENT --- */
body {
    font-family: 'Crimson Pro', serif !important;
    background-color: #1a1a1a !important; /* Dark background behind the content box */
    margin: 0;
    padding: 0;
}

#content, .mw-body {
    background-color: var(--miraheze-white) !important;
    border: 1px solid var(--miraheze-border) !important;
    padding: 1.5em !important;
    margin: 10px auto !important;
    max-width: 1200px;
    box-sizing: border-box;
}

/* --- HEADINGS --- */
h1, h2, h3, .firstHeading {
    font-family: 'Cinzel', serif !important;
    color: var(--kh-green) !important;
    border-bottom: 2px solid var(--kh-green) !important;
    font-weight: 700 !important;
}

/* --- PORTABLE INFOBOX: DESKTOP --- */
.portable-infobox {
    background-color: #fff !important;
    border: 1px solid var(--miraheze-border) !important;
    width: 300px !important;
    float: right !important;
    clear: right !important;
    margin: 0 0 1em 1em !important;
    display: flex !important;
    flex-direction: column !important;
    font-size: 0.9em !important;
}

.portable-infobox .pi-title {
    background-color: var(--kh-yellow) !important;
    color: #2d4234 !important;
    font-family: 'Cinzel', serif !important;
    font-weight: bold !important;
    padding: 10px !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

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

.pi-item.pi-data {
    display: flex !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.pi-data-label {
    flex: 0 0 35% !important;
    background-color: #f8f9fa !important;
    font-weight: bold !important;
    padding: 6px !important;
    border-right: 1px solid #f0f0f0 !important;
}

.pi-data-value {
    flex: 1 !important;
    padding: 6px !important;
}

/* --- MOBILE RESPONSIVENESS (The Miraheze Mobile Look) --- */
@media screen and (max-width: 768px) {
    #content, .mw-body {
        margin: 0 !important;
        border: none !important;
        padding: 10px !important;
        width: 100% !important;
    }

    .portable-infobox {
        float: none !important;
        width: 100% !important;
        margin: 10px 0 !important;
        display: block !important;
    }

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

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