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


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


/* 1. Force Inputs to fill their container (Fixes Date & Version) */
/* 1. Force ALL inputs (Text, Date, Version) to look identical */
.game-form input[type="text"],  
.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 {
.game-form input.hasDatepicker {
     width: 100% !important;
     width: 100% !important;
     box-sizing: border-box;
     box-sizing: border-box !important;
     height: 30px;
     height: 34px !important; /* Standard height for all */
     font-family: sans-serif;
    padding: 6px 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
     font-family: sans-serif !important;
    margin: 0 !important;
}
}


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


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


/* The Container */
/* The Container: Hides the commas using font-size 0 */
.checkbox-grid {
.checkbox-grid {
     font-size: 0; /* Hides the commas between items */
    display: block;
    width: 100%;
     font-size: 0 !important; /* Hide commas */
    line-height: 0 !important;
}
}


/* The Individual Items */
/* The Items: Restore text and align in columns */
.checkbox-grid span.checkboxLabel {
/* We target 'span' directly to ensure it works even if class is missing */
     display: inline-flex; /* Sit next to each other */
.checkbox-grid span {
     align-items: center;
     display: inline-block !important;
    width: 32.5%; /* Fits 3 items per row perfectly */
     margin-bottom: 6px;
    margin-right: 0.5%;
      
      
     /* Fixed width for perfect alignment */
     /* Restore visibility */
     width: 145px;  
     font-size: 13px !important;
    line-height: normal !important;
    vertical-align: middle;
      
      
     font-size: 13px; /* Restore text size */
     /* Box Styling */
     background: #fcfcfc;
     background: #fcfcfc;
     border: 1px solid #eee;
     border: 1px solid #ddd;
    margin: 0 5px 5px 0; /* Tiny gap between boxes */
    padding: 3px 6px;
     border-radius: 3px;
     border-radius: 3px;
     box-sizing: border-box;
    padding: 5px 8px;
     box-sizing: border-box; /* Keeps width calculation safe */
     white-space: nowrap;
     white-space: nowrap;
     overflow: hidden;
     overflow: hidden;
     height: 26px;
     text-overflow: ellipsis;
}
}


.checkbox-grid span.checkboxLabel:hover {
.checkbox-grid span:hover {
     background: #f0f8ff;
     background: #f0f8ff;
     border-color: #3366cc;
     border-color: #3366cc;
Line 85: Line 86:
}
}


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

Revision as of 12:32, 10 February 2026

/* CSS placed here will be applied to all skins */

/* --- TABLE FIXES --- */
.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 ALL inputs (Text, Date, Version) to look identical */
.game-form input[type="text"], 
.game-form input.hasDatepicker {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 34px !important; /* Standard height for all */
    padding: 6px 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    font-family: sans-serif !important;
    margin: 0 !important;
}

/* 2. Series Box (Token Input) */
.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;
}

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

/* The Container: Hides the commas using font-size 0 */
.checkbox-grid {
    display: block;
    width: 100%;
    font-size: 0 !important; /* Hide commas */
    line-height: 0 !important;
}

/* The Items: Restore text and align in columns */
/* We target 'span' directly to ensure it works even if class is missing */
.checkbox-grid span {
    display: inline-block !important;
    width: 32.5%; /* Fits 3 items per row perfectly */
    margin-bottom: 6px;
    margin-right: 0.5%;
    
    /* Restore visibility */
    font-size: 13px !important; 
    line-height: normal !important;
    vertical-align: middle;
    
    /* Box Styling */
    background: #fcfcfc;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px 8px;
    box-sizing: border-box; /* Keeps width calculation safe */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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