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
Replaced content with "CSS placed here will be applied to all skins: Hide user menu icon for anonymous: .personal-tools-icon { display: none !important; }"
Tag: Replaced
 
(45 intermediate revisions by 2 users not shown)
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) --- */
/* Hide user menu icon for anonymous */
.fullwidth { width: 100% !important; }
.personal-tools-icon {
.nowrap { white-space: nowrap; }
display: none !important;
 
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 100% Width */
/* We target the specific form class to ensure we win over default 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) to be full width */
.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 (The Fix) --- */
/* 1. The Container: Hide the commas using font-size 0 */
.checkbox-grid {
    display: block;
    width: 100%;
    font-size: 0 !important; /* Hide commas */
    line-height: 0 !important;
    margin-top: 5px;
}
/* 2. The Items (Span wrappers) */
/* Inline-block allows them to sit next to each other in columns */
.checkbox-grid span {
    display: inline-block !important;
    vertical-align: top;
   
    /* WIDTH: 32% creates 3 columns. Change to 24% for 4 columns. */
    width: 32%;
   
    margin-right: 1%;
    margin-bottom: 8px;
   
    /* RESTORE TEXT VISIBILITY */
    font-size: 13px !important;
    line-height: normal !important;
   
    /* Box Styling */
    background: #fcfcfc;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 6px 8px;
    box-sizing: border-box;
   
    /* Ensure text wraps if it is huge, instead of cutting off */
    white-space: normal !important;
}
/* 3. The Labels inside */
.checkbox-grid label {
    margin-left: 5px;
    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; }

Latest revision as of 00:04, 19 March 2026

/* CSS placed here will be applied to all skins */

/* Hide user menu icon for anonymous */
.personal-tools-icon {
	display: none !important;
}