MediaWiki:Common.css

Revision as of 04:42, 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 32.0 - Dual-Skin Miraheze Reconstruction
   Optimized for Anisa (Desktop) and Cosmos (Mobile)
*/

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

/* --- 1. GLOBAL TYPOGRAPHY --- */
body {
    font-family: 'Crimson Pro', serif !important;
    /* Fixes the "Small Text" issue in Anisa/Desktop */
    font-size: 16px !important; 
    line-height: 1.6 !important;
}

/* --- 2. ANISA DESKTOP SPECIFICS --- */
/* Ensures the content area in Anisa feels substantial and centered */
.skin-anisa #content, .skin-anisa .mw-body {
    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 --- */
.skin-cosmos #content {
    padding: 15px !important;
    margin: 0 !important;
    border: none !important;
}

/* --- 4. THE MIRAHEZE INFOBOX (SHARED) --- */
.portable-infobox {
    background-color: #fff !important;
    border: 1px solid var(--miraheze-border) !important;
    width: 280px !important;
    float: right !important;
    margin: 0 0 1em 1.5em !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

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

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

/* Data Row Precision */
.pi-item.pi-data {
    display: table-row !important;
}

.pi-data-label {
    display: table-cell !important;
    width: 40% !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;
}

/* --- 5. TABLE OF CONTENTS --- */
#toc, .toc {
    background-color: #f8f9fa !important;
    border: 1px solid var(--miraheze-border) !important;
    padding: 10px !important;
    display: table !important;
}

/* --- 6. MOBILE RESPONSIVENESS --- */
@media screen and (max-width: 768px) {
    .portable-infobox {
        float: none !important;
        width: 100% !important;
        margin: 1em 0 !important;
    }
}

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

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