MediaWiki:Common.css

Revision as of 03:13, 12 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.
/* ============================================================
   KH LEAF THEME - CLEAN GREEN & GOLD (ANISA VERSION)
   ============================================================ */

/* 1. THE MAIN INFOBOX (Green & Yellow) */
.portable-infobox {
    background-color: #ffffff !important;
    border: 2px solid #3e5a47 !important; 
    width: 300px !important;
    float: right !important;
    margin: 0 0 1em 1em !important;
    font-family: "Georgia", serif !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.05) !important;
}

/* Infobox Title (Yellow Background, Dark Green Text) */
.portable-infobox .pi-title {
    background-color: #ffd700 !important; /* Gold/Yellow */
    color: #2d4234 !important; /* Dark Green */
    text-align: center !important;
    padding: 12px 0 !important;
    font-size: 16px !important;
    display: block !important;
    width: calc(100% + 4px) !important;
    margin: -2px -2px 0 -2px !important;
    box-sizing: border-box !important;
    font-weight: bold !important;
}

/* Infobox Headers (Green Background, White Text) */
.portable-infobox .pi-header {
    background-color: #3e5a47 !important; /* Forest Green */
    color: #ffffff !important;
    text-align: center !important;
    padding: 8px 0 !important;
    font-size: 11px !important;
    display: block !important;
    width: calc(100% + 4px) !important;
    margin: 0 -2px !important;
    box-sizing: border-box !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* 2. USER MENU / TOP RIGHT NAVIGATION */
#p-personal li a, 
.anisa-user-menu a,
.nav-link {
    /* --- CHANGE USERNAME/ICON COLOR HERE --- */
    color: #3e5a47 !important; /* Back to Forest Green */
    /* ---------------------------------------- */
    font-weight: bold !important;
}

/* 3. TABLE OF CONTENTS */
#toc, .toc {
    border: 2px solid #3e5a47 !important;
    background-color: #ffffff !important;
    padding: 15px !important;
    font-family: "Georgia", serif !important;
}

.tocnumber { color: #ffd700 !important; font-weight: bold !important; }
.toctext { color: #3e5a47 !important; }

/* 4. ARTICLE HEADERS (H2/H3) WITH LEAF DECORATION */
.mw-parser-output h2, .mw-parser-output h3 {
    border-bottom: 2px solid #3e5a47 !important;
    color: #3e5a47 !important;
    padding-bottom: 5px !important;
}

.mw-parser-output h2::before { content: "\1F343  " !important; font-size: 20px !important; }
.mw-parser-output h3::before { content: "\1F343  " !important; font-size: 16px !important; }

/* 5. AUTOMATIC "END OF ENTRY" FOOTER */
.mw-parser-output::after {
    content: "🍃\A END OF ENTRY";
    white-space: pre !important;
    display: block !important;
    text-align: center !important;
    margin-top: 50px !important;
    padding-top: 20px !important;
    border-top: 1px solid #3e5a47 !important;
    font-family: "Georgia", serif !important;
    color: #3e5a47 !important;
    font-size: 10px !important;
    letter-spacing: 3px !important;
    font-weight: bold !important;
    clear: both !important;
}

/* 6. UI CLEANUP */
/* Ensures the sidebar links match the theme */
.vector-menu-heading, 
.vector-menu-content-list li a,
.anisa-sidebar a {
    color: #3e5a47 !important;
    font-weight: bold !important;
}