MediaWiki:Common.css: Difference between revisions

From Lenn's Fun Stuff

No edit summary
No edit summary
 
(70 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================================
/* Version 36.1 - Restored Anisa Factory Proportions
   KH LEAF THEME - EXTENSION-FRIENDLY UNIVERSAL VERSION
   Goal: Original Anisa layout + KH Colors/Fonts + Readable Tabs
  ============================================================ */
*/


/* 1. UNIVERSAL COLOR VARIABLES
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap');
  Change these here to update the whole wiki at once! */
 
:root {
/* --- 1. GLOBAL FONTS --- */
    --kh-green: #3e5a47;
body {
    --kh-yellow: #ffd700;
     font-family: 'Crimson Pro', serif !important;
    --kh-dark-text: #2d4234;
     --kh-light-bg: #f9fdfa;
}
}


/* 2. UNIVERSAL PORTABLE INFOBOX (Green & Yellow) */
/* --- 2. ANISA (DESKTOP) RESTORATION --- */
/* Targets the extension "PortableInfobox" specifically */
/* We remove the forced margins/paddings here to let Anisa look "Factory" */
.portable-infobox {
.skin-anisa #content,
    background-color: #ffffff !important;
.skin-anisa .mw-body {
    border: 2px solid var(--kh-green) !important;
     font-size: 16px !important;
     font-family: "Georgia", serif !important;
     line-height: 1.6;
     box-shadow: 4px 4px 10px rgba(0,0,0,0.05) !important;
    /* We are NOT forcing margin-top or padding here anymore */
}
}


.portable-infobox .pi-title {
/* Scaling up the tiny Navigation Labels to a readable "Normal" size */
    background-color: var(--kh-yellow) !important;
.skin-anisa .vector-menu-tabs li a,
    color: var(--kh-dark-text) !important;
.skin-anisa .vector-menu-dropdown .vector-menu-heading-label,
     font-weight: bold !important;
.skin-anisa #p-cactions .vector-menu-heading-label,
     padding: 10px !important;
.skin-anisa .vector-menu-tabs li a span {
     text-align: center !important;
     font-size: 16px !important; /* Readable, but fits the skin's design */
     font-weight: 400 !important;
     text-transform: none !important;
}
}


.portable-infobox .pi-header {
/* Restoring the natural spacing between "Read", "Edit", etc. */
     background-color: var(--kh-green) !important;
.skin-anisa .vector-menu-tabs li {
    color: #ffffff !important;
     margin-right: 5px !important;  
    text-transform: uppercase !important;
    font-size: 0.9em !important;
}
}


/* 3. CONTENT DECORATIONS (Friendly for VisualEditor/Mobile) */
/* --- 3. COSMOS (MOBILE) PRESERVATION --- */
/* Targets standard H2/H3 markers used by almost every extension */
/* This section ensures our mobile view doesn't change */
.mw-parser-output h2,
.skin-cosmos #content {
.mw-parser-output h3 {
     padding: 15px !important;
     border-bottom: 2px solid var(--kh-green) !important;
     font-size: 15px !important;
     color: var(--kh-green) !important;
    margin-top: 1.5em !important;
}
}


.mw-parser-output h2::before { content: "\1F343  "; font-size: 1.2em; }
/* --- 4. THE SEAMLESS INFOBOX (THE "LORE" FIX) --- */
.mw-parser-output h3::before { content: "\1F343  "; font-size: 1em; }
/* 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;
}


/* 4. TABLE OF CONTENTS (Universal) */
.portable-infobox .pi-title {
#toc, .toc, .mw-toc {
     background-color: #ffd700 !important;
     border: 2px solid var(--kh-green) !important;
     color: #000 !important;
     background-color: var(--kh-light-bg) !important;
    font-family: 'Cinzel', serif !important;
     border-radius: 4px !important;
    padding: 15px 10px !important;
    font-size: 1.25em !important;
    text-align: center !important;
     border-bottom: 1px solid #a2a9b1 !important;
}
}


.tocnumber { color: var(--kh-yellow) !important; font-weight: bold; }
.portable-infobox .pi-header {
.toctext { color: var(--kh-green) !important; }
    background-color: #3e5a47 !important;
    color: #fff !important;
    font-family: 'Cinzel', serif !important;
    padding: 10px 5px !important;
    text-align: center !important;
}


