MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Version 32.0 - Dual-Skin Miraheze Reconstruction
/* Version 36.1 - Restored Anisa Factory Proportions
   Optimized for Anisa (Desktop) and Cosmos (Mobile)
   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;
     --miraheze-border: #a2a9b1;
}
}


/* --- 1. GLOBAL TYPOGRAPHY --- */
/* --- 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,
     /* Fixes the "Small Text" issue in Anisa/Desktop */
.skin-anisa .mw-body {
     font-size: 16px !important;  
     font-size: 16px !important;
     line-height: 1.6 !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;
}
}


/* --- 2. ANISA DESKTOP SPECIFICS --- */
/* Restoring the natural spacing between "Read", "Edit", etc. */
/* Ensures the content area in Anisa feels substantial and centered */
.skin-anisa .vector-menu-tabs li {
.skin-anisa #content, .skin-anisa .mw-body {
     margin-right: 5px !important;  
    background-color: #ffffff !important;
    border: 1px solid var(--miraheze-border) !important;
    padding: 2em 3em !important;
     margin: 20px auto !important;
    max-width: 1150px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}
}


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


/* --- 4. THE MIRAHEZE INFOBOX (SHARED) --- */
/* --- 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 var(--miraheze-border) !important;
     border: 1px solid #a2a9b1 !important;
     width: 280px !important;
     width: 270px !important;
     float: right !important;
     float: right !important;
     margin: 0 0 1em 1.5em !important;
     margin: 0 0 1em 1.2em !important;
     border-collapse: collapse !important;
     border-collapse: collapse !important;
     border-spacing: 0 !important;
     border-spacing: 0 !important;
Line 49: Line 54:


.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: 15px 10px !important;
     font-size: 1.25em !important;
     font-size: 1.25em !important;
     text-align: center !important;
     text-align: center !important;
     border-bottom: 1px solid var(--miraheze-border) !important;
     border-bottom: 1px solid #a2a9b1 !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: 10px 5px !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;
    padding: 8px !important;
    border: 1px solid #a2a9b1 !important;
    font-weight: bold !important;  
}
}


.pi-data-label {
.pi-data-value {  
    display: table-cell !important;
     padding: 8px !important;  
    width: 40% !important;
     border-bottom: 1px solid #a2a9b1 !important;  
    background-color: #f2f2f2 !important;
    font-weight: bold !important;
    padding: 8px !important;
    border-bottom: 1px solid var(--miraheze-border) !important;
    border-right: 1px solid var(--miraheze-border) !important;
}
 
.pi-data-value {
    display: table-cell !important;
     padding: 8px !important;
     border-bottom: 1px solid var(--miraheze-border) !important;
    background-color: #ffffff !important;
}
}


Line 93: Line 86:
#toc, .toc {
#toc, .toc {
     background-color: #f8f9fa !important;
     background-color: #f8f9fa !important;
     border: 1px solid var(--miraheze-border) !important;
     border: 1px solid #a2a9b1 !important;
     padding: 10px !important;
     padding: 8px !important;
    display: table !important;
}
}


/* --- 6. MOBILE RESPONSIVENESS --- */
/* Styling TabberNeue inside PortableInfobox */
@media screen and (max-width: 768px) {
.pi-image .tabber__tabs {
     .portable-infobox {
    display: flex !important;
        float: none !important;
     justify-content: center !important;
        width: 100% !important;
    background: #f2f2f2 !important; /* Matches your label color */
        margin: 1em 0 !important;
    border-bottom: 1px solid #a2a9b1 !important;
    }
    margin-bottom: 5px !important;
}
}


/* --- 7. ANISA NAVIGATION TAB FIX --- */
.pi-image .tabber__tab {
/* Increases size for "Read", "Edit", "View History", etc. */
     font-family: 'Crimson Pro', serif !important;
.skin-anisa #p-views ul li a,
     font-size: 14px !important;
.skin-anisa #p-cactions ul li a,
     padding: 5px 10px !important;
.skin-anisa #left-navigation .vector-menu-content-list li a {
     cursor: pointer !important;
     font-size: 16px !important; /* Matches your body text size */
     font-weight: 700 !important;
     text-transform: uppercase;
     padding: 10px 15px !important;
}
}


/* --- 8. FOOTER VIEW TOGGLE --- */
.pi-image .tabber__tab--active {
/* Ensures the "Mobile view" / "Desktop view" link is visible in the footer */
    background-color: var(--kh-green) !important;
#footer-places-mobileview a,
    color: white !important;
#footer-places-desktopview a {
     font-weight: bold !important;
     font-weight: bold !important;
    color: var(--kh-green) !important;
    text-decoration: underline !important;
    font-size: 14px !important;
}
}