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

MediaWiki:Common.css: Difference between revisions

From PC Gaming Shelter
No edit summary
Tag: Manual revert
No edit summary
Tag: Reverted
Line 21: Line 21:
}
}


/* --- FIXED CHECKBOX GRID --- */
/* --- FORM INPUT FIXES --- */


/* 1. Set up the grid on the wrapper span generated by Page Forms */
/* 1. Force Text Inputs, Date Pickers, and Selects to be 100% Width */
.checkbox-grid > span {
/* We target the specific form class to ensure we win over default styles */
     display: grid !important;
.game-form input[type="text"],
     /* Create nice even columns, min 150px wide */
.game-form input.hasDatepicker,
     grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;  
.game-form .pf-form-field input {
     gap: 8px !important;
     width: 100% !important;
     width: 100%;
     box-sizing: border-box !important;
    height: 36px !important;
    padding: 6px 10px !important;
    border: 1px solid #ccc !important;
     border-radius: 4px !important;
    font-family: sans-serif !important;
    font-size: 13px !important;
     box-shadow: none !important;
     margin: 0 !important;
}
}


/* 2. Style the individual items (The Checkbox + Text) */
/* 2. Fix the Series Token Box (Select2) to be full width */
.checkbox-grid .checkboxLabel {
.select2-container {
     display: flex !important;
     width: 100% !important;
     align-items: center;
     display: block !important;
    background: #f9f9f9;
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 4px;
    height: 25px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
}
}
 
.select2-container .select2-selection--multiple {
/* 3. Hover Effect */
    min-height: 36px !important;
.checkbox-grid .checkboxLabel:hover {
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
     background: #fff;
     background: #fff;
     border-color: #3366cc;
     padding: 4px !important;
    cursor: pointer;
}
}


/* 4. Hide invisible <br> tags and delimiters that break layout */
/* --- CHECKBOX GRID (The Fix) --- */
.checkbox-grid br {
 
     display: none !important;
/* 1. The Container: Hide the commas using font-size 0 */
}
.checkbox-grid {
     display: block;
    width: 100%;
    font-size:

Revision as of 12:47, 10 February 2026

/* 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 columns helpers */
.hide-Genre .col-genre, 
.hide-Platform .col-platform, 
.hide-Mode .col-mode,
.hide-Players .col-players {
    display: none !important;
}

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

/* 1. Force Text Inputs, Date Pickers, and Selects to be 100% Width */
/* We target the specific form class to ensure we win over default styles */
.game-form input[type="text"], 
.game-form input.hasDatepicker,
.game-form .pf-form-field input {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 36px !important;
    padding: 6px 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-family: sans-serif !important;
    font-size: 13px !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* 2. Fix the Series Token Box (Select2) to be full width */
.select2-container {
    width: 100% !important;
    display: block !important;
}
.select2-container .select2-selection--multiple {
    min-height: 36px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background: #fff;
    padding: 4px !important;
}

/* --- CHECKBOX GRID (The Fix) --- */

/* 1. The Container: Hide the commas using font-size 0 */
.checkbox-grid {
    display: block;
    width: 100%;
    font-size: