MediaWiki:Common.css

From Lenn's Fun Stuff

Revision as of 04:37, 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 Sync (Anisa + Cosmos)
   Fixes: Small text in Anisa, layout clashing, and unified Infoboxes
*/

@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;
}

/* --- GLOBAL TYPOGRAPHY --- */
body {
    font-family: 'Crimson Pro', serif !important;
    line-height: 1.6 !important;
}

/* --- ANISA (DESKTOP) SPECIFIC FIXES --- */
.skin-anisa #content, 
.skin-anisa .mw-body {
    font-size: 1.1em !important; /* Fixes the "small text" issue */
    max-width: 1200px !important;
    margin: 20px auto !important;
    border: 1px solid #a2a9b1 !important;
    padding: 2.5em !important;
}

/* --- COSMOS (MOBILE) SPECIFIC FIXES --- */
.skin-cosmos #content, 
.skin-cosmos .mw-body {
    background-color: #ffffff !important;
    padding: 1em !important;
    margin: 0 !important;
}

/* --- UNIFIED PORTABLE INFOBOX (Works for both) --- */
.portable-infobox {
    background-color: #fff !important;
    border: 1px solid #a2a9b1 !important;
    width: 280px !important;
    float: right !important;
    margin: 0 0 1em 1.5em !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    font-size: 0.9em !important;
}

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

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

.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: 7px 10px !important;
    border-bottom: 1px solid #a2a9b1 !important;
    border-right: 1px solid #a2a9b1 !important;
}

.pi-data-value {
    display: table-cell !important;
    padding: 7px 10px !important;
    border-bottom: 1px solid #a2a9b1 !important;
    background-color: #ffffff !important;
}

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

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