MediaWiki:Common.css: Difference between revisions
From PC Gaming Shelter
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 20: | Line 20: | ||
} | } | ||
/* --- FORM | /* --- FORM FIXES --- */ | ||
/* 1. | /* 1. Force Inputs to fill their container (Fixes Date & Version) */ | ||
.game-form input[type="text"], | .game-form input[type="text"], | ||
.game-form | .game-form .full-width-input { | ||
width: 100% !important; | |||
width: 100% !important; | box-sizing: border-box; | ||
box-sizing: border-box | height: 30px; | ||
height: | padding: 4px; | ||
padding: | border: 1px solid #ccc; | ||
border: 1px solid #ccc | border-radius: 3px; | ||
border-radius: | } | ||
/* 2. Specific fix for the Date Picker */ | |||
.game-form input.hasDatepicker { | |||
width: 100% !important; | |||
box-sizing: border-box; | |||
height: 30px; | |||
font-family: sans-serif; | font-family: sans-serif; | ||
} | } | ||
/* | /* 3. Specific fix for the Series (Token) Box */ | ||
.select2-container { | .select2-container { | ||
width: 100% !important; | width: 100% !important; | ||
display: block !important; | |||
} | } | ||
.select2-selection--multiple { | |||
min-height: | min-height: 30px; | ||
border: 1px solid #ccc !important; | border: 1px solid #ccc !important; | ||
padding: | padding: 2px !important; | ||
} | } | ||
/* | /* --- CHECKBOX GRID SYSTEM --- */ | ||
/* | |||
/* The Container */ | |||
.checkbox-grid { | .checkbox-grid { | ||
font-size: 0 | font-size: 0; /* Hides the commas between items */ | ||
} | } | ||
/* | /* The Individual Items */ | ||
.checkbox-grid span.checkboxLabel { | .checkbox-grid span.checkboxLabel { | ||
display: inline-flex | display: inline-flex; /* Sit next to each other */ | ||
align-items: center; | align-items: center; | ||
/* | /* Fixed width for perfect alignment */ | ||
width: | width: 145px; | ||
/* | font-size: 13px; /* Restore text size */ | ||
background: # | background: #fcfcfc; | ||
border: 1px solid # | border: 1px solid #eee; | ||
margin: 0 5px 5px 0; /* Tiny gap between boxes */ | |||
padding: 3px 6px; | |||
border-radius: 3px; | border-radius: 3px; | ||
height: | box-sizing: border-box; | ||
white-space: nowrap; | |||
overflow: hidden; | |||
height: 26px; | |||
} | } | ||
| Line 83: | Line 85: | ||
} | } | ||
/* | /* Hide line breaks */ | ||
.checkbox-grid br { display: none | .checkbox-grid br { display: none; } | ||
Revision as of 12:30, 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-Genre .col-genre,
.hide-Platform .col-platform,
.hide-Mode .col-mode,
.hide-Players .col-players {
display: none !important;
}
/* --- FORM FIXES --- */
/* 1. Force Inputs to fill their container (Fixes Date & Version) */
.game-form input[type="text"],
.game-form .full-width-input {
width: 100% !important;
box-sizing: border-box;
height: 30px;
padding: 4px;
border: 1px solid #ccc;
border-radius: 3px;
}
/* 2. Specific fix for the Date Picker */
.game-form input.hasDatepicker {
width: 100% !important;
box-sizing: border-box;
height: 30px;
font-family: sans-serif;
}
/* 3. Specific fix for the Series (Token) Box */
.select2-container {
width: 100% !important;
display: block !important;
}
.select2-selection--multiple {
min-height: 30px;
border: 1px solid #ccc !important;
padding: 2px !important;
}
/* --- CHECKBOX GRID SYSTEM --- */
/* The Container */
.checkbox-grid {
font-size: 0; /* Hides the commas between items */
}
/* The Individual Items */
.checkbox-grid span.checkboxLabel {
display: inline-flex; /* Sit next to each other */
align-items: center;
/* Fixed width for perfect alignment */
width: 145px;
font-size: 13px; /* Restore text size */
background: #fcfcfc;
border: 1px solid #eee;
margin: 0 5px 5px 0; /* Tiny gap between boxes */
padding: 3px 6px;
border-radius: 3px;
box-sizing: border-box;
white-space: nowrap;
overflow: hidden;
height: 26px;
}
.checkbox-grid span.checkboxLabel:hover {
background: #f0f8ff;
border-color: #3366cc;
cursor: pointer;
}
/* Hide line breaks */
.checkbox-grid br { display: none; }
