PC Gaming Shelter
An archive dedicated to preserving PC Gaming history and more

MediaWiki:Common.css

From PC Gaming Shelter
Revision as of 12:30, 10 February 2026 by Sedaris (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.
/* CSS placed here will be applied to all skins */

/* --- TABLE FIXES (Keep these) --- */
.fullwidth { width: 100% !important; }
.nowrap { white-space: nowrap; }

table.wikitable th a,
table.wikitable th.headerSort a {
    pointer-events: none !important;
    cursor: pointer !important;
    color: black !important;
    text-decoration: none !important;
}

.hide-Genre .col-genre, 
.hide-Platform .col-platform, 
.hide-Mode .col-mode,
.hide-Players .col-players {
    display: none !important;
}

/* --- FORM FIXES --- */

/* 1. Force Inputs to fill their container (Fixes Date & Version) */
.game-form input[type="text"], 
.game-form .full-width-input {
    width: 100% !important;
    box-sizing: border-box;
    height: 30px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* 2. Specific fix for the Date Picker */
.game-form input.hasDatepicker {
    width: 100% !important;
    box-sizing: border-box;
    height: 30px;
    font-family: sans-serif;
}

/* 3. Specific fix for the Series (Token) Box */
.select2-container {
    width: 100% !important;
    display: block !important;
}
.select2-selection--multiple {
    min-height: 30px;
    border: 1px solid #ccc !important;
    padding: 2px !important;
}

/* --- CHECKBOX GRID SYSTEM --- */

/* The Container */
.checkbox-grid {
    font-size: 0; /* Hides the commas between items */
}

/* The Individual Items */
.checkbox-grid span.checkboxLabel {
    display: inline-flex; /* Sit next to each other */
    align-items: center;
    
    /* Fixed width for perfect alignment */
    width: 145px; 
    
    font-size: 13px; /* Restore text size */
    background: #fcfcfc;
    border: 1px solid #eee;
    margin: 0 5px 5px 0; /* Tiny gap between boxes */
    padding: 3px 6px;
    border-radius: 3px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    height: 26px;
}

.checkbox-grid span.checkboxLabel:hover {
    background: #f0f8ff;
    border-color: #3366cc;
    cursor: pointer;
}

/* Hide line breaks */
.checkbox-grid br { display: none; }