MediaWiki:Common.css

Revision as of 04:44, 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 & ACTIONS TEXT --- */
/* Target "Read", "Edit", "History" and "Actions" dropdown */

/* Main Navigation Tabs */
.skin-anisa #p-views ul li a, 
.skin-anisa #p-cactions ul li a,
.skin-anisa #left-navigation .vector-menu-content-list li a,
.skin-anisa .vector-menu-heading-label {
    font-size: 18px !important; /* Significantly larger */
    font-weight: 400 !important; /* Removes bolding */
    text-transform: none !important; /* Keeps it natural casing */
    color: #202122 !important;
}

/* The "Actions" dropdown trigger specifically */
.skin-anisa #p-cactions .vector-menu-heading-label {
    font-size: 18px !important;
    padding: 0 15px !important;
}

/* Dropdown Menu Items (Inside Actions) */
.skin-anisa .vector-menu-content-list li a {
    font-size: 16px !important;
    font-weight: 400 !important;
}

/* Page Subtitle (Below the title, e.g., "From Lenn's Fun Stuff") */
#siteSub {
    font-size: 16px !important;
    font-weight: 400 !important;
    display: block !important;
}

/* Footer Toggle Text */
#footer-places-mobileview a, 
#footer-places-desktopview a {
    font-size: 16px !important;
    font-weight: 400 !important;
    text-decoration: underline !important;
}