MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(77 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================================
/* Version 36.1 - Restored Anisa Factory Proportions
   KH LEAF THEME - ANISA FIXES (WIKI NAME & USER MENU)
   Goal: Original Anisa layout + KH Colors/Fonts + Readable Tabs
  ============================================================ */
*/


/* 1. WIKI NAME / LOGO AREA BACKING */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap');
/* Forces a backing specifically for the top-left site name area */
 
.anisa-header-logo,  
/* --- 1. GLOBAL FONTS --- */
.site-branding,  
body {
.anisa-logo-container {
    font-family: 'Crimson Pro', serif !important;
     background-color: rgba(255, 255, 255, 0.95) !important;
}
     padding: 10px 20px !important;
 
     border-right: 2px solid #3e5a47 !important;
/* --- 2. ANISA (DESKTOP) RESTORATION --- */
     border-bottom: 2px solid #3e5a47 !important;
/* We remove the forced margins/paddings here to let Anisa look "Factory" */
     display: flex !important;
.skin-anisa #content,
     align-items: center !important;
.skin-anisa .mw-body {
     min-height: 60px !important; /* Ensures it doesn't shrink */
    font-size: 16px !important;
    line-height: 1.6;
    /* We are NOT forcing margin-top or padding here anymore */
}
 
/* Scaling up the tiny Navigation Labels to a readable "Normal" size */
.skin-anisa .vector-menu-tabs li a,
.skin-anisa .vector-menu-dropdown .vector-menu-heading-label,
.skin-anisa #p-cactions .vector-menu-heading-label,
.skin-anisa .vector-menu-tabs li a span {
     font-size: 16px !important; /* Readable, but fits the skin's design */
    font-weight: 400 !important;
    text-transform: none !important;
}
 
/* Restoring the natural spacing between "Read", "Edit", etc. */
.skin-anisa .vector-menu-tabs li {
    margin-right: 5px !important;
}
 
/* --- 3. COSMOS (MOBILE) PRESERVATION --- */
/* This section ensures our mobile view doesn't change */
.skin-cosmos #content {
    padding: 15px !important;
    font-size: 15px !important;
}
 
/* --- 4. THE SEAMLESS INFOBOX (THE "LORE" FIX) --- */
/* This keeps your Kingdom Hearts style intact across BOTH skins */
.portable-infobox {
    background-color: #fff !important;
    border: 1px solid #a2a9b1 !important;
    width: 270px !important;
    float: right !important;
    margin: 0 0 1em 1.2em !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}
 
.portable-infobox .pi-title {
    background-color: #ffd700 !important;
    color: #000 !important;
    font-family: 'Cinzel', serif !important;
     padding: 15px 10px !important;
    font-size: 1.25em !important;
    text-align: center !important;
     border-bottom: 1px solid #a2a9b1 !important;
}
 
.portable-infobox .pi-header {
     background-color: #3e5a47 !important;
     color: #fff !important;
    font-family: 'Cinzel', serif !important;
    padding: 10px 5px !important;
     text-align: center !important;
}
 
.pi-data-label {
    background-color: #f2f2f2 !important;
    padding: 8px !important;
    border: 1px solid #a2a9b1 !important;  
     font-weight: bold !important;  
}
}


/* 2. USERNAME & ALERTS FIX (The "Wonky" Fix) */
.pi-data-value {  
/* We target the container of the user links to keep it from stretching */
     padding: 8px !important;  
.anisa-user-menu,
     border-bottom: 1px solid #a2a9b1 !important;  
.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 */
/* --- 5. TABLE OF CONTENTS --- */
.anisa-sidebar,  
#toc, .toc {
.anisa-drawer,
     background-color: #f8f9fa !important;
#mw-navigation {
     border: 1px solid #a2a9b1 !important;
     background-color: rgba(255, 255, 255, 0.9) !important;
    padding: 8px !important;
     border-right: 3px solid #3e5a47 !important;
}
}


/* 4. FOOTER CREDITS BACKING */
/* Styling TabberNeue inside PortableInfobox */
#footer, .mw-footer, .anisa-footer {
.pi-image .tabber__tabs {
     background-color: rgba(255, 255, 255, 0.95) !important;
     display: flex !important;
     border-top: 3px solid #3e5a47 !important;
     justify-content: center !important;
     padding: 20px !important;
     background: #f2f2f2 !important; /* Matches your label color */
     margin-top: 30px !important;
     border-bottom: 1px solid #a2a9b1 !important;
     clear: both !important;
     margin-bottom: 5px !important;
}
}


/* 5. INFOBOX COLORS (Green & Yellow) */
.pi-image .tabber__tab {
.portable-infobox { border: 2px solid #3e5a47 !important; }
    font-family: 'Crimson Pro', serif !important;
.portable-infobox .pi-title { background-color: #ffd700 !important; color: #2d4234 !important; }
    font-size: 14px !important;
.portable-infobox .pi-header { background-color: #3e5a47 !important; color: #ffffff !important; }
    padding: 5px 10px !important;
    cursor: pointer !important;
}


/* 6. GLOBAL BACKGROUND */
.pi-image .tabber__tab--active {
body {
     background-color: var(--kh-green) !important;
     background-image: url("http://localhost/wiki/images/a/a4/WIKI_BACKGROUND.jpeg") !important;
     color: white !important;
    background-repeat: no-repeat !important;
     font-weight: bold !important;
     background-attachment: fixed !important;
     background-size: cover !important;
}
}