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
Tag: Reverted
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* --- FORM INPUT FIXES --- */


/* --- TABLE FIXES (Keep these) --- */
/* 1. Force the Series Box (Token Field) to be full width and consistent height */
.fullwidth { width: 100% !important; }
.select2-container {
.nowrap { white-space: nowrap; }
    width: 100% !important;
 
     max-width: 100% !important;
table.wikitable th a,
     box-sizing: border-box;
table.wikitable th.headerSort a {
     pointer-events: none !important;
     cursor: pointer !important;
    color: black !important;
    text-decoration: none !important;
}
}
 
.select2-container .select2-selection--multiple {
/* Hide columns helpers */
    min-height: 35px;
.hide-Genre .col-genre,
    border: 1px solid #ccc !important;
.hide-Platform .col-platform,
     border-radius: 3px !important;
.hide-Mode .col-mode,
    background: #fff;
.hide-Players .col-players {
    padding: 4px;
     display: none !important;
}
}


/* --- FIXED CHECKBOX GRID --- */
/* 2. Force the Date Picker to match standard inputs */
 
input.hasDatepicker {
/* 1. Set up the grid on the wrapper span generated by Page Forms */
     width: 100% !important;
.checkbox-grid > span {
     box-sizing: border-box; /* Ensures padding doesn't break width */
     display: grid !important;
     height: 35px;
     /* Create nice even columns, min 150px wide */
     padding: 5px 8px;
     grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;  
     border: 1px solid #ccc;
     gap: 8px !important;
    border-radius: 3px;
     width: 100%;
    font-family: sans-serif;
}
}


/* 2. Style the individual items (The Checkbox + Text) */
/* 3. Force all standard Text Inputs in the form to look uniform */
.checkbox-grid .checkboxLabel {
/* This targets inputs inside our specific form wrapper */
     display: flex !important;
.game-form input[type="text"] {
     align-items: center;
     box-sizing: border-box;
     background: #f9f9f9;
     height: 35px;
     padding: 5px 8px;
     border: 1px solid #ccc;
     border: 1px solid #ccc;
    padding: 6px 10px;
     border-radius: 3px;
     border-radius: 4px;
    height: 25px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
}
 
/* 3. Hover Effect */
.checkbox-grid .checkboxLabel:hover {
    background: #fff;
    border-color: #3366cc;
    cursor: pointer;
}
 
/* 4. Hide invisible <br> tags and delimiters that break layout */
.checkbox-grid br {
    display: none !important;
}
}

Revision as of 12:25, 10 February 2026

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

/* 1. Force the Series Box (Token Field) to be full width and consistent height */
.select2-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}
.select2-container .select2-selection--multiple {
    min-height: 35px;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    background: #fff;
    padding: 4px;
}

/* 2. Force the Date Picker to match standard inputs */
input.hasDatepicker {
    width: 100% !important;
    box-sizing: border-box; /* Ensures padding doesn't break width */
    height: 35px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: sans-serif;
}

/* 3. Force all standard Text Inputs in the form to look uniform */
/* This targets inputs inside our specific form wrapper */
.game-form input[type="text"] {
    box-sizing: border-box;
    height: 35px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}