MediaWiki:Common.css: Difference between revisions
From PC Gaming Shelter
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | |||
/* --- TABLE FIXES --- */ | |||
.fullwidth { width: 100% !important; } | .fullwidth { width: 100% !important; } | ||
.nowrap { white-space: nowrap; } | .nowrap { white-space: nowrap; } | ||
table.wikitable th a, | table.wikitable th a, | ||
table.wikitable th.headerSort a { | table.wikitable th.headerSort a { | ||
pointer-events: none !important; | pointer-events: none !important; | ||
cursor: pointer !important; | cursor: pointer !important; | ||
color: black !important; | color: black !important; | ||
text-decoration: none !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; | |||
} | } | ||
/* --- NEW: "ONE BOX" STYLE FOR EVENTS --- */ | /* --- NEW: "ONE BOX" STYLE FOR EVENTS (FIXED) --- */ | ||
/* This is for the Event Form (Casual Gaming, Tournament, etc.) */ | |||
/* 1. The Container: | /* 1. The Container: The outer grey box */ | ||
.one-box-container { | .one-box-container { | ||
border: 1px solid #ccc !important; | border: 1px solid #ccc !important; | ||
background: #f9f9f9; | background: #f9f9f9; | ||
padding: | padding: 15px; | ||
border-radius: 4px; | border-radius: 4px; | ||
margin-top: 5px; | |||
} | } | ||
/* 2. The | /* 2. The Inner Wrapper: Forces items into a horizontal row */ | ||
.one-box-container > span { | |||
.one-box-container span { | |||
display: flex !important; | display: flex !important; | ||
flex-wrap: wrap; /* Allow items to wrap to next line if needed */ | |||
gap: 20px; /* Space between categories */ | |||
align-items: center; | align-items: center; | ||
} | |||
/* 3. The Individual Items: Reset styles so they don't look like cards */ | |||
.one-box-container .checkboxLabel { | |||
display: flex !important; | |||
align-items: center; /* Center checkbox with text */ | |||
width: auto !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
background: transparent !important; /* No background for individual items */ | |||
border: none !important; /* No border for individual items */ | |||
height: auto !important; | |||
} | } | ||
/* | /* 4. The Label: Clean text formatting */ | ||
.one-box-container label { | .one-box-container label { | ||
margin-left: 6px; | margin-left: 6px; | ||
font-weight: normal; | font-weight: normal; | ||
cursor: pointer; | cursor: pointer; | ||
font-size: 13px; | |||
} | } | ||
/* 5. Force Checkbox Visibility */ | |||
/* | .one-box-container input { | ||
margin: 0 !important; | |||
display: inline-block !important; | |||
display: | |||
} | } | ||
/* --- | /* --- GAME FORM: GRID STYLE (Keep this for the Game Form) --- */ | ||
/* 1. Set up the grid on the wrapper span generated by Page Forms */ | /* 1. Set up the grid on the wrapper span generated by Page Forms */ | ||
.checkbox-grid > span { | .checkbox-grid > span { | ||
display: grid !important; | display: grid !important; | ||
/* Create nice even columns, min 150px wide */ | /* Create nice even columns, min 150px wide */ | ||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; | grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; | ||
gap: 8px !important; | gap: 8px !important; | ||
width: 100%; | width: 100%; | ||
} | } | ||
/* 2. Style the individual items (The Checkbox + Text) */ | /* 2. Style the individual items (The Checkbox + Text) */ | ||
.checkbox-grid .checkboxLabel { | .checkbox-grid .checkboxLabel { | ||
display: flex !important; | display: flex !important; | ||
align-items: center; | align-items: center; | ||
background: #f9f9f9; | background: #f9f9f9; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
padding: 6px 10px; | padding: 6px 10px; | ||
border-radius: 4px; | border-radius: 4px; | ||
height: 25px; | height: 25px; | ||
font-size: 13px; | font-size: 13px; | ||
white-space: nowrap; | white-space: nowrap; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
/* 3. Hover Effect */ | /* 3. Hover Effect */ | ||
.checkbox-grid .checkboxLabel:hover { | .checkbox-grid .checkboxLabel:hover { | ||
background: #fff; | background: #fff; | ||
border-color: #3366cc; | border-color: #3366cc; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
/* 4. Hide invisible <br> tags and delimiters that break layout */ | /* 4. Hide invisible <br> tags and delimiters that break layout */ | ||
.checkbox-grid br { | .checkbox-grid br { | ||
display: none !important; | display: none !important; | ||
} | } | ||
Revision as of 15:12, 10 February 2026
/* CSS placed here will be applied to all skins */
/* --- TABLE FIXES --- */
.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;
}
/* --- NEW: "ONE BOX" STYLE FOR EVENTS (FIXED) --- */
/* This is for the Event Form (Casual Gaming, Tournament, etc.) */
/* 1. The Container: The outer grey box */
.one-box-container {
border: 1px solid #ccc !important;
background: #f9f9f9;
padding: 15px;
border-radius: 4px;
margin-top: 5px;
}
/* 2. The Inner Wrapper: Forces items into a horizontal row */
.one-box-container > span {
display: flex !important;
flex-wrap: wrap; /* Allow items to wrap to next line if needed */
gap: 20px; /* Space between categories */
align-items: center;
}
/* 3. The Individual Items: Reset styles so they don't look like cards */
.one-box-container .checkboxLabel {
display: flex !important;
align-items: center; /* Center checkbox with text */
width: auto !important;
margin: 0 !important;
padding: 0 !important;
background: transparent !important; /* No background for individual items */
border: none !important; /* No border for individual items */
height: auto !important;
}
/* 4. The Label: Clean text formatting */
.one-box-container label {
margin-left: 6px;
font-weight: normal;
cursor: pointer;
font-size: 13px;
}
/* 5. Force Checkbox Visibility */
.one-box-container input {
margin: 0 !important;
display: inline-block !important;
}
/* --- GAME FORM: GRID STYLE (Keep this for the Game Form) --- */
/* 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;
}
