MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
/* ============================================================
/* ============================================================
   KH LEAF THEME - ANISA SKIN SPECIALIZED VERSION
   KH LEAF THEME - ANISA FIXES (WIKI NAME & USER MENU)
   ============================================================ */
   ============================================================ */


/* 1. GLOBAL BACKGROUND */
/* 1. WIKI NAME / LOGO AREA BACKING */
html, body {
/* Forces a backing specifically for the top-left site name area */
    background-image: url("http://localhost/wiki/images/a/a4/WIKI_BACKGROUND.jpeg") !important;
.anisa-header-logo,  
    background-color: #f0f0f0 !important;
.site-branding,  
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-position: center center !important;
    background-size: cover !important;
}
 
/* 2. ANISA SIDEBAR & WIKI NAME BACKING */
/* Targets the specific drawer and site-branding classes in Anisa */
.anisa-sidebar,
.anisa-drawer,
#mw-navigation,
.site-branding,
.anisa-logo-container {
.anisa-logo-container {
     background-color: rgba(255, 255, 255, 0.9) !important;
     background-color: rgba(255, 255, 255, 0.95) !important;
     border-right: 3px solid #3e5a47 !important;
    padding: 10px 20px !important;
     box-shadow: 2px 0 10px rgba(0,0,0,0.1) !important;
     border-right: 2px solid #3e5a47 !important;
}
     border-bottom: 2px solid #3e5a47 !important;
 
     display: flex !important;
/* Fixes the Wiki Name / Site Title specifically */
     align-items: center !important;
.site-branding a, .anisa-wiki-title {
     min-height: 60px !important; /* Ensures it doesn't shrink */
    color: #3e5a47 !important;
     font-weight: bold !important;
     font-family: "Georgia", serif !important;
     padding: 5px 10px !important;
}
}


/* 3. TOP RIGHT UI (Username & Alerts) - The "Pill" */
/* 2. USERNAME & ALERTS FIX (The "Wonky" Fix) */
/* We target the container of the user links to keep it from stretching */
.anisa-user-menu,  
.anisa-user-menu,  
.vector-user-links,  
.vector-user-links,  
#p-personal,
#p-personal {
.user-tools {
     background-color: rgba(255, 255, 255, 0.95) !important;
     background-color: rgba(255, 255, 255, 0.9) !important;
     border: 2px solid #3e5a47 !important;
     padding: 8px 15px !important;
     border-top: none !important; /* Keeps it flush with the top edge */
     border-bottom: 2px solid #3e5a47 !important;
     border-radius: 0 0 10px 10px !important; /* Rounded only on the bottom */
     border-left: 2px solid #3e5a47 !important;
    padding: 0 15px !important;
     border-bottom-left-radius: 12px !important;
    display: flex !important;
     box-shadow: -2px 2px 5px rgba(0,0,0,0.1) !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;
}
}


/* 4. CONTENT AREA FIX */
/* 3. SIDEBAR NAVIGATION BACKING */
#content, .mw-body {
.anisa-sidebar,  
     background-color: rgba(255, 255, 255, 0.95) !important;
.anisa-drawer,
     border: 1px solid #3e5a47 !important;
#mw-navigation {
    border-radius: 5px !important;
     background-color: rgba(255, 255, 255, 0.9) !important;
    padding: 20px !important;
     border-right: 3px solid #3e5a47 !important;
}
}


/* 5. THE CLEAN FOOTER BACKING (Credits & Last Edited) */
/* 4. FOOTER CREDITS BACKING */
#footer, .mw-footer, .anisa-footer {
#footer, .mw-footer, .anisa-footer {
     background-color: rgba(255, 255, 255, 0.9) !important;
     background-color: rgba(255, 255, 255, 0.95) !important;
     border-top: 3px solid #3e5a47 !important;
     border-top: 3px solid #3e5a47 !important;
    margin-top: 20px !important;
     padding: 20px !important;
     padding: 20px !important;
     color: #2d4234 !important;
     margin-top: 30px !important;
    font-family: "Georgia", serif !important;
     clear: both !important;
    font-size: 11px !important;
     text-align: center !important;
}
}


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


/* 7. SEARCH BAR (Anisa Specific) */
/* 6. GLOBAL BACKGROUND */
.anisa-search-container, #p-search {
body {
     background: #ffffff !important;
     background-image: url("http://localhost/wiki/images/a/a4/WIKI_BACKGROUND.jpeg") !important;
    border: 1px solid #3e5a47 !important;
    background-repeat: no-repeat !important;
    border-radius: 4px !important;
     background-attachment: fixed !important;
    margin-top: -5px !important;
     background-size: cover !important;
}
 
/* 8. LEAF DECORATIONS */
.mw-parser-output h2::before { content: "\1F343  " !important; }
.mw-parser-output::after {
    content: "🍃\A END OF ENTRY";
    white-space: pre !important;
     display: block !important;
     text-align: center !important;
    margin: 40px 0 !important;
    color: #3e5a47 !important;
}
}