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
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


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

Revision as of 13:16, 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-Genre .col-genre, 
.hide-Platform .col-platform, 
.hide-Mode .col-mode,
.hide-Players .col-players {
    display: none !important;
}

/* --- SERIES BOX FIX --- */
/* Forces the Series token box to match the height of other inputs */
.select2-container {
    width: 100% !important;
    display: block !important;
}
.select2-container .select2-selection--multiple {
    min-height: 34px !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    background: #fff;
    padding: 2px !important;
}

/* --- CHECKBOX GRID (The Crash-Proof Alignment) --- */

/* 1. Hide the container's text (Hides the commas) */
.checkbox-grid {
    display: block;
    width: 100%;
    font-size: 0 !important; 
    line-height: 0 !important;
    margin-top: 5px;
}

/* 2. The Items: Make them visible blocks */
.checkbox-grid span {
    display: inline-block !important; /* Sit side-by-side */
    vertical-align: top;
    
    width: 32%; /* 3 Columns */
    margin-right: 1%;
    margin-bottom: 6px;
    
    /* RESTORE TEXT VISIBILITY */
    font-size: 13px !important; 
    line-height: normal !important;
    
    /* Box Styling */
    background: #fcfcfc;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 6px;
    box-sizing: border-box; 
    white-space: normal; /* Allow text wrapping */
}

/* 3. The Labels inside */
.checkbox-grid label {
    margin-left: 5px;
    cursor: pointer;
    font-weight: normal;
}

/* 4. Hover Effect */
.checkbox-grid span:hover {
    background: #f0f8ff;
    border-color: #3366cc;
    cursor: pointer;
}

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