MediaWiki:Common.css: Difference between revisions

No edit summary
Tags: Mobile edit Mobile web edit
No edit summary
 
(42 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Version 1.1.4 - Universal KH Leaf (Clean Base for Cosmos & Anisa) */
/* 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');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap');


/* 1. GLOBAL VARIABLES */
/* --- 1. GLOBAL FONTS --- */
:root {
    --kh-green: #3e5a47;
    --kh-yellow: #ffd700;
    --kh-dark-text: #2d4234;
    --kh-light-bg: #f9fdfa;
    --kh-label-bg: #f2f2f2;
    --kh-data-bg: #ffffff;
    --kh-border: 2px solid var(--kh-green);
}
 
/* 2. UNIVERSAL COLORS & FONTS */
body {
body {
     font-family: 'Crimson Pro', serif !important;
     font-family: 'Crimson Pro', serif !important;
}
}


a { color: var(--kh-green); }
/* --- 2. ANISA (DESKTOP) RESTORATION --- */
a:visited { color: var(--kh-dark-text); }
/* We remove the forced margins/paddings here to let Anisa look "Factory" */
a.new { color: #ba0000 !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 */
}


h1, h2, h3, h4, .mw-headline {
/* Scaling up the tiny Navigation Labels to a readable "Normal" size */
     color: var(--kh-green) !important;
.skin-anisa .vector-menu-tabs li a,
     font-family: 'Cinzel', serif !important;
.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;
}
}
h1, h2 { border-bottom: var(--kh-border) !important; }
h2::before, h3::before { content: "\1F343\0020"; display: inline-block; }


/* 3. UNIVERSAL SKIN ELEMENTS */
/* Restoring the natural spacing between "Read", "Edit", etc. */
/* This colors the header for both Cosmos and Anisa */
.skin-anisa .vector-menu-tabs li {
#cosmos-header, #cosmos-navigation, .anisa-header, .vector-header, .header-container {
     margin-right: 5px !important;  
     background-color: var(--kh-green) !important;
    border-bottom: 3px solid var(--kh-yellow) !important;
}
}


/* 4. COSMOS SPECIFIC (Clean Customization) */
/* --- 3. COSMOS (MOBILE) PRESERVATION --- */
/* This targets the Cosmos "Command Menu" bubble without forcing its position */
/* This section ensures our mobile view doesn't change */
.cosmos-menu, .cosmos-button {
.skin-cosmos #content {
     background-color: var(--kh-green) !important;
     padding: 15px !important;
     border: 2px solid var(--kh-yellow) !important;
     font-size: 15px !important;
}
}


/* 5. ANISA SPECIFIC (Clean Customization) */
/* --- 4. THE SEAMLESS INFOBOX (THE "LORE" FIX) --- */
.skin-anisa #mw-content-block {
/* This keeps your Kingdom Hearts style intact across BOTH skins */
     background-color: var(--kh-light-bg);
.portable-infobox {
     border-radius: 8px;
     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;
}
}


/* 6. AUTOMATIC FOOTER */
.portable-infobox .pi-title {
.mw-parser-output::after {
    background-color: #ffd700 !important;
     content: "\1F343\000A END OF ENTRY";
    color: #000 !important;
     white-space: pre !important;
     font-family: 'Cinzel', serif !important;
     display: block !important;
     padding: 15px 10px !important;
     font-size: 1.25em !important;
     text-align: center !important;
     text-align: center !important;
    margin-top: 50px !important;
     border-bottom: 1px solid #a2a9b1 !important;
    padding-top: 20px !important;
     border-top: 1px solid var(--kh-green) !important;
    color: var(--kh-green) !important;
    font-family: 'Cinzel', serif;
}
}


/* FORCE DESKTOP VIEW ON MOBILE */
.portable-infobox .pi-header {
@media only screen and (max-width: 768px) {
     background-color: #3e5a47 !important;
     /* Prevent the container from collapsing */
     color: #fff !important;
     #cosmos-content, .mw-body, #content {
    font-family: 'Cinzel', serif !important;
        min-width: 1000px !important;  
    padding: 10px 5px !important;
        margin: 10px auto !important;
     text-align: center !important;
     }
}


     /* Keep the header wide enough for the links */
.pi-data-label {
     #cosmos-header, .header-container {
     background-color: #f2f2f2 !important;
        min-width: 1000px !important;
     padding: 8px !important;
    }
    border: 1px solid #a2a9b1 !important;
    font-weight: bold !important;  
}


    /* Ensure the body doesn't zoom in weirdly */
.pi-data-value {
     body {
     padding: 8px !important;  
        min-width: 1000px !important;
    border-bottom: 1px solid #a2a9b1 !important;  
        overflow-x: auto !important;
    }
}
}


/* DISABLE COSMOS MOBILE HIDING */
/* --- 5. TABLE OF CONTENTS --- */
@media only screen and (max-width: 1024px) {
#toc, .toc {
    /* Force the sidebar/rail to stay visible */
    background-color: #f8f9fa !important;
    #cosmos-right-rail, .cosmos-right-rail {
    border: 1px solid #a2a9b1 !important;
        display: block !important;
    padding: 8px !important;
        visibility: visible !important;
        width: 300px !important; /* Standard rail width */
    }
 
    /* Prevent the main container from expanding to 100% */
    #cosmos-content {
        display: flex !important;
        flex-direction: row !important;
        width: 1200px !important;
        max-width: 1200px !important;
    }
 
    /* Keep the header items from stacking */
    #cosmos-header, .header-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 1200px !important;
    }
}
}


/* FORCE DESKTOP LAYOUT WITHIN MOBILE FRONTEND */
/* Styling TabberNeue inside PortableInfobox */
.mw-mf-viewport #cosmos-content,
.pi-image .tabber__tabs {
.mw-mf-viewport .mw-body {
     display: flex !important;
     display: flex !important;
     flex-direction: row !important; /* Forces the Rail to stay to the right */
     justify-content: center !important;
     width: 1200px !important;
     background: #f2f2f2 !important; /* Matches your label color */
     max-width: 1200px !important;
     border-bottom: 1px solid #a2a9b1 !important;
     margin: 0 auto !important;
     margin-bottom: 5px !important;
}
}


/* Force the Sidebar (Rail) to stay visible */
.pi-image .tabber__tab {
.mw-mf-viewport #cosmos-right-rail {
    font-family: 'Crimson Pro', serif !important;
     display: block !important;
     font-size: 14px !important;
     width: 300px !important;
     padding: 5px 10px !important;
     min-width: 300px !important;
     cursor: pointer !important;
}
}


/* Stop the header from collapsing into a hamburger menu only */
.pi-image .tabber__tab--active {
.mw-mf-viewport #cosmos-header {
     background-color: var(--kh-green) !important;
     width: 1200px !important;
     color: white !important;
     display: flex !important;
    font-weight: bold !important;
}
}