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

MediaWiki interface page
Revision as of 01:39, 29 December 2025 by Esportsamaze (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* --- CITIZEN NATIVE INFOBOX --- */

.infobox {
    float: right;
    clear: right;
    width: 300px;
    padding: 0;
    margin-left: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    
    /* THE MAGIC PART: Use Citizen's variables */
    /* This automatically turns Dark Grey in Dark Mode and White in Light Mode */
    background-color: var(--background-color-surface, #fff); 
    border: 1px solid var(--border-color-base, #eaecf0);
    color: var(--color-base, #222);
    
    border-radius: var(--border-radius-base, 4px);
    box-shadow: var(--box-shadow-card, 0 1px 2px rgba(0,0,0,0.1));
    overflow: hidden;
}

/* Header: Liquipedia Blue */
.infobox-header {
    text-align: center;
    font-weight: bold;
    padding: 12px;
    font-size: 1.1rem;
    
    /* We force Blue, but use a variable for text to be safe */
    background-color: #2b7bb9; 
    color: #ffffff; 
}

/* Image Area */
.infobox-image {
    text-align: center;
    padding: 15px 0;
    
    /* Match the box background */
    background-color: var(--background-color-surface, #fff);
    border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
}

/* Rows */
.infobox-row {
    display: flex;
    flex-direction: row;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
}

.infobox-label {
    width: 90px;
    min-width: 90px;
    padding-right: 12px;
    font-weight: 600;
    opacity: 0.8;
}

/* --- DARK MODE HEADER OVERRIDE --- */
/* We only need to override the Header Blue, because everything else 
   above updates automatically thanks to the variables. */

html.skin-citizen-dark .infobox-header,
html[data-theme="dark"] .infobox-header {
    background-color: #3a6c8e; /* Muted Blue for Dark Mode */
    border-bottom: 1px solid var(--border-color-base);
}