MediaWiki:Common.css: Difference between revisions

From Lenn's Fun Stuff

No edit summary
No edit summary
Line 1: Line 1:
/* ============================================================
/* ============================================================
   ANISA SKIN - VARIABLE HIJACK & EDIT PAGE FIX
   PORTABLE INFOBOX - KH STYLE (REVERTED TO STABLE LIGHT)
   ============================================================ */
   ============================================================ */


/* 1. OVERWRITING ANISA'S INTERNAL VARIABLES */
/* Main Container */
body.dark-mode {
body.mediawiki .portable-infobox {
     --anisa-bg: #121212 !important;
     background-color: #ffffff !important;
     --anisa-content-bg: #1a1a1a !important;
     border: 2px solid #003366 !important;
     --anisa-border: #3399ff !important; /* The Blue Glow */
    width: 320px !important;
     --anisa-text: #e0e0e0 !important;
    float: right !important;
     --anisa-link: #3399ff !important;
     clear: right !important;
    margin: 0 0 1em 1em !important;
    padding: 0 !important;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15) !important;
     font-family: "Georgia", serif !important;
     overflow: hidden !important;
}
}


/* 2. THE EDIT PAGE & SEARCH BAR (The "Nuclear" Text Fix) */
/* 1. THE TITLE - Forced Blue */
/* Targets the search box, the big edit box, and all inputs */
body.mediawiki .pi-title {
body.dark-mode input,
     background-color: #003366 !important;  
body.dark-mode textarea,
body.dark-mode #wpTextbox1,
body.dark-mode .ace_editor, /* If you use the CodeEditor extension */
body.dark-mode #searchInput {
     background-color: #222222 !important;
     color: #ffffff !important;
     color: #ffffff !important;
     border: 1px solid #3399ff !important;
     font-size: 20px !important;  
     -webkit-text-fill-color: #ffffff !important; /* Force search text visibility */
     font-weight: bold !important;
    text-align: center !important;
    padding: 12px !important;
    display: block !important;
}
}


/* 3. ALERTS & NOTICES (Specific Selectors) */
/* 2. SECTION HEADERS - Forced Grey */
body.dark-mode .mw-echo-notifications-badge,
body.mediawiki .pi-header {
body.dark-mode #pt-notifications-notice a,
    background-color: #4a4a4a !important;
body.dark-mode #pt-notifications-alert a {
    color: #ffffff !important;
     filter: invert(1) brightness(2) !important;
    font-weight: bold !important;
    text-align: center !important;
    padding: 8px 0 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    border-top: 1px solid #333 !important;
    display: block !important;
}
 
/* 3. IMAGE AREA */
body.mediawiki .pi-image {
    display: block !important;
    background-color: #f8f9fa !important;
    text-align: center !important;
     padding: 10px !important;
}
}


/* 4. THE BLUE LINES (Page Structure) */
body.mediawiki .pi-image img {
/* We target the specific 'card' and 'post' classes Anisa uses for content */
     max-width: 100% !important;
body.dark-mode .anisa-post,
     height: auto !important;
body.dark-mode .anisa-page-content,
body.dark-mode .card,
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 */
/* 4. DATA LABELS & VALUES */
body.dark-mode .portable-infobox {
body.mediawiki .pi-data-label {
     background-color: #1a1a1a !important;
     background-color: #f2f2f2 !important;
     border: 2px solid #3399ff !important;
     color: #333333 !important;
    font-weight: bold !important;
    padding: 8px 10px !important;
}
}


body.dark-mode .pi-title {
body.mediawiki .pi-data-value {
     background-color: #3399ff !important;
     background-color: #ffffff !important;
     color: #000000 !important;
     color: #333333 !important;
    padding: 8px 10px !important;
}
}


body.dark-mode .pi-header {
/* 5. LISTS */
     background-color: #000000 !important;
body.mediawiki .pi-data-value ul {
     color: #3399ff !important;
     margin: 0 !important;
     padding-left: 1.5em !important;
}
}

Revision as of 00:55, 12 March 2026

/* ============================================================
   PORTABLE INFOBOX - KH STYLE (REVERTED TO STABLE LIGHT)
   ============================================================ */

/* Main Container */
body.mediawiki .portable-infobox {
    background-color: #ffffff !important;
    border: 2px solid #003366 !important; 
    width: 320px !important;
    float: right !important;
    clear: right !important;
    margin: 0 0 1em 1em !important;
    padding: 0 !important;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15) !important;
    font-family: "Georgia", serif !important;
    overflow: hidden !important;
}

/* 1. THE TITLE - Forced Blue */
body.mediawiki .pi-title {
    background-color: #003366 !important; 
    color: #ffffff !important;
    font-size: 20px !important; 
    font-weight: bold !important;
    text-align: center !important;
    padding: 12px !important;
    display: block !important;
}

/* 2. SECTION HEADERS - Forced Grey */
body.mediawiki .pi-header {
    background-color: #4a4a4a !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-align: center !important;
    padding: 8px 0 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    border-top: 1px solid #333 !important;
    display: block !important;
}

/* 3. IMAGE AREA */
body.mediawiki .pi-image {
    display: block !important;
    background-color: #f8f9fa !important; 
    text-align: center !important;
    padding: 10px !important;
}

body.mediawiki .pi-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* 4. DATA LABELS & VALUES */
body.mediawiki .pi-data-label {
    background-color: #f2f2f2 !important;
    color: #333333 !important;
    font-weight: bold !important;
    padding: 8px 10px !important;
}

body.mediawiki .pi-data-value {
    background-color: #ffffff !important;
    color: #333333 !important;
    padding: 8px 10px !important;
}

/* 5. LISTS */
body.mediawiki .pi-data-value ul {
    margin: 0 !important;
    padding-left: 1.5em !important;
}