/* 5. USER TOOLS & PERSONAL MENU (Safe Mode) */
.pi-data-label {
/* We only color the text to stay compatible with Anisa & SocialProfile */
    background-color: #f2f2f2 !important;
#p-personal a,
    padding: 8px !important;
.nav-link,
     border: 1px solid #a2a9b1 !important;  
.anisa-user-menu a {
     font-weight: bold !important;  
     color: var(--kh-green) !important; /* Change this for username color */
     font-weight: bold !important;
}
}


/* 6. AUTOMATIC FOOTER */
.pi-data-value {  
.mw-parser-output::after {
     padding: 8px !important;  
    content: "🍃\A END OF ENTRY";
     border-bottom: 1px solid #a2a9b1 !important;  
    white-space: pre !important;
    display: block !important;
    text-align: center !important;
    margin-top: 50px !important;
     padding-top: 20px !important;
     border-top: 1px solid var(--kh-green) !important;
    color: var(--kh-green) !important;
    font-size: 0.8em !important;
    letter-spacing: 2px !important;
}
}


/* 7. EXTENSION COMPATIBILITY SHIELD */
/* --- 5. TABLE OF CONTENTS --- */
/* Prevents leaf icons from appearing on extension-specific menus
#toc, .toc {
  (like the edit toolbar or social notifications) */
    background-color: #f8f9fa !important;
#p-cactions h3::before,
    border: 1px solid #a2a9b1 !important;
#p-search h3::before,
     padding: 8px !important;
.vector-menu-heading::before {
     content: none !important;
}
}


/* Portable Infobox Styling */
/* Styling TabberNeue inside PortableInfobox */
.portable-infobox {
.pi-image .tabber__tabs {
     width: 300px; /* Limits the width so it's not full-screen */
     display: flex !important;
    float: right; /* Pushes it to the right side of the page */
     justify-content: center !important;
     margin-left: 20px;
     background: #f2f2f2 !important; /* Matches your label color */
    margin-bottom: 15px;
     border-bottom: 1px solid #a2a9b1 !important;
     background: #f9f9f9; /* Light background */
     margin-bottom: 5px !important;
     border: 1px solid #aaa;
     border-radius: 5px;
    padding: 10px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
}


/* Make sure headers look good inside the box */
.pi-image .tabber__tab {
.pi-header {
     font-family: 'Crimson Pro', serif !important;
     background-color: #222;
     font-size: 14px !important;
     color: #fff;
     padding: 5px 10px !important;
    text-align: center;
     cursor: pointer !important;
     font-weight: bold;
     padding: 5px;
}
}


/* Label styling (e.g., "Full Name", "Occupation") */
.pi-image .tabber__tab--active {
.pi-data-label {
     background-color: var(--kh-green) !important;
     font-weight: bold;
    color: white !important;
     width: 40%;
     font-weight: bold !important;
}
}

Latest revision as of 05:05, 18 March 2026

/* Version 36.1 - Restored Anisa Factory Proportions
   Goal: Original Anisa layout + KH Colors/Fonts + Readable Tabs
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap');

/* --- 1. GLOBAL FONTS --- */
body {
    font-family: 'Crimson Pro', serif !important;
}

/* --- 2. ANISA (DESKTOP) RESTORATION --- */
/* We remove the forced margins/paddings here to let Anisa look "Factory" */
.skin-anisa #content, 
.skin-anisa .mw-body {
    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; 
}

.pi-data-value { 
    padding: 8px !important; 
    border-bottom: 1px solid #a2a9b1 !important; 
}

/* --- 5. TABLE OF CONTENTS --- */
#toc, .toc {
    background-color: #f8f9fa !important;
    border: 1px solid #a2a9b1 !important;
    padding: 8px !important;
}

/* Styling TabberNeue inside PortableInfobox */
.pi-image .tabber__tabs {
    display: flex !important;
    justify-content: center !important;
    background: #f2f2f2 !important; /* Matches your label color */
    border-bottom: 1px solid #a2a9b1 !important;
    margin-bottom: 5px !important;
}

.pi-image .tabber__tab {
    font-family: 'Crimson Pro', serif !important;
    font-size: 14px !important;
    padding: 5px 10px !important;
    cursor: pointer !important;
}

.pi-image .tabber__tab--active {
    background-color: var(--kh-green) !important;
    color: white !important;
    font-weight: bold !important;
}