MediaWiki:Common.css: Difference between revisions

From Lenn's Fun Stuff

No edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Version 28.0 - Miraheze Exact Clone
/* Version 36.1 - Restored Anisa Factory Proportions
   Fixes: TOC Styling, Infobox Borders, and Reece McCartney Alignment
   Goal: Original Anisa layout + KH Colors/Fonts + Readable Tabs
*/
*/


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


:root {
/* --- 1. GLOBAL FONTS --- */
    --kh-green: #3e5a47;
body {
     --kh-yellow: #ffd700;
     font-family: 'Crimson Pro', serif !important;
}
}


/* --- 1. THE MAIN PAGE CONTAINER --- */
/* --- 2. ANISA (DESKTOP) RESTORATION --- */
body {
/* We remove the forced margins/paddings here to let Anisa look "Factory" */
     font-family: 'Crimson Pro', serif !important;
.skin-anisa #content,
.skin-anisa .mw-body {
     font-size: 16px !important;
    line-height: 1.6;
    /* We are NOT forcing margin-top or padding here anymore */
}
}


#content, .mw-body {
/* Scaling up the tiny Navigation Labels to a readable "Normal" size */
    background-color: #ffffff !important;
.skin-anisa .vector-menu-tabs li a,
    border: 1px solid #a2a9b1 !important; /* Specific Miraheze Gray */
.skin-anisa .vector-menu-dropdown .vector-menu-heading-label,
    padding: 1.5em 2.5em !important;
.skin-anisa #p-cactions .vector-menu-heading-label,
    margin: 1em auto !important;
.skin-anisa .vector-menu-tabs li a span {
     max-width: 1100px !important; /* Restricts width to match Miraheze layout */
     font-size: 16px !important; /* Readable, but fits the skin's design */
     line-height: 1.6 !important;
     font-weight: 400 !important;
     display: block !important;
     text-transform: none !important;
}
}


/* --- 2. TABLE OF CONTENTS (TOC) --- */
/* Restoring the natural spacing between "Read", "Edit", etc. */
/* Miraheze TOCs have a specific background and border */
.skin-anisa .vector-menu-tabs li {
#toc, .toc {
     margin-right: 5px !important;  
    background-color: #f8f9fa !important;
    border: 1px solid #a2a9b1 !important;
    padding: 10px !important;
    font-size: 95% !important;
    display: table !important; /* Ensures it only takes up needed space */
     margin-bottom: 1em !important;
}
}


.toctitle h2 {
/* --- 3. COSMOS (MOBILE) PRESERVATION --- */
    font-family: sans-serif !important; /* Miraheze TOC titles use sans-serif */
/* This section ensures our mobile view doesn't change */
    font-size: 100% !important;
.skin-cosmos #content {
     font-weight: bold !important;
     padding: 15px !important;
     border-bottom: none !important;
     font-size: 15px !important;
    text-align: center !important;
    color: #000 !important;
}
}


/* --- 3. THE INFOBOX (MIRAHEZE RECONSTRUCTION) --- */
/* --- 4. THE SEAMLESS INFOBOX (THE "LORE" FIX) --- */
/* This keeps your Kingdom Hearts style intact across BOTH skins */
.portable-infobox {
.portable-infobox {
     background-color: #fff !important;
     background-color: #fff !important;
     border: 1px solid #a2a9b1 !important;
     border: 1px solid #a2a9b1 !important;
     width: 320px !important;
     width: 270px !important;
     float: right !important;
     float: right !important;
     margin: 0 0 1em 1em !important;
     margin: 0 0 1em 1.2em !important;
     padding: 0 !important;
     border-collapse: collapse !important;
     border-spacing: 0 !important;
     border-spacing: 0 !important;
}
}


.portable-infobox .pi-title {
.portable-infobox .pi-title {
     background-color: var(--kh-yellow) !important;
     background-color: #ffd700 !important;
     color: #000 !important;
     color: #000 !important;
     font-family: 'Cinzel', serif !important;
     font-family: 'Cinzel', serif !important;
    font-weight: bold !important;
     padding: 15px 10px !important;
     padding: 10px !important;
     font-size: 1.25em !important;
     font-size: 1.25em !important;
    text-align: center !important;
     border-bottom: 1px solid #a2a9b1 !important;
     border-bottom: 1px solid #a2a9b1 !important;
    text-align: center !important;
}
}


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


/* Data Row Precision */
.pi-data-label {
.pi-item.pi-data {
    background-color: #f2f2f2 !important;
     display: table-row !important; /* Forces traditional alignment */
    padding: 8px !important;
     width: 100% !important;
    border: 1px solid #a2a9b1 !important;
    font-weight: bold !important;
}
 
.pi-data-value {  
     padding: 8px !important;  
     border-bottom: 1px solid #a2a9b1 !important;  
}
}


.pi-data-label {
/* --- 5. TABLE OF CONTENTS --- */
    display: table-cell !important;
#toc, .toc {
    width: 35% !important;
     background-color: #f8f9fa !important;
     background-color: #f2f2f2 !important;
     border: 1px solid #a2a9b1 !important;
    font-weight: bold !important;
     padding: 8px !important;
    padding: 7px 10px !important;
     border-bottom: 1px solid #a2a9b1 !important;
     border-right: 1px solid #a2a9b1 !important;
    vertical-align: top !important;
}
}


