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
Tags: Manual revert Reverted
Line 21: Line 21:
}
}


/* --- FORM INPUT FIXES --- */
/* --- 1. FORM INPUT FIXES (Series & Date) --- */
 
/* Force the Series Box (Token Field) to be full width */
/* 1. Force Text Inputs, Date Pickers, and Selects to be uniform */
.select2-container {
/* We target .game-form to ensure we override default wiki styles */
.game-form input[type="text"],
.game-form input.hasDatepicker,
.game-form .pf-form-field input {
     width: 100% !important;
     width: 100% !important;
     box-sizing: border-box !important;
    max-width: 100% !important;
     height: 36px !important;
     box-sizing: border-box;
    padding: 6px 10px !important;
}
.select2-container .select2-selection--multiple {
     min-height: 35px;
     border: 1px solid #ccc !important;
     border: 1px solid #ccc !important;
     border-radius: 4px !important;
     border-radius: 3px !important;
     font-family: sans-serif !important;
     background: #fff;
     font-size: 13px !important;
     padding: 4px;
    box-shadow: none !important;
    margin: 0 !important;
}
}


/* 2. Fix the Series Token Box (Select2) */
/* Force the Date Picker to match standard inputs */
.select2-container {
input.hasDatepicker {
     width: 100% !important;
     width: 100% !important;
     display: block !important;
     box-sizing: border-box;
    height: 35px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: sans-serif;
}
}
.select2-container .select2-selection--multiple {
 
     min-height: 36px !important;
/* Force standard Text Inputs to look uniform */
     border: 1px solid #ccc !important;
.game-form input[type="text"] {
     border-radius: 4px !important;
    box-sizing: border-box;
    background: #fff;
     height: 35px;
    padding: 4px !important;
    padding: 5px 8px;
     border: 1px solid #ccc;
     border-radius: 3px;
}
}


/* --- CHECKBOX GRID (Flexbox Method) --- */
/* --- 2. CHECKBOX GRID (The "Invisible Comma" Fix) --- */


/* 1. The Container: Hide the commas using font-size 0 */
.checkbox-grid {
.checkbox-grid {
     display: flex !important;
     display: flex;
     flex-wrap: wrap !important;
     flex-wrap: wrap;
    gap: 8px;
     width: 100%;
     width: 100%;
    gap: 10px;
    font-size: 0 !important; /* Hide commas */
    line-height: 0 !important;
     margin-top: 5px;
     margin-top: 5px;
    /* MAGIC TRICK: Set font size to 0 to hide commas and spaces */
    font-size: 0 !important;
    line-height: 0;
}
}


/* 2. The Items (Span wrappers) */
/* Restore the font size for the actual checkbox box */
.checkbox-grid span {
.checkbox-grid .checkboxLabel {
     display: flex !important;
     display: flex !important;
     align-items: center;
     align-items: center;
   
    /* 3 Columns Logic: 32% width leaves room for gaps */
    flex: 0 0 31% !important;
    max-width: 31% !important;
   
    /* Box Styling */
     background: #fcfcfc;
     background: #fcfcfc;
     border: 1px solid #ddd;
     border: 1px solid #ccc;
    padding: 4px 8px;
     border-radius: 3px;
     border-radius: 3px;
     padding: 6px 10px;
     height: 28px;
    box-sizing: border-box;
    height: auto; /* Allow height to grow if needed */
    min-height: 34px;
      
      
     /* RESTORE TEXT VISIBILITY */
     /* RESTORE TEXT VISIBILITY */
     font-size: 13px !important;  
     font-size: 13px !important;  
     line-height: normal !important;
     line-height: normal;
    white-space: normal !important; /* Allow text to wrap if really long */
}


/* 3. The Labels inside the items */
    /* FORCE EXACT WIDTH (The Grid Look) */
.checkbox-grid label {
     width: 150px;  
     margin-left: 8px;
     box-sizing: border-box;
     cursor: pointer;
    font-weight: normal;
}
}


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

Revision as of 12:42, 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 columns helpers */
.hide-Genre .col-genre, 
.hide-Platform .col-platform, 
.hide-Mode .col-mode,
.hide-Players .col-players {
    display: none !important;
}

/* --- 1. FORM INPUT FIXES (Series & Date) --- */
/* Force the Series Box (Token Field) to be full width */
.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;
}

/* 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) --- */

.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    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 */
.checkbox-grid .checkboxLabel {
    display: flex !important;
    align-items: center;
    background: #fcfcfc;
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 3px;
    height: 28px;
    
    /* 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 {
    background: #f0f8ff;
    border-color: #3366cc;
    cursor: pointer;
}

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