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 13: Line 13:
}
}


/* Hide columns helpers */
.hide-Genre .col-genre,  
.hide-Genre .col-genre,  
.hide-Platform .col-platform,  
.hide-Platform .col-platform,  
Line 21: Line 20:
}
}


/* --- 1. FORM INPUT FIXES (Series & Date) --- */
/* --- FORM LAYOUT FIXES --- */
/* Force the Series Box (Token Field) to be full width */
 
/* 1. INPUTS: Force ALL inputs (Text, Date, Version) to fill their box */
.game-form input[type="text"],
.game-form input.hasDatepicker,
.game-form .pf-form-field input {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 38px !important;
    padding: 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-family: sans-serif;
}
 
/* 2. SERIES BOX: Fix the Token input */
.select2-container {
.select2-container {
     width: 100% !important;
     width: 100% !important;
    max-width: 100% !important;
     box-sizing: border-box !important;
     box-sizing: border-box;
}
}
.select2-container .select2-selection--multiple {
.select2-container .select2-selection--multiple {
     min-height: 35px;
     min-height: 38px !important;
     border: 1px solid #ccc !important;
     border: 1px solid #ccc !important;
    border-radius: 3px !important;
     padding: 5px !important;
    background: #fff;
     padding: 4px;
}
 
/* Force the Date Picker to match standard inputs */
input.hasDatepicker {
    width: 100% !important;
    box-sizing: border-box;
    height: 35px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: sans-serif;
}
 
/* Force standard Text Inputs to look uniform */
.game-form input[type="text"] {
    box-sizing: border-box;
    height: 35px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}
}


/* --- 2. CHECKBOX GRID (The "Invisible Comma" Fix) --- */
/* 3. CHECKBOX GRID (The "Hammer" Fix) */
 
/* Hide the commas and line breaks */
.checkbox-grid {
.checkbox-grid {
     display: flex;
     font-size: 0 !important; /* Hides the commas */
    flex-wrap: wrap;
     line-height: 0 !important;
    gap: 8px;
    width: 100%;
    margin-top: 5px;
    /* MAGIC TRICK: Set font size to 0 to hide commas and spaces */
     font-size: 0 !important;
    line-height: 0;
}
}


/* Restore the font size for the actual checkbox box */
/* Force the items to show up as text again and float side-by-side */
.checkbox-grid .checkboxLabel {
.checkbox-grid span.checkboxLabel {
     display: flex !important;
     display: inline-flex !important; /* Sit next to each other */
     align-items: center;
     align-items: center;
     background: #fcfcfc;
   
     border: 1px solid #ccc;
    /* WIDTH: This sets how many per row. 32% = 3 per row. 24% = 4 per row. */
     padding: 4px 8px;
    width: 32% !important;
   
    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 */
     background: #fff;
     border: 1px solid #ddd;
     padding: 6px 10px;
    box-sizing: border-box !important;
     border-radius: 3px;
     border-radius: 3px;
     height: 28px;
     height: 32px;
   
    /* RESTORE TEXT VISIBILITY */
    font-size: 13px !important;
    line-height: normal;
 
    /* FORCE EXACT WIDTH (The Grid Look) */
    width: 150px;
    box-sizing: border-box;
}
}


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


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

Revision as of 12:28, 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 LAYOUT FIXES --- */

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

/* 2. SERIES BOX: Fix the Token input */
.select2-container {
    width: 100% !important;
    box-sizing: border-box !important;
}
.select2-container .select2-selection--multiple {
    min-height: 38px !important;
    border: 1px solid #ccc !important;
    padding: 5px !important;
}

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

/* Force the items to show up as text again and float side-by-side */
.checkbox-grid span.checkboxLabel {
    display: inline-flex !important; /* Sit next to each other */
    align-items: center;
    
    /* WIDTH: This sets how many per row. 32% = 3 per row. 24% = 4 per row. */
    width: 32% !important; 
    
    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 */
    background: #fff;
    border: 1px solid #ddd;
    padding: 6px 10px;
    box-sizing: border-box !important;
    border-radius: 3px;
    height: 32px;
}

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

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