MediaWiki:Common.css: Difference between revisions

From Lenn's Fun Stuff

No edit summary
No edit summary
 
(130 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================================
/* Version 36.1 - Restored Anisa Factory Proportions
   ANISA SKIN - VARIABLE HIJACK & EDIT PAGE FIX
   Goal: Original Anisa layout + KH Colors/Fonts + Readable Tabs
  ============================================================ */
*/


/* 1. OVERWRITING ANISA'S INTERNAL VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap');
body.dark-mode {
 
    --anisa-bg: #121212 !important;
/* --- 1. GLOBAL FONTS --- */
     --anisa-content-bg: #1a1a1a !important;
body {
     --anisa-border: #3399ff !important; /* The Blue Glow */
    font-family: 'Crimson Pro', serif !important;
     --anisa-text: #e0e0e0 !important;
}
     --anisa-link: #3399ff !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;
}
}


/* 2. THE EDIT PAGE & SEARCH BAR (The "Nuclear" Text Fix) */
.pi-data-label {  
/* Targets the search box, the big edit box, and all inputs */
     background-color: #f2f2f2 !important;  
body.dark-mode input,
     padding: 8px !important;  
body.dark-mode textarea,
     border: 1px solid #a2a9b1 !important;  
body.dark-mode #wpTextbox1,
     font-weight: bold !important;  
body.dark-mode .ace_editor, /* If you use the CodeEditor extension */
body.dark-mode #searchInput {
     background-color: #222222 !important;
     color: #ffffff !important;
     border: 1px solid #3399ff !important;
     -webkit-text-fill-color: #ffffff !important; /* Force search text visibility */
}
}


/* 3. ALERTS & NOTICES (Specific Selectors) */
.pi-data-value {
body.dark-mode .mw-echo-notifications-badge,
    padding: 8px !important;
body.dark-mode #pt-notifications-notice a,
    border-bottom: 1px solid #a2a9b1 !important;  
body.dark-mode #pt-notifications-alert a {
    filter: invert(1) brightness(2) !important;
}
}


/* 4. THE BLUE LINES (Page Structure) */
/* --- 5. TABLE OF CONTENTS --- */
/* We target the specific 'card' and 'post' classes Anisa uses for content */
#toc, .toc {
body.dark-mode .anisa-post,
     background-color: #f8f9fa !important;
body.dark-mode .anisa-page-content,
     border: 1px solid #a2a9b1 !important;
body.dark-mode .card,
     padding: 8px !important;
body.dark-mode #content,
body.dark-mode .mw-body {
     background-color: #1a1a1a !important;
     border: 2px solid #3399ff !important; /* Thicker blue lines for visibility */
     box-shadow: 0 0 10px rgba(51, 153, 255, 0.3) !important;
}
}


/* 5. KH INFOBOX - SYNCED WITH DARK MODE */
/* Styling TabberNeue inside PortableInfobox */
body.dark-mode .portable-infobox {
.pi-image .tabber__tabs {
     background-color: #1a1a1a !important;
    display: flex !important;
     border: 2px solid #3399ff !important;
    justify-content: center !important;
     background: #f2f2f2 !important; /* Matches your label color */
     border-bottom: 1px solid #a2a9b1 !important;
    margin-bottom: 5px !important;
}
}


body.dark-mode .pi-title {
.pi-image .tabber__tab {
     background-color: #3399ff !important;
    font-family: 'Crimson Pro', serif !important;
     color: #000000 !important;
     font-size: 14px !important;
    padding: 5px 10px !important;
     cursor: pointer !important;
}
}


body.dark-mode .pi-header {
.pi-image .tabber__tab--active {
     background-color: #000000 !important;
     background-color: var(--kh-green) !important;
     color: #3399ff !important;
     color: white !important;
    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;
}