MediaWiki:Common.css: Difference between revisions
From PC Gaming Shelter
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* --- TABLE FIXES --- */ | /* --- TABLE FIXES (Keep these) --- */ | ||
.fullwidth { width: 100% !important; } | .fullwidth { width: 100% !important; } | ||
.nowrap { white-space: nowrap; } | .nowrap { white-space: nowrap; } | ||
| Line 20: | Line 20: | ||
} | } | ||
/* --- FORM | /* --- FORM INPUT FIXES --- */ | ||
/* 1. Force Text Inputs | /* 1. Force Text Inputs and Date Pickers to match */ | ||
.game-form input[type="text"], | .game-form input[type="text"], | ||
.game-form input.hasDatepicker { | .game-form input.hasDatepicker { | ||
| Line 28: | Line 28: | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
height: 34px !important; | height: 34px !important; | ||
padding: | padding: 5px 8px !important; | ||
border: 1px solid #ccc !important; | border: 1px solid #ccc !important; | ||
border-radius: 3px !important; | border-radius: 3px !important; | ||
font-family: sans-serif !important; | font-family: sans-serif !important; | ||
font-size: 13px !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
} | } | ||
/* 2. Fix | /* 2. Fix Series/Token Box */ | ||
.select2-container { | .select2-container { | ||
width: 100% !important; | width: 100% !important; | ||
display: block !important; | display: block !important; | ||
} | } | ||
.select2-container .select2-selection--multiple { | .select2-container .select2-selection--multiple { | ||
| Line 46: | Line 47: | ||
border-radius: 3px !important; | border-radius: 3px !important; | ||
background: #fff; | background: #fff; | ||
padding: 2px !important; | |||
} | } | ||
/* --- CHECKBOX | /* --- THE CHECKBOX FIX (Inline-Block Method) --- */ | ||
/* 1. Hide the | /* 1. The Container: Hide the commas */ | ||
.checkbox-grid { | .checkbox-grid { | ||
font-size: 0 !important; | width: 100%; | ||
font-size: 0 !important; /* This makes the commas invisible */ | |||
line-height: 0 !important; | line-height: 0 !important; | ||
margin-top: 5px; | |||
} | } | ||
/* 2. The | /* 2. The Items: Make them visible blocks */ | ||
/* Target 'span' inside grid. PageForms wraps items in spans. */ | |||
.checkbox-grid span { | .checkbox-grid span { | ||
display: inline- | display: inline-block !important; | ||
width: 32.5%; /* 3 Columns */ | |||
width: 32%; /* 3 Columns */ | vertical-align: top; /* Aligns top of boxes */ | ||
margin-right: 0.5%; | |||
margin-bottom: 6px; | |||
/* RESTORE TEXT */ | |||
font-size: 13px !important; | |||
line-height: 1.4 !important; | |||
/* Box Look */ | |||
background: #fcfcfc; | background: #fcfcfc; | ||
border: 1px solid #ddd; | border: 1px solid #ddd; | ||
border-radius: 3px; | border-radius: 3px; | ||
padding: | padding: 6px; | ||
box-sizing: border-box | box-sizing: border-box; | ||
white-space: nowrap; | white-space: nowrap; | ||
overflow: hidden; | overflow: hidden; | ||
text-overflow: ellipsis; | text-overflow: ellipsis; | ||
} | } | ||
/* | /* 3. Ensure the inner elements are visible too */ | ||
.checkbox-grid label, | |||
.checkbox-grid input { | .checkbox-grid input { | ||
font-size: 13px !important; | |||
cursor: pointer; | cursor: pointer; | ||
vertical-align: middle; | |||
} | } | ||
.checkbox-grid label { margin-left: 5px; } | |||
/* Hover Effect */ | /* 4. Hover Effect */ | ||
.checkbox-grid span:hover { | .checkbox-grid span:hover { | ||
background: #f0f8ff; | background: #f0f8ff; | ||
| Line 97: | Line 100: | ||
} | } | ||
/* Hide | /* 5. Hide line breaks generated by the form */ | ||
.checkbox-grid br { display: none !important; } | .checkbox-grid br { display: none !important; } | ||
Revision as of 12:35, 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 INPUT FIXES --- */
/* 1. Force Text Inputs and Date Pickers to match */
.game-form input[type="text"],
.game-form input.hasDatepicker {
width: 100% !important;
box-sizing: border-box !important;
height: 34px !important;
padding: 5px 8px !important;
border: 1px solid #ccc !important;
border-radius: 3px !important;
font-family: sans-serif !important;
font-size: 13px !important;
margin: 0 !important;
box-shadow: none !important;
}
/* 2. Fix Series/Token Box */
.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;
}
/* --- THE CHECKBOX FIX (Inline-Block Method) --- */
/* 1. The Container: Hide the commas */
.checkbox-grid {
width: 100%;
font-size: 0 !important; /* This makes the commas invisible */
line-height: 0 !important;
margin-top: 5px;
}
/* 2. The Items: Make them visible blocks */
/* Target 'span' inside grid. PageForms wraps items in spans. */
.checkbox-grid span {
display: inline-block !important;
width: 32.5%; /* 3 Columns */
vertical-align: top; /* Aligns top of boxes */
margin-right: 0.5%;
margin-bottom: 6px;
/* RESTORE TEXT */
font-size: 13px !important;
line-height: 1.4 !important;
/* Box Look */
background: #fcfcfc;
border: 1px solid #ddd;
border-radius: 3px;
padding: 6px;
box-sizing: border-box;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* 3. Ensure the inner elements are visible too */
.checkbox-grid label,
.checkbox-grid input {
font-size: 13px !important;
cursor: pointer;
vertical-align: middle;
}
.checkbox-grid label { margin-left: 5px; }
/* 4. Hover Effect */
.checkbox-grid span:hover {
background: #f0f8ff;
border-color: #3366cc;
}
/* 5. Hide line breaks generated by the form */
.checkbox-grid br { display: none !important; }
