MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(84 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================================
/* Version 36.1 - Restored Anisa Factory Proportions
   KH LEAF THEME - GREEN & GOLD EDITION
   Goal: Original Anisa layout + KH Colors/Fonts + Readable Tabs
  ============================================================ */
*/


/* 1. THE MAIN INFOBOX CONTAINER */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap');
.portable-infobox {
 
    background-color: #ffffff !important;
/* --- 1. GLOBAL FONTS --- */
    border: 2px solid #3e5a47 !important; /* Changed to Green border */
body {
    width: 300px !important;
     font-family: 'Crimson Pro', serif !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.1) !important;
}
}


/* 2. INFOBOX TITLE (Yellow Background, Dark Text) */
/* --- 2. ANISA (DESKTOP) RESTORATION --- */
.portable-infobox .pi-title {
/* We remove the forced margins/paddings here to let Anisa look "Factory" */
    background-color: #ffd700 !important; /* Gold/Yellow */
.skin-anisa #content,
    color: #2d4234 !important; /* Dark Green text for readability */
.skin-anisa .mw-body {
    text-align: center !important;
    padding: 12px 0 !important;
     font-size: 16px !important;
     font-size: 16px !important;
     display: block !important;
     line-height: 1.6;
    width: calc(100% + 4px) !important;
     /* We are NOT forcing margin-top or padding here anymore */
     margin: -2px -2px 0 -2px !important;
    box-sizing: border-box !important;
    font-weight: bold !important;
}
}


/* 3. INFOBOX SECTION HEADERS (Green Background, White Text) */
/* Scaling up the tiny Navigation Labels to a readable "Normal" size */
.portable-infobox .pi-header {
.skin-anisa .vector-menu-tabs li a,
    background-color: #3e5a47 !important; /* Forest Green */
.skin-anisa .vector-menu-dropdown .vector-menu-heading-label,
    color: #ffffff !important; /* White text */
.skin-anisa #p-cactions .vector-menu-heading-label,
    text-align: center !important;
.skin-anisa .vector-menu-tabs li a span {
    padding: 8px 0 !important;
     font-size: 16px !important; /* Readable, but fits the skin's design */
     font-size: 11px !important;
     font-weight: 400 !important;
     display: block !important;
     text-transform: none !important;
    width: calc(100% + 4px) !important;
    margin: 0 -2px !important;
    box-sizing: border-box !important;
     text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
}


/* 4. THE CUSTOM SIDEBAR */
/* Restoring the natural spacing between "Read", "Edit", etc. */
/* Targets the sidebar area (Vector skin) */
.skin-anisa .vector-menu-tabs li {
#mw-panel {
     margin-right: 5px !important;  
    background-color: #f4f9f6 !important; /* Very faint leaf-green wash */
     border-right: 2px solid #3e5a47 !important; /* Forest Green divider */
    height: 100vh !important;
}
}


/* Sidebar Link Styling */
/* --- 3. COSMOS (MOBILE) PRESERVATION --- */
#mw-panel .vector-menu-content-list li a {
/* This section ensures our mobile view doesn't change */
     color: #3e5a47 !important;
.skin-cosmos #content {
     font-family: "Georgia", serif !important;
     padding: 15px !important;
     font-size: 15px !important;
}
}


#mw-panel .vector-menu-content-list li a:hover {
/* --- 4. THE SEAMLESS INFOBOX (THE "LORE" FIX) --- */
     color: #ffd700 !important; /* Glows Yellow on hover */
/* This keeps your Kingdom Hearts style intact across BOTH skins */
     text-decoration: none !important;
.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;
}
}


/* 5. IMAGE AREA (Centered) */
.portable-infobox .pi-title {
.portable-infobox .pi-image {
     background-color: #ffd700 !important;
     background-color: #fcfdfc !important;  
    color: #000 !important;
     padding: 15px !important;
    font-family: 'Cinzel', serif !important;
     padding: 15px 10px !important;
    font-size: 1.25em !important;
     text-align: center !important;
     text-align: center !important;
     display: block;
     border-bottom: 1px solid #a2a9b1 !important;
}
}


