MediaWiki:Common.css: Difference between revisions

From Lenn's Fun Stuff

No edit summary
No edit summary
Line 1: Line 1:
/* Version 24.0 - Total Miraheze & Kingdom Hearts Style Alignment
/* Version 25.0 - Exact Miraheze Mirror
   Combines Infobox fixes with Miraheze UI styles
   Targeting Typography, Infoboxes, and Mobile Responsiveness
*/
*/


Line 8: Line 8:
     --kh-green: #3e5a47;
     --kh-green: #3e5a47;
     --kh-yellow: #ffd700;
     --kh-yellow: #ffd700;
     --miraheze-bg: #f9fdfa;
     --miraheze-white: #ffffff;
    --miraheze-border: #dcdcdc;
}
}


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


/* Main Content Area (The "White Box" look) */
#content, .mw-body {
.mw-body, #content {
     background-color: var(--miraheze-white) !important;
     background-color: rgba(255, 255, 255, 0.98) !important;
     border: 1px solid var(--miraheze-border) !important;
     border: 1px solid #dcdcdc !important;
    border-radius: 4px !important;
     padding: 1.5em !important;
     padding: 1.5em !important;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
     margin: 10px auto !important;
    max-width: 1200px;
    box-sizing: border-box;
}
}


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


/* --- 2. PORTABLE INFOBOX ALIGNMENT --- */
/* --- PORTABLE INFOBOX: DESKTOP --- */
.portable-infobox {
.portable-infobox {
     background-color: #fff !important;
     background-color: #fff !important;
     border: 2px solid var(--kh-green) !important;
     border: 1px solid var(--miraheze-border) !important;
     width: 300px !important;
     width: 300px !important;
     float: right !important;
     float: right !important;
    clear: right !important;
    margin: 0 0 1em 1em !important;
     display: flex !important;
     display: flex !important;
     flex-direction: column !important;
     flex-direction: column !important;
     margin-left: 1em !important;
     font-size: 0.9em !important;
    margin-bottom: 1em !important;
}
 
/* Stretch Titles/Headers */
.portable-infobox .pi-title,
.portable-infobox .pi-header {
    width: 100% !important;
    text-align: center !important;
    font-family: 'Cinzel', serif !important;
}
}


Line 56: Line 53:
     background-color: var(--kh-yellow) !important;
     background-color: var(--kh-yellow) !important;
     color: #2d4234 !important;
     color: #2d4234 !important;
    font-family: 'Cinzel', serif !important;
    font-weight: bold !important;
     padding: 10px !important;
     padding: 10px !important;
    text-align: center !important;
    text-transform: uppercase !important;
}
}


Line 62: Line 63:
     background-color: var(--kh-green) !important;
     background-color: var(--kh-green) !important;
     color: #fff !important;
     color: #fff !important;
     padding: 6px !important;
    font-family: 'Cinzel', serif !important;
     padding: 5px !important;
    text-align: center !important;
}
}


/* Label/Data Alignment */
.pi-item.pi-data {
.pi-item.pi-data {
     display: flex !important;
     display: flex !important;
     border-bottom: 1px solid #ddd !important;
     border-bottom: 1px solid #f0f0f0 !important;
}
}


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


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


/* --- 3. COSMOS SKIN SIDEBAR TWEAKS --- */
/* --- MOBILE RESPONSIVENESS (The Miraheze Mobile Look) --- */
.cosmos-sidebar {
@media screen and (max-width: 768px) {
     font-family: 'Crimson Pro', serif !important;
    #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;
    }


.cosmos-sidebar .sidebar-title {
    .pi-data-label {
    font-family: 'Cinzel', serif !important;
        background-color: #eee !important;
    color: var(--kh-yellow) !important;
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #ddd !important;
    }
}
}

Revision as of 03:50, 18 March 2026

/* 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;
    }
}