MediaWiki:Common.css
From PC Gaming Shelter
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* 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;
}
/* --- FIX INPUT WIDTHS IN FLEX LAYOUTS --- */
/* Make all Page Forms inputs stretch properly */
.forminput input[type="text"],
.forminput input[type="search"],
.forminput textarea,
.forminput select {
width: 100% !important;
box-sizing: border-box;
}
/* Fix datepicker (calendar button shrinks field) */
.forminput .ui-datepicker-trigger {
margin-left: 6px;
}
/* Fix token inputs (Series, Multiplayer tools, etc.) */
.forminput .pfTokens {
width: 100% !important;
}
.forminput .pfTokens input {
width: 100% !important;
box-sizing: border-box;
}
/* Fix upload field alignment */
.forminput input[type="file"] {
width: 100% !important;
}
