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 20: Line 21:
}
}


/* --- FORM INPUT FIXES (The "Strange Box" Fix) --- */
/* --- FORM INPUT FIXES --- */


/* 1. Force Text Inputs and Date Pickers to be 100% Width */
/* 1. Force Text Inputs, Date Pickers, and Selects to be uniform */
/* We target .game-form to ensure we override default wiki styles */
.game-form input[type="text"],  
.game-form input[type="text"],  
.game-form input.hasDatepicker {
.game-form input.hasDatepicker,
.game-form .pf-form-field input {
     width: 100% !important;
     width: 100% !important;
     box-sizing: border-box !important;
     box-sizing: border-box !important;
     height: 34px !important;
     height: 36px !important;
     padding: 5px 8px !important;
     padding: 6px 10px !important;
     border: 1px solid #ccc !important;
     border: 1px solid #ccc !important;
     border-radius: 3px !important;
     border-radius: 4px !important;
     font-family: sans-serif !important;
     font-family: sans-serif !important;
     font-size: 13px !important;
     font-size: 13px !important;
    box-shadow: none !important;
     margin: 0 !important;
     margin: 0 !important;
    box-shadow: none !important;
}
}


/* 2. Fix Series/Token Box (The "Select2" Script) */
/* 2. Fix the Series Token Box (Select2) */
/* This forces the token box to expand fully */
.select2-container {
.select2-container {
     width: 100% !important;
     width: 100% !important;
Line 44: Line 46:
}
}
.select2-container .select2-selection--multiple {
.select2-container .select2-selection--multiple {
     min-height: 34px !important;
     min-height: 36px !important;
     border: 1px solid #ccc !important;
     border: 1px solid #ccc !important;
     border-radius: 3px !important;
     border-radius: 4px !important;
     background: #fff;
     background: #fff;
     padding: 2px !important;
     padding: 4px !important;
}
}


/* --- THE CHECKBOX FIX (The "Invisible Comma" Method) --- */
/* --- CHECKBOX GRID (Flexbox Method) --- */


/* 1. The Container: Hide the commas using font-size 0 */
/* 1. The Container: Hide the commas using font-size 0 */
.checkbox-grid {
.checkbox-grid {
    display: flex !important;
    flex-wrap: wrap !important;
     width: 100%;
     width: 100%;
     font-size: 0 !important; /* This hides the text commas */
    gap: 10px;
     font-size: 0 !important; /* Hide commas */
     line-height: 0 !important;
     line-height: 0 !important;
     margin-top: 5px;
     margin-top: 5px;
}
}


/* 2. The Items: Make them visible blocks again */
/* 2. The Items (Span wrappers) */
/* We target 'span' because Page Forms wraps every checkbox in a span */
.checkbox-grid span {
.checkbox-grid span {
     display: inline-block !important;
     display: flex !important;
     width: 32%; /* 3 Columns (32% * 3 approx 96%) */
     align-items: center;
    vertical-align: top;
   
    margin-right: 1%;
    margin-bottom: 6px;
      
      
     /* RESTORE TEXT VISIBILITY */
     /* 3 Columns Logic: 32% width leaves room for gaps */
     font-size: 13px !important;  
     flex: 0 0 31% !important;  
     line-height: 1.4 !important;
     max-width: 31% !important;
      
      
     /* Box Look */
     /* Box Styling */
     background: #fcfcfc;
     background: #fcfcfc;
     border: 1px solid #ddd;
     border: 1px solid #ddd;
     border-radius: 3px;
     border-radius: 3px;
     padding: 6px;
     padding: 6px 10px;
     box-sizing: border-box;  
     box-sizing: border-box;  
     white-space: nowrap;
    height: auto; /* Allow height to grow if needed */
     overflow: hidden;
    min-height: 34px;
     text-overflow: ellipsis;
   
    /* RESTORE TEXT VISIBILITY */
    font-size: 13px !important;
    line-height: normal !important;
     white-space: normal !important; /* Allow text to wrap if really long */
}
 
/* 3. The Labels inside the items */
.checkbox-grid label {
    margin-left: 8px;
     cursor: pointer;
     font-weight: normal;
}
}


/* 3. Hover Effect */
/* Hover Effect */
.checkbox-grid span:hover {
.checkbox-grid span:hover {
     background: #f0f8ff;
     background: #f0f8ff;
Line 93: Line 104:
}
}


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

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

/* --- FORM INPUT FIXES --- */

/* 1. Force Text Inputs, Date Pickers, and Selects to be uniform */
/* 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;
    box-sizing: border-box !important;
    height: 36px !important;
    padding: 6px 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-family: sans-serif !important;
    font-size: 13px !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* 2. Fix the Series Token Box (Select2) */
.select2-container {
    width: 100% !important;
    display: block !important;
}
.select2-container .select2-selection--multiple {
    min-height: 36px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background: #fff;
    padding: 4px !important;
}

/* --- CHECKBOX GRID (Flexbox Method) --- */

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

/* 2. The Items (Span wrappers) */
.checkbox-grid span {
    display: flex !important;
    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;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 6px 10px;
    box-sizing: border-box; 
    height: auto; /* Allow height to grow if needed */
    min-height: 34px;
    
    /* RESTORE TEXT VISIBILITY */
    font-size: 13px !important; 
    line-height: normal !important;
    white-space: normal !important; /* Allow text to wrap if really long */
}

/* 3. The Labels inside the items */
.checkbox-grid label {
    margin-left: 8px;
    cursor: pointer;
    font-weight: normal;
}

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

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