Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 1: Line 1:
/* --- HTML TABLE INFOBOX (The Fix) --- */
/* --- PREMIUM ESPORTS INFOBOX --- */
 
/* 1. DEFINE YOUR BRAND (Change this hex code to match your logo!) */
:root {
    --brand-color: #2b7bb9;      /* Default: Liquipedia Blue */
    --brand-dark: #1e5c8e;        /* A slightly darker version for borders */
    --header-bg: #f4f5f7;        /* Light grey for section headers */
}
 
/* 2. THE CARD (Container) */
table.infobox {
table.infobox {
     float: right;
     float: right;
     clear: right;
     clear: right;
     width: 300px;
     width: 300px;
   
    /* Modern Card Look */
     background-color: var(--background-color-surface, #fff);
     background-color: var(--background-color-surface, #fff);
     border: 1px solid #a2a9b1;
     border: 1px solid #c8ccd1;
     border-collapse: collapse;
    border-top: 4px solid var(--brand-color); /* The "Brand Bar" at the top */
     margin-left: 1rem;
    border-radius: 4px; /* Soft corners */
     margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Soft, expensive-looking shadow */
   
     border-collapse: separate; /* Allows border-radius to work */
    border-spacing: 0;
     margin-left: 1.5rem;
     margin-bottom: 1.5rem;
     font-size: 0.9rem;
     font-size: 0.9rem;
     box-shadow: 0 1px 2px rgba(0,0,0,0.1);
     overflow: hidden;
}
}


/* Caption (Blue Header) */
/* 3. MAIN TITLE (The "BGIS 2026" part) */
table.infobox caption {
table.infobox caption {
     background-color: #2b7bb9;
     background-color: transparent;
     color: #fff;
     color: var(--color-base, #202122);
     font-weight: bold;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
     padding: 10px;
     font-weight: 800; /* Extra Bold */
     font-size: 1.1rem;
     font-size: 1.25rem; /* Larger Title */
     border: 1px solid #a2a9b1;
    padding: 15px 10px;
     border-bottom: none;
    text-align: center;
     text-transform: uppercase; /* "Sports" look */
     letter-spacing: 0.5px;
}
}


/* Section Headers */
/* 4. SECTION HEADERS (League Info, Settings) */
table.infobox th.infobox-header {
table.infobox th.infobox-header {
     background-color: #f0f2f5;
     background-color: var(--header-bg);
     color: #000;
     color: #4a4a4a;
     text-align: center;
     text-align: center;
     padding: 6px;
    font-weight: 700;
     border-bottom: 1px solid #a2a9b1;
    font-size: 0.85rem;
     border-top: 1px solid #a2a9b1;
    text-transform: uppercase;
    letter-spacing: 1px;
     padding: 8px;
     border-top: 1px solid #e1e3e6;
     border-bottom: 1px solid #e1e3e6;
}
}


/* Labels (Left) */
/* 5. LABELS (Left Column) */
table.infobox th {
table.infobox th {
     text-align: right;
     text-align: right;
     width: 40%;
     width: 40%;
     padding: 8px 10px 8px 5px;
     padding: 10px 12px 10px 5px;
     font-weight: bold;
     font-weight: 600;
     color: #54595d;
     color: #666; /* Softer text for labels */
     border-bottom: 1px solid #eaecf0;
    font-size: 0.85rem;
     border-bottom: 1px solid #f0f0f0;
}
}


/* Values (Right) */
/* 6. VALUES (Right Column) */
table.infobox td {
table.infobox td {
     text-align: left;
     text-align: left;
     padding: 8px 5px 8px 10px;
     padding: 10px 5px 10px 10px;
     border-bottom: 1px solid #eaecf0;
    font-weight: 500;
    color: var(--color-base, #222);
     border-bottom: 1px solid #f0f0f0;
     word-break: break-word;
     word-break: break-word;
}
}


/* Images */
/* 7. IMAGES */
table.infobox td.infobox-image {
table.infobox td.infobox-image {
     text-align: center;
     text-align: center;
     padding: 10px;
     padding: 0 0 15px 0; /* Padding only at bottom */
     background-color: #fff;
     background-color: transparent;
    border-bottom: none;
}
 
/* --- DARK MODE (Citizen Skin Integration) --- */
html.skin-citizen-dark :root {
    --brand-color: #3a8ccf; /* Brighter blue for dark mode visibility */
    --header-bg: #2a2b2e;   /* Darker grey for headers */
}
}


/* Dark Mode */
html.skin-citizen-dark table.infobox {
html.skin-citizen-dark table.infobox caption { background-color: #3a6c8e; border-color: #4a4d50; }
    background-color: #202124;
html.skin-citizen-dark table.infobox, html.skin-citizen-dark table.infobox th.infobox-header { background-color: #202124; border-color: #4a4d50; color: #eaecf0; }
    border-color: #444;
html.skin-citizen-dark table.infobox th { color: #c8ccd1; border-color: #4a4d50; }
    border-top-color: var(--brand-color);
html.skin-citizen-dark table.infobox td { border-color: #4a4d50; }
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
html.skin-citizen-dark table.infobox td.infobox-image { background-color: #202124; }
}
 
html.skin-citizen-dark table.infobox caption {
    color: #ededed;
}
 
html.skin-citizen-dark table.infobox th.infobox-header {
    background-color: var(--header-bg);
    color: #ccc;
    border-color: #333;
}
 
html.skin-citizen-dark table.infobox th {
    color: #a0a0a0;
    border-color: #333;
}
 
html.skin-citizen-dark table.infobox td {
    color: #eee;
    border-color: #333;
}

Revision as of 02:18, 29 December 2025

/* --- PREMIUM ESPORTS INFOBOX --- */

/* 1. DEFINE YOUR BRAND (Change this hex code to match your logo!) */
:root {
    --brand-color: #2b7bb9;       /* Default: Liquipedia Blue */
    --brand-dark: #1e5c8e;        /* A slightly darker version for borders */
    --header-bg: #f4f5f7;         /* Light grey for section headers */
}

/* 2. THE CARD (Container) */
table.infobox {
    float: right;
    clear: right;
    width: 300px;
    
    /* Modern Card Look */
    background-color: var(--background-color-surface, #fff);
    border: 1px solid #c8ccd1;
    border-top: 4px solid var(--brand-color); /* The "Brand Bar" at the top */
    border-radius: 4px; /* Soft corners */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Soft, expensive-looking shadow */
    
    border-collapse: separate; /* Allows border-radius to work */
    border-spacing: 0;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    overflow: hidden;
}

/* 3. MAIN TITLE (The "BGIS 2026" part) */
table.infobox caption {
    background-color: transparent;
    color: var(--color-base, #202122);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 800; /* Extra Bold */
    font-size: 1.25rem; /* Larger Title */
    padding: 15px 10px;
    text-align: center;
    text-transform: uppercase; /* "Sports" look */
    letter-spacing: 0.5px;
}

/* 4. SECTION HEADERS (League Info, Settings) */
table.infobox th.infobox-header {
    background-color: var(--header-bg);
    color: #4a4a4a;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px;
    border-top: 1px solid #e1e3e6;
    border-bottom: 1px solid #e1e3e6;
}

/* 5. LABELS (Left Column) */
table.infobox th {
    text-align: right;
    width: 40%;
    padding: 10px 12px 10px 5px;
    font-weight: 600;
    color: #666; /* Softer text for labels */
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
}

/* 6. VALUES (Right Column) */
table.infobox td {
    text-align: left;
    padding: 10px 5px 10px 10px;
    font-weight: 500;
    color: var(--color-base, #222);
    border-bottom: 1px solid #f0f0f0;
    word-break: break-word;
}

/* 7. IMAGES */
table.infobox td.infobox-image {
    text-align: center;
    padding: 0 0 15px 0; /* Padding only at bottom */
    background-color: transparent;
    border-bottom: none;
}

/* --- DARK MODE (Citizen Skin Integration) --- */
html.skin-citizen-dark :root {
    --brand-color: #3a8ccf; /* Brighter blue for dark mode visibility */
    --header-bg: #2a2b2e;   /* Darker grey for headers */
}

html.skin-citizen-dark table.infobox {
    background-color: #202124;
    border-color: #444;
    border-top-color: var(--brand-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

html.skin-citizen-dark table.infobox caption {
    color: #ededed;
}

html.skin-citizen-dark table.infobox th.infobox-header {
    background-color: var(--header-bg);
    color: #ccc;
    border-color: #333;
}

html.skin-citizen-dark table.infobox th {
    color: #a0a0a0;
    border-color: #333;
}

html.skin-citizen-dark table.infobox td {
    color: #eee;
    border-color: #333;
}