MediaWiki:Common.css: Difference between revisions
From PC Gaming Shelter
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 21: | Line 21: | ||
} | } | ||
/* --- FORM INPUT FIXES --- */ | /* --- FORM INPUT FIXES (Fixes strange widths) --- */ | ||
/* 1. Force Text Inputs, Date Pickers, and Selects to be 100% Width */ | /* 1. Force Text Inputs, Date Pickers, and Selects to be 100% Width */ | ||
.game-form input[type="text"], | .game-form input[type="text"], | ||
.game-form input.hasDatepicker, | .game-form input.hasDatepicker, | ||
| Line 40: | Line 39: | ||
} | } | ||
/* 2. Fix the Series Token Box (Select2) | /* 2. Fix the Series Token Box (Select2) */ | ||
.select2-container { | .select2-container { | ||
width: 100% !important; | width: 100% !important; | ||
| Line 53: | Line 52: | ||
} | } | ||
/* --- CHECKBOX GRID (The Fix) --- */ | /* --- CHECKBOX GRID (The Crash-Free, Aligned Fix) --- */ | ||
/* 1. The Container: Hide the commas | /* 1. The Container: Hide the commas by setting font-size to 0 */ | ||
.checkbox-grid { | .checkbox-grid { | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
font-size: 0 !important; /* | font-size: 0 !important; /* Hides the commas */ | ||
line-height: 0 !important; | line-height: 0 !important; | ||
margin-top: 5px; | margin-top: 5px; | ||
} | } | ||
/* 2. The Items | /* 2. The Items: Restore them as visible blocks */ | ||
.checkbox-grid span { | .checkbox-grid span { | ||
display: inline-block !important; | display: inline-block !important; /* Sits items side-by-side */ | ||
vertical-align: top; | vertical-align: top; | ||
/* WIDTH: 32% creates 3 columns | /* WIDTH: 32% creates 3 columns */ | ||
width: 32%; | width: 32%; | ||
| Line 76: | Line 74: | ||
margin-bottom: 8px; | margin-bottom: 8px; | ||
/* RESTORE TEXT VISIBILITY */ | /* RESTORE TEXT VISIBILITY (Critical!) */ | ||
font-size: 13px !important; | font-size: 13px !important; | ||
line-height: normal !important; | line-height: normal !important; | ||
| Line 86: | Line 84: | ||
padding: 6px 8px; | padding: 6px 8px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
white-space: normal !important; /* Allow wrapping */ | |||
white-space: normal !important; | |||
} | } | ||
| Line 96: | Line 92: | ||
cursor: pointer; | cursor: pointer; | ||
font-weight: normal; | font-weight: normal; | ||
display: inline; /* Ensure label sits next to checkbox */ | |||
} | } | ||
/* Hover Effect */ | /* 4. Hover Effect */ | ||
.checkbox-grid span:hover { | .checkbox-grid span:hover { | ||
background: #f0f8ff; | background: #f0f8ff; | ||
| Line 105: | Line 102: | ||
} | } | ||
/* Hide line breaks */ | /* 5. Hide line breaks */ | ||
.checkbox-grid br { display: none !important; } | .checkbox-grid br { display: none !important; } | ||
Revision as of 12:49, 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 (Fixes strange widths) --- */
/* 1. Force Text Inputs, Date Pickers, and Selects to be 100% Width */
.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 (The Crash-Free, Aligned Fix) --- */
/* 1. The Container: Hide the commas by setting font-size to 0 */
.checkbox-grid {
display: block;
width: 100%;
font-size: 0 !important; /* Hides the commas */
line-height: 0 !important;
margin-top: 5px;
}
/* 2. The Items: Restore them as visible blocks */
.checkbox-grid span {
display: inline-block !important; /* Sits items side-by-side */
vertical-align: top;
/* WIDTH: 32% creates 3 columns */
width: 32%;
margin-right: 1%;
margin-bottom: 8px;
/* RESTORE TEXT VISIBILITY (Critical!) */
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;
white-space: normal !important; /* Allow wrapping */
}
/* 3. The Labels inside */
.checkbox-grid label {
margin-left: 5px;
cursor: pointer;
font-weight: normal;
display: inline; /* Ensure label sits next to checkbox */
}
/* 4. Hover Effect */
.checkbox-grid span:hover {
background: #f0f8ff;
border-color: #3366cc;
cursor: pointer;
}
/* 5. Hide line breaks */
.checkbox-grid br { display: none !important; }
