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:
/* --- LIQUIPEDIA STYLE UNIFIED BOX --- */
/* --- TABLE-BASED INFOBOX (Bulletproof) --- */


/* 1. The Outer Container (The only part with a border) */
table.infobox {
.infobox {
     float: right;
     float: right;
     clear: right;
     clear: right;
     width: 300px;
     width: 300px;
    background-color: var(--background-color-surface, #fff);
    border: 1px solid #a2a9b1;
    border-collapse: collapse; /* Merges borders so no "double lines" */
     margin-left: 1rem;
     margin-left: 1rem;
     margin-bottom: 1rem;
     margin-bottom: 1rem;
     padding: 0;
     font-size: 0.9rem;
   
    /* Design: One solid box */
    background-color: var(--background-color-surface, #fff);
    border: 1px solid #a2a9b1; /* Standard Grey Border */
    border-radius: 2px; /* Very slight rounding like Liquipedia */
     box-shadow: 0 1px 2px rgba(0,0,0,0.1);
     box-shadow: 0 1px 2px rgba(0,0,0,0.1);
   
    font-size: 0.9rem;
    color: var(--color-base, #222);
}
}


/* 2. The Header */
/* The Main Title (Caption) */
.infobox-header {
table.infobox caption {
     text-align: center;
     background-color: #2b7bb9; /* Liquipedia Blue */
    color: #fff;
     font-weight: bold;
     font-weight: bold;
     padding: 10px;
     padding: 10px;
     font-size: 1.1rem;
     font-size: 1.1rem;
      
     border: 1px solid #a2a9b1;
    /* Liquipedia Blue */
     border-bottom: none; /* Connects to the table */
    background-color: #2b7bb9;
    color: #ffffff;
     border-bottom: 1px solid #a2a9b1;
}
}


/* 3. The Image Area */
/* Sub-Headers (League Info, Game Settings) */
.infobox-image {
table.infobox .infobox-header {
    background-color: #f0f2f5; /* Light Grey to separate sections */
    color: #000;
     text-align: center;
     text-align: center;
     padding: 10px 0;
    font-weight: bold;
     background-color: #fff; /* Always white for images */
     padding: 6px;
     border-bottom: 1px solid #eaecf0;
     border-bottom: 1px solid #a2a9b1;
     border-top: 1px solid #a2a9b1;
}
}


/* 4. The Rows (Clean lines, no gaps) */
/* The Labels (Left Column) */
.infobox-row {
table.infobox th {
     display: flex;
     text-align: right;
    flex-direction: row; /* FORCE Side-by-Side */
     vertical-align: top;
     flex-wrap: nowrap;
     width: 40%; /* Fixed width for labels */
    align-items: center; /* Vertically center the text */
     padding: 8px 10px 8px 5px;
      
    /* Remove the "Card" look */
    margin: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
   
    /* Add a clean divider line */
    border-bottom: 1px solid #eaecf0;
     padding: 8px 12px;
}
 
/* 5. The Label (Left Side) */
.infobox-label {
    flex: 0 0 45%; /* Takes up 45% of the width */
    max-width: 45%;
   
     font-weight: bold;
     font-weight: bold;
     color: #54595d;
     color: #54595d;
     text-align: right; /* Aligns text near the center line */
     background-color: transparent;
     padding-right: 15px; /* Space between label and value */
     border-bottom: 1px solid #eaecf0;
}
}


/* 6. The Value (Right Side) */
/* The Values (Right Column) */
.infobox-row > span:last-child {
table.infobox td {
    flex: 1;
     text-align: left;
     text-align: left;
     color: var(--color-base, #222);
     vertical-align: top;
    padding: 8px 5px 8px 10px;
    border-bottom: 1px solid #eaecf0;
     word-break: break-word;
     word-break: break-word;
}
}


/* Optional: Zebra Striping (Makes it look like data) */
/* Image Cell */
.infobox-row:nth-child(even) {
table.infobox .infobox-image {
     background-color: rgba(0,0,0,0.02) !important;
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #eaecf0;
     background-color: #fff;
}
}


/* --- DARK MODE ADJUSTMENTS --- */
/* --- DARK MODE ADJUSTMENTS --- */
html.skin-citizen-dark .infobox-header,
html.skin-citizen-dark table.infobox caption {
html[data-theme="dark"] .infobox-header {
     background-color: #3a6c8e;
     background-color: #3a6c8e;
     border-bottom: 1px solid #4a4d50;
     border-color: #4a4d50;
}
}


html.skin-citizen-dark .infobox,
html.skin-citizen-dark table.infobox,  
html[data-theme="dark"] .infobox {
html.skin-citizen-dark table.infobox .infobox-header {
     background-color: #202124;
     background-color: #202124;
     border-color: #4a4d50;
     border-color: #4a4d50;
    color: #eaecf0;
}
}


html.skin-citizen-dark .infobox-row,
html.skin-citizen-dark table.infobox th {
html[data-theme="dark"] .infobox-row {
    color: #c8ccd1;
     border-bottom: 1px solid #4a4d50;
     border-bottom: 1px solid #4a4d50;
}
}


html.skin-citizen-dark .infobox-image,
html.skin-citizen-dark table.infobox td {
html[data-theme="dark"] .infobox-image {
     border-bottom: 1px solid #4a4d50;
     background-color: #202124;
}
}

Revision as of 02:11, 29 December 2025

/* --- TABLE-BASED INFOBOX (Bulletproof) --- */

table.infobox {
    float: right;
    clear: right;
    width: 300px;
    background-color: var(--background-color-surface, #fff);
    border: 1px solid #a2a9b1;
    border-collapse: collapse; /* Merges borders so no "double lines" */
    margin-left: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* The Main Title (Caption) */
table.infobox caption {
    background-color: #2b7bb9; /* Liquipedia Blue */
    color: #fff;
    font-weight: bold;
    padding: 10px;
    font-size: 1.1rem;
    border: 1px solid #a2a9b1;
    border-bottom: none; /* Connects to the table */
}

/* Sub-Headers (League Info, Game Settings) */
table.infobox .infobox-header {
    background-color: #f0f2f5; /* Light Grey to separate sections */
    color: #000;
    text-align: center;
    font-weight: bold;
    padding: 6px;
    border-bottom: 1px solid #a2a9b1;
    border-top: 1px solid #a2a9b1;
}

/* The Labels (Left Column) */
table.infobox th {
    text-align: right;
    vertical-align: top;
    width: 40%; /* Fixed width for labels */
    padding: 8px 10px 8px 5px;
    font-weight: bold;
    color: #54595d;
    background-color: transparent;
    border-bottom: 1px solid #eaecf0;
}

/* The Values (Right Column) */
table.infobox td {
    text-align: left;
    vertical-align: top;
    padding: 8px 5px 8px 10px;
    border-bottom: 1px solid #eaecf0;
    word-break: break-word;
}

/* Image Cell */
table.infobox .infobox-image {
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #eaecf0;
    background-color: #fff;
}

/* --- DARK MODE ADJUSTMENTS --- */
html.skin-citizen-dark table.infobox caption {
    background-color: #3a6c8e;
    border-color: #4a4d50;
}

html.skin-citizen-dark table.infobox, 
html.skin-citizen-dark table.infobox .infobox-header {
    background-color: #202124;
    border-color: #4a4d50;
    color: #eaecf0;
}

html.skin-citizen-dark table.infobox th {
    color: #c8ccd1;
    border-bottom: 1px solid #4a4d50;
}

html.skin-citizen-dark table.infobox td {
    border-bottom: 1px solid #4a4d50;
}