MediaWiki:Common.css: Difference between revisions
From PC Gaming Shelter
No edit summary |
No edit summary |
||
| Line 105: | Line 105: | ||
.checkbox-grid br { | .checkbox-grid br { | ||
display: none !important; | display: none !important; | ||
} | |||
/* ========================================= | |||
PC GAMING SHELTER - LANDING PAGE LAYOUT | |||
========================================= */ | |||
.pcs-wrapper { | |||
background-color: #042037; /* Dark navy background */ | |||
padding: 30px; | |||
font-family: sans-serif; | |||
color: #ffffff; | |||
border-radius: 8px; | |||
} | |||
/* Flexbox Rows for the Grid */ | |||
.pcs-row { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 20px; | |||
margin-bottom: 20px; | |||
} | |||
/* Base Box Styling */ | |||
.pcs-box { | |||
background-color: #0d5287; /* Medium blue box */ | |||
border: 2px solid #011120; /* Dark border */ | |||
border-radius: 8px; | |||
padding: 20px; | |||
box-shadow: 2px 2px 10px rgba(0,0,0,0.3); | |||
box-sizing: border-box; | |||
} | |||
/* Column Sizes */ | |||
.pcs-col-70 { flex: 0 0 calc(70% - 10px); max-width: calc(70% - 10px); } | |||
.pcs-col-30 { flex: 0 0 calc(30% - 10px); max-width: calc(30% - 10px); } | |||
.pcs-col-50 { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); } | |||
.pcs-col-100 { flex: 0 0 100%; max-width: 100%; } | |||
/* Box Titles */ | |||
.pcs-title { | |||
font-size: 1.4em; | |||
font-weight: bold; | |||
text-align: center; | |||
border-bottom: 2px solid #ffffff; | |||
padding-bottom: 5px; | |||
margin-bottom: 15px; | |||
} | |||
/* Link Styling Inside Boxes */ | |||
.pcs-box a { | |||
color: #ffffff; | |||
text-decoration: none; | |||
font-weight: bold; | |||
} | |||
.pcs-box a:hover { | |||
color: #ff9900; /* Orange hover effect to match logo */ | |||
text-decoration: underline; | |||
} | |||
/* Search Bar Container */ | |||
.pcs-search-container { | |||
text-align: center; | |||
margin-bottom: 30px; | |||
} | |||
/* Responsive fix for smaller screens */ | |||
@media (max-width: 800px) { | |||
.pcs-col-70, .pcs-col-30, .pcs-col-50 { | |||
flex: 0 0 100%; | |||
max-width: 100%; | |||
} | |||
} | } | ||
Revision as of 16:25, 19 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;
}
/* =========================================
PC GAMING SHELTER - LANDING PAGE LAYOUT
========================================= */
.pcs-wrapper {
background-color: #042037; /* Dark navy background */
padding: 30px;
font-family: sans-serif;
color: #ffffff;
border-radius: 8px;
}
/* Flexbox Rows for the Grid */
.pcs-row {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-bottom: 20px;
}
/* Base Box Styling */
.pcs-box {
background-color: #0d5287; /* Medium blue box */
border: 2px solid #011120; /* Dark border */
border-radius: 8px;
padding: 20px;
box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
box-sizing: border-box;
}
/* Column Sizes */
.pcs-col-70 { flex: 0 0 calc(70% - 10px); max-width: calc(70% - 10px); }
.pcs-col-30 { flex: 0 0 calc(30% - 10px); max-width: calc(30% - 10px); }
.pcs-col-50 { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
.pcs-col-100 { flex: 0 0 100%; max-width: 100%; }
/* Box Titles */
.pcs-title {
font-size: 1.4em;
font-weight: bold;
text-align: center;
border-bottom: 2px solid #ffffff;
padding-bottom: 5px;
margin-bottom: 15px;
}
/* Link Styling Inside Boxes */
.pcs-box a {
color: #ffffff;
text-decoration: none;
font-weight: bold;
}
.pcs-box a:hover {
color: #ff9900; /* Orange hover effect to match logo */
text-decoration: underline;
}
/* Search Bar Container */
.pcs-search-container {
text-align: center;
margin-bottom: 30px;
}
/* Responsive fix for smaller screens */
@media (max-width: 800px) {
.pcs-col-70, .pcs-col-30, .pcs-col-50 {
flex: 0 0 100%;
max-width: 100%;
}
}