.pi-data-value {
/* Styling TabberNeue inside PortableInfobox */
     display: table-cell !important;
.pi-image .tabber__tabs {
     padding: 7px 10px !important;
     display: flex !important;
    justify-content: center !important;
     background: #f2f2f2 !important; /* Matches your label color */
     border-bottom: 1px solid #a2a9b1 !important;
     border-bottom: 1px solid #a2a9b1 !important;
     vertical-align: top !important;
     margin-bottom: 5px !important;
    background-color: #ffffff !important;
}
}


/* Remove bottom border from last item */
.pi-image .tabber__tab {
.pi-item.pi-data:last-child .pi-data-label,
    font-family: 'Crimson Pro', serif !important;
.pi-item.pi-data:last-child .pi-data-value {
    font-size: 14px !important;
     border-bottom: none !important;
    padding: 5px 10px !important;
     cursor: pointer !important;
}
}


/* --- 4. MOBILE MIRROR --- */
.pi-image .tabber__tab--active {
@media screen and (max-width: 768px) {
     background-color: var(--kh-green) !important;
     #content, .mw-body {
    color: white !important;
        padding: 1em !important;
     font-weight: bold !important;
        margin: 0 !important;
     }
 
    .portable-infobox {
        float: none !important;
        width: 100% !important;
        margin: 1em 0 !important;
        display: table !important;
    }
}
}

Latest revision as of 05:05, 18 March 2026

/* Version 36.1 - Restored Anisa Factory Proportions
   Goal: Original Anisa layout + KH Colors/Fonts + Readable Tabs
*/

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

/* --- 1. GLOBAL FONTS --- */
body {
    font-family: 'Crimson Pro', serif !important;
}

/* --- 2. ANISA (DESKTOP) RESTORATION --- */
/* We remove the forced margins/paddings here to let Anisa look "Factory" */
.skin-anisa #content, 
.skin-anisa .mw-body {
    font-size: 16px !important;
    line-height: 1.6;
    /* We are NOT forcing margin-top or padding here anymore */
}

/* Scaling up the tiny Navigation Labels to a readable "Normal" size */
.skin-anisa .vector-menu-tabs li a,
.skin-anisa .vector-menu-dropdown .vector-menu-heading-label,
.skin-anisa #p-cactions .vector-menu-heading-label,
.skin-anisa .vector-menu-tabs li a span {
    font-size: 16px !important; /* Readable, but fits the skin's design */
    font-weight: 400 !important;
    text-transform: none !important;
}

/* Restoring the natural spacing between "Read", "Edit", etc. */
.skin-anisa .vector-menu-tabs li {
    margin-right: 5px !important; 
}

/* --- 3. COSMOS (MOBILE) PRESERVATION --- */
/* This section ensures our mobile view doesn't change */
.skin-cosmos #content {
    padding: 15px !important;
    font-size: 15px !important;
}

/* --- 4. THE SEAMLESS INFOBOX (THE "LORE" FIX) --- */
/* This keeps your Kingdom Hearts style intact across BOTH skins */
.portable-infobox {
    background-color: #fff !important;
    border: 1px solid #a2a9b1 !important;
    width: 270px !important;
    float: right !important;
    margin: 0 0 1em 1.2em !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

.portable-infobox .pi-title {
    background-color: #ffd700 !important;
    color: #000 !important;
    font-family: 'Cinzel', serif !important;
    padding: 15px 10px !important;
    font-size: 1.25em !important;
    text-align: center !important;
    border-bottom: 1px solid #a2a9b1 !important;
}

.portable-infobox .pi-header {
    background-color: #3e5a47 !important;
    color: #fff !important;
    font-family: 'Cinzel', serif !important;
    padding: 10px 5px !important;
    text-align: center !important;
}

.pi-data-label { 
    background-color: #f2f2f2 !important; 
    padding: 8px !important; 
    border: 1px solid #a2a9b1 !important; 
    font-weight: bold !important; 
}

.pi-data-value { 
    padding: 8px !important; 
    border-bottom: 1px solid #a2a9b1 !important; 
}

/* --- 5. TABLE OF CONTENTS --- */
#toc, .toc {
    background-color: #f8f9fa !important;
    border: 1px solid #a2a9b1 !important;
    padding: 8px !important;
}

/* Styling TabberNeue inside PortableInfobox */
.pi-image .tabber__tabs {
    display: flex !important;
    justify-content: center !important;
    background: #f2f2f2 !important; /* Matches your label color */
    border-bottom: 1px solid #a2a9b1 !important;
    margin-bottom: 5px !important;
}

.pi-image .tabber__tab {
    font-family: 'Crimson Pro', serif !important;
    font-size: 14px !important;
    padding: 5px 10px !important;
    cursor: pointer !important;
}

.pi-image .tabber__tab--active {
    background-color: var(--kh-green) !important;
    color: white !important;
    font-weight: bold !important;
}