PC Gaming Shelter
An archive dedicated to preserving PC Gaming history and more

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 */
  1. GLOBAL PAGE & HEADER OVERRIDE
 
  ========================================= */
/* --- TABLE FIXES (Keep these) --- */
body.page-Main_Page {
.fullwidth { width: 100% !important; }
     background-color: #042037 !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;
}
}


/* Ensure the wrapper matches the deep navy background */
/* Hide columns helpers */
.pcs-wrapper {
.hide-Genre .col-genre,
    background-color: #042037 !important;
.hide-Platform .col-platform,
    padding: 20px;
.hide-Mode .col-mode,
    max-width: 1200px;
.hide-Players .col-players {
     margin: 0 auto;
     display: none !important;
    color: #ffffff;
}
}


/* =========================================
/* --- 1. FORM INPUT FIXES (Series & Date) --- */
  2. TACTICAL BOXES (The "Original" Style)
/* Force the Series Box (Token Field) to be full width */
  ========================================= */
.select2-container {
.pcs-box {
     width: 100% !important;
     background: linear-gradient(180deg, #0d5287 0%, #063152 100%);
    max-width: 100% !important;
     border: 2px solid #011120;
    box-sizing: border-box;
     border-radius: 4px; /* Sharper corners for tactical look */
}
     padding: 15px;
.select2-container .select2-selection--multiple {
     margin-bottom: 20px;
    min-height: 35px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.4);
     border: 1px solid #ccc !important;
     border-radius: 3px !important;
     background: #fff;
     padding: 4px;
}
}


.pcs-title {
/* Force the Date Picker to match standard inputs */
     font-family: 'Segoe UI', Tahoma, sans-serif;
input.hasDatepicker {
     font-size: 1.6em;
     width: 100% !important;
    font-weight: 800;
     box-sizing: border-box;  
     text-transform: uppercase;
     height: 35px;
     text-align: center;
     padding: 5px 8px;
     border-bottom: 2px solid #ffffff;
     border: 1px solid #ccc;
     padding-bottom: 8px;
     border-radius: 3px;
     margin-bottom: 20px;
     font-family: sans-serif;
    letter-spacing: 1px;
}
}


/* =========================================
/* Force standard Text Inputs to look uniform */
  3. THE GRID SYSTEM (Genres & Communities)
.game-form input[type="text"] {
  ========================================= */
     box-sizing: border-box;
.pcs-grid {
    height: 35px;
     display: grid;
    padding: 5px 8px;
     grid-template-columns: repeat(3, 1fr);
     border: 1px solid #ccc;
     gap: 12px;
     border-radius: 3px;
}
}


/* Individual Tile Styling */
/* --- 2. CHECKBOX GRID (The "Invisible Comma" Fix) --- */
.pcs-tile {
    background: rgba(0, 0, 0, 0.45); /* Darker overlay for better icon contrast */
    border: 1px solid #011120;
    border-radius: 4px;
    padding: 15px 5px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}


.pcs-tile:hover {
.checkbox-grid {
     background: rgba(0, 0, 0, 0.7);
    display: flex;
     border-color: #ff9900; /* Amber tactical highlight */
    flex-wrap: wrap;
     transform: translateY(-2px);
    gap: 8px;
     width: 100%;
     margin-top: 5px;
    /* MAGIC TRICK: Set font size to 0 to hide commas and spaces */
     font-size: 0 !important;
    line-height: 0;
}
}


.pcs-tile-title {
/* Restore the font size for the actual checkbox box */
     color: #ffffff !important;
.checkbox-grid .checkboxLabel {
     text-transform: uppercase;
     display: flex !important;
     font-size: 0.9em;
     align-items: center;
     font-weight: bold;
    background: #fcfcfc;
     margin-top: 10px;
     border: 1px solid #ccc;
     letter-spacing: 0.5px;
    padding: 4px 8px;
}
    border-radius: 3px;
     height: 28px;
      
    /* RESTORE TEXT VISIBILITY */
    font-size: 13px !important;  
     line-height: normal;


/* =========================================
    /* FORCE EXACT WIDTH (The Grid Look) */
  4. SIDEBAR & STATS REFINEMENT
     width: 150px;  
  ========================================= */
     box-sizing: border-box;
.pcs-list-item {
     background: rgba(0, 0, 0, 0.2);
     margin-bottom: 4px;
    padding: 10px;
    border-left: 3px solid #ff9900; /* Tactical orange accent */
    font-size: 0.9em;
}
}


/* Highlight for Statistics Numbers */
.checkbox-grid .checkboxLabel:hover {
.pcs-stat-val {
     background: #f0f8ff;
     color: #ff9900;
    border-color: #3366cc;
     font-weight: bold;
     cursor: pointer;
}
}


/* =========================================
/* Hide line breaks */
  5. MOBILE & STEAM DECK OPTIMIZATION
.checkbox-grid br { display: none !important; }
  ========================================= */
@media screen and (max-width: 768px) {
    .pcs-main-layout { flex-direction: column; }
    .pcs-col-70, .pcs-col-30 { flex: 0 0 100%; max-width: 100%; }
    .pcs-grid { grid-template-columns: repeat(2, 1fr); } /* 2 columns on handheld */
}

Revision as of 22:25, 10 March 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 columns helpers */
.hide-Genre .col-genre, 
.hide-Platform .col-platform, 
.hide-Mode .col-mode,
.hide-Players .col-players {
    display: none !important;
}

/* --- 1. FORM INPUT FIXES (Series & Date) --- */
/* Force the Series Box (Token Field) to be full width */
.select2-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}
.select2-container .select2-selection--multiple {
    min-height: 35px;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    background: #fff;
    padding: 4px;
}

/* Force the Date Picker to match standard inputs */
input.hasDatepicker {
    width: 100% !important;
    box-sizing: border-box; 
    height: 35px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: sans-serif;
}

/* Force standard Text Inputs to look uniform */
.game-form input[type="text"] {
    box-sizing: border-box;
    height: 35px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* --- 2. CHECKBOX GRID (The "Invisible Comma" Fix) --- */

.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 5px;
    /* MAGIC TRICK: Set font size to 0 to hide commas and spaces */
    font-size: 0 !important; 
    line-height: 0;
}

/* Restore the font size for the actual checkbox box */
.checkbox-grid .checkboxLabel {
    display: flex !important;
    align-items: center;
    background: #fcfcfc;
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 3px;
    height: 28px;
    
    /* RESTORE TEXT VISIBILITY */
    font-size: 13px !important; 
    line-height: normal;

    /* FORCE EXACT WIDTH (The Grid Look) */
    width: 150px; 
    box-sizing: border-box;
}

.checkbox-grid .checkboxLabel:hover {
    background: #f0f8ff;
    border-color: #3366cc;
    cursor: pointer;
}

/* Hide line breaks */
.checkbox-grid br { display: none !important; }