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
No edit summary
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 (Keep these) --- */
.fullwidth { width: 100% !important; }
.fullwidth { width: 100% !important; }
.nowrap { white-space: nowrap; }
.nowrap { white-space: nowrap; }


table.wikitable th a,
table.wikitable th a,
table.wikitable th.headerSort a {
table.wikitable th.headerSort a {
     pointer-events: none !important;
     pointer-events: none !important;
     cursor: pointer !important;
     cursor: pointer !important;
     color: black !important;
     color: black !important;
     text-decoration: none !important;
     text-decoration: none !important;
}
}
/* Hide columns helpers */


.hide-Genre .col-genre,  
.hide-Genre .col-genre,  
.hide-Platform .col-platform,  
.hide-Platform .col-platform,  
.hide-Mode .col-mode,
.hide-Mode .col-mode,
.hide-Players .col-players {
.hide-Players .col-players {
     display: none !important;
     display: none !important;
}
}


/* --- SERIES BOX FIX --- */
/* Forces the Series token box to match the height of other inputs */
.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;
    background: #fff;
    padding: 2px !important;
}


/* --- CHECKBOX GRID (The Crash-Proof Alignment) --- */
/* --- FIXED CHECKBOX GRID --- */
 
 
/* 1. Set up the grid on the wrapper span generated by Page Forms */
 
.checkbox-grid > span {
 
    display: grid !important;
 
    /* Create nice even columns, min 150px wide */
 
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
 
    gap: 8px !important;


/* 1. Hide the container's text (Hides the commas) */
.checkbox-grid {
    display: block;
     width: 100%;
     width: 100%;
    font-size: 0 !important;
 
    line-height: 0 !important;
    margin-top: 5px;
}
}


/* 2. The Items: Make them visible blocks */
 
.checkbox-grid span {
/* 2. Style the individual items (The Checkbox + Text) */
     display: inline-block !important; /* Sit side-by-side */
 
     vertical-align: top;
.checkbox-grid .checkboxLabel {
   
 
     width: 32%; /* 3 Columns */
     display: flex !important;
     margin-right: 1%;
 
     margin-bottom: 6px;
     align-items: center;
   
 
     /* RESTORE TEXT VISIBILITY */
     background: #f9f9f9;
    font-size: 13px !important;  
 
     line-height: normal !important;
     border: 1px solid #ccc;
   
 
     /* Box Styling */
     padding: 6px 10px;
    background: #fcfcfc;
 
    border: 1px solid #ddd;
     border-radius: 4px;
     border-radius: 3px;
 
    padding: 6px;
     height: 25px;
     box-sizing: border-box;  
 
    white-space: normal; /* Allow text wrapping */
     font-size: 13px;
 
     white-space: nowrap;
 
     overflow: hidden;
 
}
}


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


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


/* 5. Hide line breaks */
 
.checkbox-grid br { display: none !important; }
/* 4. Hide invisible <br> tags and delimiters that break layout */
 
.checkbox-grid br {
 
    display: none !important;
 
}

Revision as of 13:17, 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;

}


/* --- FIXED CHECKBOX GRID --- */


/* 1. Set up the grid on the wrapper span generated by Page Forms */

.checkbox-grid > span {

    display: grid !important;

    /* Create nice even columns, min 150px wide */

    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; 

    gap: 8px !important;

    width: 100%;

}


/* 2. Style the individual items (The Checkbox + Text) */

.checkbox-grid .checkboxLabel {

    display: flex !important;

    align-items: center;

    background: #f9f9f9;

    border: 1px solid #ccc;

    padding: 6px 10px;

    border-radius: 4px;

    height: 25px;

    font-size: 13px;

    white-space: nowrap;

    overflow: hidden;

}


/* 3. Hover Effect */

.checkbox-grid .checkboxLabel:hover {

    background: #fff;

    border-color: #3366cc;

    cursor: pointer;

}


/* 4. Hide invisible <br> tags and delimiters that break layout */

.checkbox-grid br {

    display: none !important;

}