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: Reverted
No edit summary
Tag: Reverted
Line 20: Line 20:
}
}


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


/* 1. INPUTS: Force ALL inputs (Text, Date, Version) to fill their box */
/* 1. Force Inputs to fill their container (Fixes Date & Version) */
.game-form input[type="text"],
.game-form input[type="text"],  
.game-form input.hasDatepicker,
.game-form .full-width-input {
.game-form .pf-form-field input {
     width: 100% !important;
     width: 100% !important;  
     box-sizing: border-box;
     box-sizing: border-box !important;
     height: 30px;
     height: 38px !important;
     padding: 4px;
     padding: 8px !important;
     border: 1px solid #ccc;
     border: 1px solid #ccc !important;
     border-radius: 3px;
     border-radius: 4px !important;
}
 
/* 2. Specific fix for the Date Picker */
.game-form input.hasDatepicker {
    width: 100% !important;
    box-sizing: border-box;
    height: 30px;
     font-family: sans-serif;
     font-family: sans-serif;
}
}


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


/* 3. CHECKBOX GRID (The "Hammer" Fix) */
/* --- CHECKBOX GRID SYSTEM --- */
/* Hide the commas and line breaks */
 
/* The Container */
.checkbox-grid {
.checkbox-grid {
     font-size: 0 !important; /* Hides the commas */
     font-size: 0; /* Hides the commas between items */
    line-height: 0 !important;
}
}


/* Force the items to show up as text again and float side-by-side */
/* The Individual Items */
.checkbox-grid span.checkboxLabel {
.checkbox-grid span.checkboxLabel {
     display: inline-flex !important; /* Sit next to each other */
     display: inline-flex; /* Sit next to each other */
     align-items: center;
     align-items: center;
      
      
     /* WIDTH: This sets how many per row. 32% = 3 per row. 24% = 4 per row. */
     /* Fixed width for perfect alignment */
     width: 32% !important;
     width: 145px;  
   
    margin-right: 1% !important; /* Small gap */
    margin-bottom: 8px !important; /* Space between rows */
   
    /* Restore text look */
    font-size: 13px !important;
    line-height: normal !important;
      
      
     /* Box Styling */
     font-size: 13px; /* Restore text size */
     background: #fff;
     background: #fcfcfc;
     border: 1px solid #ddd;
     border: 1px solid #eee;
     padding: 6px 10px;
     margin: 0 5px 5px 0; /* Tiny gap between boxes */
     box-sizing: border-box !important;
     padding: 3px 6px;
     border-radius: 3px;
     border-radius: 3px;
     height: 32px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
     height: 26px;
}
}


Line 83: Line 85:
}
}


/* Kill the invisible line breaks completely */
/* Hide line breaks */
.checkbox-grid br { display: none !important; }
.checkbox-grid br { display: none; }

Revision as of 12:30, 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;
}

/* --- 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; }