MediaWiki:Common.css: Difference between revisions
From PC Gaming Shelter
No edit summary |
No edit summary |
||
| Line 21: | Line 21: | ||
} | } | ||
/* --- NEW: "ONE BOX" STYLE FOR EVENTS (FIXED) --- | /* --- NEW: "ONE BOX" STYLE FOR EVENTS (FIXED v2) --- */ | ||
/* 1. The Container: The outer grey box */ | /* 1. The Container: The outer grey box */ | ||
| Line 33: | Line 32: | ||
} | } | ||
/* 2. The | /* 2. Hide Line Breaks (CRITICAL FIX) */ | ||
/* PageForms adds <br> tags that force stacking. This kills them. */ | |||
.one-box-container br { | |||
display: none !important; | |||
} | |||
/* 3. The Wrapper: Force horizontal layout */ | |||
/* This targets the span that holds all checkboxes */ | |||
.one-box-container > span { | .one-box-container > span { | ||
display: flex !important; | display: flex !important; | ||
flex-wrap: wrap; | flex-wrap: wrap !important; | ||
gap: 20px; /* Space between | gap: 20px; /* Space between items */ | ||
align-items: center; | align-items: center; | ||
width: 100%; | |||
} | } | ||
/* | /* 4. The Individual Items */ | ||
.one-box-container .checkboxLabel { | .one-box-container .checkboxLabel { | ||
display: flex !important; | display: flex !important; | ||
align-items: center; | align-items: center !important; | ||
width: auto !important; | width: auto !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
background: transparent !important; | background: transparent !important; | ||
border: none | border: none !important; | ||
} | } | ||
/* | /* 5. The Label Text */ | ||
.one-box-container label { | .one-box-container label { | ||
margin-left: 6px; | margin-left: 6px; | ||
| Line 59: | Line 65: | ||
cursor: pointer; | cursor: pointer; | ||
font-size: 13px; | font-size: 13px; | ||
line-height: 1.5; | |||
} | } | ||
/* | /* 6. The Checkbox Input */ | ||
.one-box-container input { | .one-box-container input { | ||
margin: 0 !important; | margin: 0 !important; | ||
cursor: pointer; | |||
} | } | ||
| Line 70: | Line 77: | ||
/* --- GAME FORM: GRID STYLE (Keep this for the Game Form) --- */ | /* --- GAME FORM: GRID STYLE (Keep this for the Game Form) --- */ | ||
.checkbox-grid > span { | .checkbox-grid > span { | ||
display: grid !important; | display: grid !important; | ||
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; | ||
| Line 79: | Line 84: | ||
} | } | ||
.checkbox-grid .checkboxLabel { | .checkbox-grid .checkboxLabel { | ||
display: flex !important; | display: flex !important; | ||
| Line 93: | Line 97: | ||
} | } | ||
.checkbox-grid .checkboxLabel:hover { | .checkbox-grid .checkboxLabel:hover { | ||
background: #fff; | background: #fff; | ||
| Line 100: | Line 103: | ||
} | } | ||
.checkbox-grid br { | .checkbox-grid br { | ||
display: none !important; | display: none !important; | ||
} | } | ||
Revision as of 15:14, 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 v2) --- */
/* 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. Hide Line Breaks (CRITICAL FIX) */
/* PageForms adds <br> tags that force stacking. This kills them. */
.one-box-container br {
display: none !important;
}
/* 3. The Wrapper: Force horizontal layout */
/* This targets the span that holds all checkboxes */
.one-box-container > span {
display: flex !important;
flex-wrap: wrap !important;
gap: 20px; /* Space between items */
align-items: center;
width: 100%;
}
/* 4. The Individual Items */
.one-box-container .checkboxLabel {
display: flex !important;
align-items: center !important;
width: auto !important;
margin: 0 !important;
padding: 0 !important;
background: transparent !important;
border: none !important;
}
/* 5. The Label Text */
.one-box-container label {
margin-left: 6px;
font-weight: normal;
cursor: pointer;
font-size: 13px;
line-height: 1.5;
}
/* 6. The Checkbox Input */
.one-box-container input {
margin: 0 !important;
cursor: pointer;
}
/* --- GAME FORM: GRID STYLE (Keep this for the Game Form) --- */
.checkbox-grid > span {
display: grid !important;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
gap: 8px !important;
width: 100%;
}
.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;
}
.checkbox-grid .checkboxLabel:hover {
background: #fff;
border-color: #3366cc;
cursor: pointer;
}
.checkbox-grid br {
display: none !important;
}
