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 FIXES --- */
/* --- FORM INPUTS (Force Consistency) --- */


/* 1. Force ALL inputs (Text, Date, Version) to look identical */
/* 1. Force Text Inputs, Date Pickers, and Selects to be uniform */
.game-form input[type="text"],  
.game-form input[type="text"],  
.game-form input.hasDatepicker {
.game-form input.hasDatepicker {
     width: 100% !important;
     width: 100% !important;
     box-sizing: border-box !important;
     box-sizing: border-box !important;
     height: 34px !important; /* Standard height for all */
     height: 34px !important;
     padding: 6px 8px !important;
     padding: 6px 8px !important;
     border: 1px solid #ccc !important;
     border: 1px solid #ccc !important;
Line 33: Line 33:
     font-family: sans-serif !important;
     font-family: sans-serif !important;
     margin: 0 !important;
     margin: 0 !important;
    box-shadow: none !important;
}
}


/* 2. Series Box (Token Input) */
/* 2. Fix the Series Token Box (Prevents floating issues) */
.select2-container {
.select2-container {
     width: 100% !important;
     width: 100% !important;
     display: block !important;
     display: block !important; /* Force it to be a block */
}
}
.select2-container .select2-selection--multiple {
.select2-container .select2-selection--multiple {
Line 44: Line 45:
     border: 1px solid #ccc !important;
     border: 1px solid #ccc !important;
     border-radius: 3px !important;
     border-radius: 3px !important;
    background: #fff;
}
}


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


/* The Container: Hides the commas using font-size 0 */
/* 1. Hide the container's contents (The commas and line breaks) */
.checkbox-grid {
.checkbox-grid {
     display: block;
     font-size: 0 !important;
    line-height: 0 !important;
     width: 100%;
     width: 100%;
    font-size: 0 !important; /* Hide commas */
    line-height: 0 !important;
}
}


/* The Items: Restore text and align in columns */
/* 2. The Item Wrapper (Span): Make it a box */
/* We target 'span' directly to ensure it works even if class is missing */
.checkbox-grid span {
.checkbox-grid span {
     display: inline-block !important;
     display: inline-flex !important; /* Forces side-by-side layout */
    width: 32.5%; /* Fits 3 items per row perfectly */
     align-items: center;
     margin-bottom: 6px;
     width: 32%; /* 3 Columns */
     margin-right: 0.5%;
     margin-right: 1%;
   
     margin-bottom: 5px;
    /* Restore visibility */
     font-size: 13px !important;  
     line-height: normal !important;
    vertical-align: middle;
      
      
    /* Box Styling */
     background: #fcfcfc;
     background: #fcfcfc;
     border: 1px solid #ddd;
     border: 1px solid #ddd;
     border-radius: 3px;
     border-radius: 3px;
     padding: 5px 8px;
     padding: 4px;
     box-sizing: border-box; /* Keeps width calculation safe */
     box-sizing: border-box;
    height: 30px;
}
 
/* 3. The Text Label: FORCE it to be visible */
.checkbox-grid label {
    font-size: 13px !important; /* Reset text size so it is visible */
    line-height: normal !important;
    margin-left: 5px;
    cursor: pointer;
     white-space: nowrap;
     white-space: nowrap;
     overflow: hidden;
     overflow: hidden;
     text-overflow: ellipsis;
     text-overflow: ellipsis;
    width: 100%;
}
}


/* 4. The Checkbox Input itself */
.checkbox-grid input {
    margin: 0 !important;
    cursor: pointer;
}
/* Hover Effect */
.checkbox-grid span:hover {
.checkbox-grid span:hover {
     background: #f0f8ff;
     background: #f0f8ff;
     border-color: #3366cc;
     border-color: #3366cc;
    cursor: pointer;
}
}


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

Revision as of 12:33, 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 INPUTS (Force Consistency) --- */

/* 1. Force Text Inputs, Date Pickers, and Selects to be uniform */
.game-form input[type="text"], 
.game-form input.hasDatepicker {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 34px !important;
    padding: 6px 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    font-family: sans-serif !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* 2. Fix the Series Token Box (Prevents floating issues) */
.select2-container {
    width: 100% !important;
    display: block !important; /* Force it to be a block */
}
.select2-container .select2-selection--multiple {
    min-height: 34px !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    background: #fff;
}

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

/* 1. Hide the container's contents (The commas and line breaks) */
.checkbox-grid {
    font-size: 0 !important;
    line-height: 0 !important;
    width: 100%;
}

/* 2. The Item Wrapper (Span): Make it a box */
.checkbox-grid span {
    display: inline-flex !important; /* Forces side-by-side layout */
    align-items: center;
    width: 32%; /* 3 Columns */
    margin-right: 1%;
    margin-bottom: 5px;
    
    background: #fcfcfc;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 4px;
    box-sizing: border-box;
    height: 30px;
}

/* 3. The Text Label: FORCE it to be visible */
.checkbox-grid label {
    font-size: 13px !important; /* Reset text size so it is visible */
    line-height: normal !important;
    margin-left: 5px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* 4. The Checkbox Input itself */
.checkbox-grid input {
    margin: 0 !important;
    cursor: pointer;
}

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

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