.portable-infobox .pi-image img {
.portable-infobox .pi-header {
     margin: 0 auto !important;
     background-color: #3e5a47 !important;
     display: block !important;
    color: #fff !important;
     max-width: 100% !important;
    font-family: 'Cinzel', serif !important;
     padding: 10px 5px !important;
     text-align: center !important;
}
}


/* 6. DATA ROWS & LEAVES */
.pi-data-label {  
.portable-infobox .pi-data {
     background-color: #f2f2f2 !important;
     display: flex !important;
    padding: 8px !important;  
     border-bottom: 1px solid #eee !important;
     border: 1px solid #a2a9b1 !important;
    font-weight: bold !important;  
}
}


.portable-infobox .pi-data-label {
.pi-data-value {  
    background-color: #f9f9f9 !important;
     padding: 8px !important;  
     padding: 10px !important;
     border-bottom: 1px solid #a2a9b1 !important;  
    flex: 0 0 40% !important;
     border-right: 1px solid #ddd !important;
    font-size: 11px !important;
    font-weight: bold;
}
}


.portable-infobox .pi-data-value {
/* --- 5. TABLE OF CONTENTS --- */
    padding: 10px !important;
    flex: 1 !important;
    font-size: 11px !important;
}
 
.portable-infobox .pi-data-value li::before {
    content: "\1F343  " !important;
    font-size: 10px !important;
}
 
/* 7. ARTICLE HEADERS (H2/H3) */
.mw-parser-output h2, .mw-parser-output h3 {
    border-bottom: 2px solid #3e5a47 !important;
    color: #3e5a47 !important; /* Switched to Green to match theme */
}
 
.mw-parser-output h2::before { content: "\1F343  " !important; font-size: 20px !important; }
.mw-parser-output h3::before { content: "\1F343  " !important; font-size: 16px !important; }
 
/* 8. TABLE OF CONTENTS */
#toc, .toc {
#toc, .toc {
     border: 2px solid #3e5a47 !important;
    background-color: #f8f9fa !important;
     background-color: #fff !important;
     border: 1px solid #a2a9b1 !important;
     padding: 8px !important;
}
}


#toctitle h2 { color: #3e5a47 !important; border-bottom: 1px solid #ffd700 !important; }
/* Styling TabberNeue inside PortableInfobox */
.tocnumber { color: #ffd700 !important; }
.pi-image .tabber__tabs {
 
     display: flex !important;
/* 9. AUTOMATIC FOOTER */
     justify-content: center !important;
.mw-parser-output::after {
     background: #f2f2f2 !important; /* Matches your label color */
    content: "🍃\A END OF ENTRY";
     border-bottom: 1px solid #a2a9b1 !important;
    white-space: pre !important;
     margin-bottom: 5px !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;
}
}


/* 10. UI FIXES */
.pi-image .tabber__tab {
#p-search, .vector-search-box {
    font-family: 'Crimson Pro', serif !important;
     float: right !important;
    font-size: 14px !important;
    padding: 5px 10px !important;
     cursor: pointer !important;
}
}


/* ============================================================
.pi-image .tabber__tab--active {
  GLOBAL BACKGROUND IMAGE
     background-color: var(--kh-green) !important;
  ============================================================ */
     color: white !important;
body {
     font-weight: bold !important;
    /* Replace the URL below with your actual uploaded image link */
    background-image: url("http://localhost/wiki/images/a/a4/WIKI_BACKGROUND.jpeg") !important;
   
    /* This keeps the image from repeating and makes it cover the screen */
    background-repeat: no-repeat !important;
     background-attachment: fixed !important;
    background-position: center center !important;
    background-size: cover !important;
}
 
/* OPTIONAL: If your background image makes the text hard to read,
  this adds a slight white tint to the main content area.
*/
#content {
     background-color: rgba(255, 255, 255, 0.85) !important;
     border-radius: 8px !important;
}
}