MediaWiki:Common.css

Revision as of 03:06, 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 - ANISA FIXES (WIKI NAME & USER MENU)
   ============================================================ */

/* 1. WIKI NAME / LOGO AREA BACKING */
/* Forces a backing specifically for the top-left site name area */
.anisa-header-logo, 
.site-branding, 
.anisa-logo-container {
    background-color: rgba(255, 255, 255, 0.95) !important;
    padding: 10px 20px !important;
    border-right: 2px solid #3e5a47 !important;
    border-bottom: 2px solid #3e5a47 !important;
    display: flex !important;
    align-items: center !important;
    min-height: 60px !important; /* Ensures it doesn't shrink */
}

/* 2. USERNAME & ALERTS FIX (The "Wonky" Fix) */
/* We target the container of the user links to keep it from stretching */
.anisa-user-menu, 
.vector-user-links, 
#p-personal {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #3e5a47 !important;
    border-top: none !important; /* Keeps it flush with the top edge */
    border-radius: 0 0 10px 10px !important; /* Rounded only on the bottom */
    padding: 0 15px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    height: 40px !important; /* Fixed height stops the "wonky" stretching */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    margin-right: 10px !important;
}

/* 3. SIDEBAR NAVIGATION BACKING */
.anisa-sidebar, 
.anisa-drawer, 
#mw-navigation {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-right: 3px solid #3e5a47 !important;
}

/* 4. FOOTER CREDITS BACKING */
#footer, .mw-footer, .anisa-footer {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-top: 3px solid #3e5a47 !important;
    padding: 20px !important;
    margin-top: 30px !important;
    clear: both !important;
}

/* 5. INFOBOX COLORS (Green & Yellow) */
.portable-infobox { border: 2px solid #3e5a47 !important; }
.portable-infobox .pi-title { background-color: #ffd700 !important; color: #2d4234 !important; }
.portable-infobox .pi-header { background-color: #3e5a47 !important; color: #ffffff !important; }

/* 6. GLOBAL BACKGROUND */
body {
    background-image: url("http://localhost/wiki/images/a/a4/WIKI_BACKGROUND.jpeg") !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-size: cover !important;
}