MediaWiki:Common.css: Difference between revisions

m 2 revisions imported
No edit summary
 
(167 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');
.portable-infobox {
 
     border: 3px solid red !important;  
/* --- 1. GLOBAL FONTS --- */
    background-color: #ffffff;
body {
     width: 280px;
     font-family: 'Crimson Pro', serif !important;
     float: right;
}
     margin: 0 0 1em 1em;
 
     padding: 0;
/* --- 2. ANISA (DESKTOP) RESTORATION --- */
     box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
/* We remove the forced margins/paddings here to let Anisa look "Factory" */
    font-family: sans-serif;
.skin-anisa #content,
     font-size: 12px;
.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;  
}
}


/* 2. Top Title Bar - Deep KH Blue */
/* --- 3. COSMOS (MOBILE) PRESERVATION --- */
.pi-title {
/* This section ensures our mobile view doesn't change */
     background-color: #003366 !important;
.skin-cosmos #content {
    color: #ffffff !important;
     padding: 15px !important;
    font-family: "Georgia", serif;
     font-size: 15px !important;
     font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-bottom: 2px solid #000;
}
}


/* 3. Image Area - HOT PINK for testing.
/* --- 4. THE SEAMLESS INFOBOX (THE "LORE" FIX) --- */
  If this works, your character image should appear inside the pink. */
/* This keeps your Kingdom Hearts style intact across BOTH skins */
.pi-image {
.portable-infobox {
     display: block !important;
     background-color: #fff !important;
     visibility: visible !important;
     border: 1px solid #a2a9b1 !important;
     background-color: #FFCCE6 !important;  
     width: 270px !important;
     border: 2px dashed #000 !important;
     float: right !important;
     min-height: 200px !important;
     margin: 0 0 1em 1.2em !important;
     text-align: center;
     border-collapse: collapse !important;
     padding: 10px;
     border-spacing: 0 !important;
}
}


.pi-image img {
.portable-infobox .pi-title {
     max-width: 100% !important;
     background-color: #ffd700 !important;
     height: auto !important;
    color: #000 !important;
     border: 1px solid #ccc;
    font-family: 'Cinzel', serif !important;
     background: #fff;
    padding: 15px 10px !important;
     font-size: 1.25em !important;
     text-align: center !important;
     border-bottom: 1px solid #a2a9b1 !important;
}
}


/* 4. Section Headers (Biography, Physical, etc.) */
.portable-infobox .pi-header {
.pi-header {
     background-color: #3e5a47 !important;
     background-color: #4a4a4a !important;
     color: #fff !important;
     color: #ffffff !important;
     font-family: 'Cinzel', serif !important;
     font-weight: bold;
     padding: 10px 5px !important;
    text-align: center;
     text-align: center !important;
     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) */
.pi-data-label {  
.pi-data {
     background-color: #f2f2f2 !important;  
     display: flex !important;
     padding: 8px !important;  
     flex-direction: row;
     border: 1px solid #a2a9b1 !important;
     border-bottom: 1px solid #eeeeee;
    font-weight: bold !important;  
}
}


/* The Label (Left Side - Grey) */
.pi-data-value {  
.pi-data-label {
     padding: 8px !important;  
    background-color: #e9e9e9 !important;
     border-bottom: 1px solid #a2a9b1 !important;  
    color: #333 !important;
    font-weight: bold;
     padding: 6px 8px;
    width: 35% !important;
     border-right: 1px solid #ccc !important;
    font-size: 11px;
}
}


/* The Value (Right Side - White) */
/* --- 5. TABLE OF CONTENTS --- */
.pi-data-value {
#toc, .toc {
     background-color: #ffffff !important;
     background-color: #f8f9fa !important;
     padding: 6px 8px;
     border: 1px solid #a2a9b1 !important;
     width: 65% !important;
     padding: 8px !important;
    font-size: 11px;
}
}


/* Remove bottom border from last item */
/* Styling TabberNeue inside PortableInfobox */
.pi-data:last-child {
.pi-image .tabber__tabs {
     border-bottom: none;
    display: flex !important;
    justify-content: center !important;
    background: #f2f2f2 !important; /* Matches your label color */
     border-bottom: 1px solid #a2a9b1 !important;
    margin-bottom: 5px !important;
}
}
/* NUCLEAR TEST - IF THE CHARACTER NAME IS LIME GREEN, CSS IS LOADING */
 
.pi-title {
.pi-image .tabber__tab {
     background-color: lime !important;
     font-family: 'Crimson Pro', serif !important;
     color: black !important;
     font-size: 14px !important;
     border: 10px solid purple !important;
     padding: 5px 10px !important;
    cursor: pointer !important;
}
}


/* Adding the -box suffix to ensure we hit the right target */
.pi-image .tabber__tab--active {
.pi-image-box, .pi-media {
     background-color: var(--kh-green) !important;
     background-color: #FFCCE6 !important;  
     color: white !important;
     border: 5px solid #FF69B4 !important; /* Hot Pink */
     font-weight: bold !important;
     padding: 15px !important;
    display: block !important;
}
}