MediaWiki:Common.css: Difference between revisions

From Lenn's Fun Stuff

Created page with "============================================================ PORTABLE INFOBOX - KHWIKI STYLE (REWRITTEN) ============================================================: 1. Main Container - Red border helps us see if it's loading: .portable-infobox { border: 3px solid red !important; background-color: #ffffff; width: 280px; float: right; margin: 0 0 1em 1em; padding: 0; box-shadow: 2px 2px 5px rgba(0,0,0,0.1); font-family: s..."
 
No edit summary
 
(169 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================================
/* Version 36.1 - Restored Anisa Factory Proportions
   PORTABLE INFOBOX - KHWIKI STYLE (REWRITTEN)
   Goal: Original Anisa layout + KH Colors/Fonts + Readable Tabs
  ============================================================ */
*/


/* 1. Main Container - Red border helps us see if it's loading */
@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 {
.portable-infobox {
     border: 3px solid red !important;  
     background-color: #fff !important;
     background-color: #ffffff;
     border: 1px solid #a2a9b1 !important;
     width: 280px;
     width: 270px !important;
     float: right;
     float: right !important;
     margin: 0 0 1em 1em;
     margin: 0 0 1em 1.2em !important;
    padding: 0;
     border-collapse: collapse !important;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
     border-spacing: 0 !important;
     font-family: sans-serif;
     font-size: 12px;
}
}


/* 2. Top Title Bar - Deep KH Blue */
.portable-infobox .pi-title {
.pi-title {
     background-color: #ffd700 !important;
     background-color: #003366 !important;  
     color: #000 !important;
     color: #ffffff !important;
     font-family: 'Cinzel', serif !important;
     font-family: "Georgia", serif;
     padding: 15px 10px !important;
     font-size: 14px;
     font-size: 1.25em !important;
     font-weight: bold;
     text-align: center !important;
     text-align: center;
     border-bottom: 1px solid #a2a9b1 !important;
    padding: 10px;
     border-bottom: 2px solid #000;
}
}


/* 3. Image Area - HOT PINK for testing.
.portable-infobox .pi-header {
  If this works, your character image should appear inside the pink. */
     background-color: #3e5a47 !important;
.pi-image {
     color: #fff !important;
     display: block !important;
     font-family: 'Cinzel', serif !important;
    visibility: visible !important;
     padding: 10px 5px !important;
     background-color: #FFCCE6 !important;  
     text-align: center !important;
     border: 2px dashed #000 !important;
     min-height: 200px !important;
     text-align: center;
    padding: 10px;
}
}


.pi-image img {
.pi-data-label {  
     max-width: 100% !important;
     background-color: #f2f2f2 !important;  
     height: auto !important;
     padding: 8px !important;  
     border: 1px solid #ccc;
     border: 1px solid #a2a9b1 !important;  
     background: #fff;
     font-weight: bold !important;  
}
}


/* 4. Section Headers (Biography, Physical, etc.) */
.pi-data-value {  
.pi-header {
     padding: 8px !important;  
    background-color: #4a4a4a !important;
     border-bottom: 1px solid #a2a9b1 !important;  
    color: #ffffff !important;
    font-weight: bold;
    text-align: center;
     padding: 5px 0 !important;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
    display: block !important;
     border-top: 1px solid #333;
}
}


/* 5. Data Rows (The Side-by-Side Look) */
/* --- 5. TABLE OF CONTENTS --- */
.pi-data {
#toc, .toc {
     display: flex !important;
     background-color: #f8f9fa !important;
     flex-direction: row;
     border: 1px solid #a2a9b1 !important;
     border-bottom: 1px solid #eeeeee;
     padding: 8px !important;
}
}


/* The Label (Left Side - Grey) */
/* Styling TabberNeue inside PortableInfobox */
.pi-data-label {
.pi-image .tabber__tabs {
     background-color: #e9e9e9 !important;
     display: flex !important;
     color: #333 !important;
     justify-content: center !important;
     font-weight: bold;
     background: #f2f2f2 !important; /* Matches your label color */
    padding: 6px 8px;
     border-bottom: 1px solid #a2a9b1 !important;
    width: 35% !important;
     margin-bottom: 5px !important;
     border-right: 1px solid #ccc !important;
     font-size: 11px;
}
}


/* The Value (Right Side - White) */
.pi-image .tabber__tab {
.pi-data-value {
     font-family: 'Crimson Pro', serif !important;
     background-color: #ffffff !important;
     font-size: 14px !important;
     padding: 6px 8px;
     padding: 5px 10px !important;
     width: 65% !important;
     cursor: pointer !important;
     font-size: 11px;
}
}


/* Remove bottom border from last item */
.pi-image .tabber__tab--active {
.pi-data:last-child {
     background-color: var(--kh-green) !important;
     border-bottom: none;
     color: white !important;
}
     font-weight: bold !important;
/* NUCLEAR TEST - IF THE CHARACTER NAME IS LIME GREEN, CSS IS LOADING */
.pi-title {
    background-color: lime !important;
     color: black !important;
     border: 10px solid purple !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;
}