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 */
/* CSS placed here will be applied to all skins */


/* --- TABLE FIXES --- */
/* =========================================
  1. TABLE & CORE WIKI FIXES
  ========================================= */
.fullwidth { width: 100% !important; }
.fullwidth { width: 100% !important; }
.nowrap { white-space: nowrap; }
.nowrap { white-space: nowrap; }
Line 21: Line 23:
}
}


/* --- NEW: "ONE BOX" STYLE FOR EVENTS (FIXED v2) --- */
/* =========================================
 
  2. PAGE FORMS: "ONE BOX" & GRID STYLES
/* 1. The Container: The outer grey box */
  ========================================= */
.one-box-container {
.one-box-container {
     border: 1px solid #ccc !important;
     border: 1px solid #ccc !important;
Line 31: Line 33:
     margin-top: 5px;
     margin-top: 5px;
}
}
 
.one-box-container br { display: none !important; }
/* 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 !important;
     flex-wrap: wrap !important;
     gap: 20px;             /* Space between items */
     gap: 20px;
     align-items: center;
     align-items: center;
     width: 100%;
     width: 100%;
}
}
/* 4. The Individual Items */
.one-box-container .checkboxLabel {
.one-box-container .checkboxLabel {
     display: flex !important;
     display: flex !important;
Line 59: Line 51:
}
}


/* 5. The Label Text */
/* Game Form Grid */
.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 {
.checkbox-grid > span {
     display: grid !important;
     display: grid !important;
Line 83: Line 58:
     width: 100%;
     width: 100%;
}
}
.checkbox-grid .checkboxLabel {
.checkbox-grid .checkboxLabel {
     display: flex !important;
     display: flex !important;
Line 97: Line 71:
}
}


.checkbox-grid .checkboxLabel:hover {
    background: #fff;
    border-color: #3366cc;
    cursor: pointer;
}
.checkbox-grid br {
    display: none !important;
}
/* =========================================
/* =========================================
   PC GAMING SHELTER - LANDING PAGE LAYOUT
   3. PC GAMING SHELTER - LAYOUT ENGINE
   ========================================= */
   ========================================= */
.pcs-wrapper {
.pcs-wrapper {
     background-color: #042037; /* Dark navy background */
     background-color: #042037 !important;
     padding: 30px;
     padding: 30px;
     font-family: sans-serif;
     font-family: sans-serif;
     color: #ffffff;
     color: #ffffff;
     border-radius: 8px;
     border-radius: 8px;
     max-width: 1200px; /* <--- NEW: Stops it from stretching too wide */
     max-width: 1200px;
     margin: 0 auto;   /* <--- NEW: Centers the whole page */
     margin: 0 auto;
    position: relative;
}
}


/* Flexbox Rows for the Grid */
.pcs-row {
.pcs-row {
     display: flex;
     display: flex;
Line 128: Line 92:
}
}


/* Base Box Styling */
.pcs-box {
.pcs-box {
     background-color: #0d5287; /* Medium blue box */
     background-color: #0d5287;
     border: 2px solid #011120; /* Dark border */
     border: 2px solid #011120;
     border-radius: 8px;
     border-radius: 8px;
     padding: 20px;
     padding: 20px;
Line 141: Line 104:
.pcs-col-70 { flex: 0 0 calc(70% - 10px); max-width: calc(70% - 10px); }
.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-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%; }
.pcs-col-100 { flex: 0 0 100%; max-width: 100%; }


/* Box Titles */
/* Typography & Links */
.pcs-title {
.pcs-title {
     font-size: 1.4em;
     font-size: 1.4em;
Line 153: Line 115:
     margin-bottom: 15px;
     margin-bottom: 15px;
}
}
.pcs-box a { color: #ffffff; font-weight: bold; text-decoration: none; }
.pcs-box a:hover { color: #ff9900; text-decoration: underline; }


/* 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%;
    }
}
/* =========================================
/* =========================================
   HIDE SIDEBAR & TABS ON MAIN PAGE ONLY
   4. MAIN PAGE OVERRIDES (CLEAN SLATE)
  ========================================= */
body.page-Main_Page #mw-panel,
body.page-Main_Page #p-logo {
    display: none !important;
}
body.page-Main_Page #content {
    margin-left: 0 !important;
    border: none !important;
}
body.page-Main_Page #left-navigation {
    display: none !important;
}
body.page-Main_Page #firstHeading {
    display: none !important; /* Hides the "Main Page" title text */
}
 
/* Align titles to the left for the full-width boxes (per your new concept) */
.pcs-title-left {
    font-size: 1.4em;
    font-weight: bold;
    text-align: left;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 5px;
    margin-bottom: 15px;
}
/* =========================================
  PCS: LIST, SEARCH, AND TABLE FIXES
  ========================================= */
 
/* Search bar styling */
.pcs-search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.pcs-search-input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
}
.pcs-search-btn {
    padding: 10px 20px;
    background: #ff9900;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}
.pcs-search-btn:hover { background: #e68a00; }
 
/* Custom lists to avoid MediaWiki parser bugs */
.pcs-list {
    list-style: none; /* Removes the ugly default bullets */
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}
.pcs-list li {
    margin-bottom: 5px;
}
 
/* 2-Column Grid for Links */
.pcs-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
}
 
/* Dark Theme overrides for the Wikitable */
.pcs-wrapper table.wikitable {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid #011120 !important;
}
.pcs-wrapper table.wikitable th {
    background-color: #011120 !important;
    border: 1px solid #0d5287 !important;
    color: #ff9900 !important;
}
.pcs-wrapper table.wikitable td {
    border: 1px solid #011120 !important;
}
/* =========================================
  PCS: INPUTBOX SEARCH BAR STYLING
  ========================================= */
.pcs-search-container {
    text-align: center;
    margin-bottom: 35px;
}
.pcs-search-container .searchboxInput {
    padding: 12px;
    border-radius: 4px;
    border: none;
    font-size: 1.1em;
    min-width: 300px;
}
.pcs-search-container .searchboxSearchButton {
    padding: 12px 25px;
    background: #ff9900;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    margin-left: 10px;
}
.pcs-search-container .searchboxSearchButton:hover {
    background: #e68a00;
}
/* =========================================
  PCS: MAIN PAGE FULL BACKGROUND COLOR
   ========================================= */
   ========================================= */
body.page-Main_Page,
body.page-Main_Page,
body.page-Main_Page #content,
body.page-Main_Page #content,
body.page-Main_Page .mw-page-container,
body.page-Main_Page .mw-page-container {
body.page-Main_Page #mw-page-base,
body.page-Main_Page #mw-head-base {
     background-color: #042037 !important;
     background-color: #042037 !important;
    background-image: none !important; /* Removes default MediaWiki gradient shadows */
}
}
/* Orange Search Buttons for the InputBox */
 
.pcs-search-container input[type="submit"] {
/* Hide Navigation & UI */
    padding: 8px 20px;
body.page-Main_Page #mw-panel,
    background: #ff9900 !important;
body.page-Main_Page #p-logo,
    color: #fff !important;
body.page-Main_Page #left-navigation,
    border: none !important;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin: 0 5px;
}
.pcs-search-container input[type="submit"]:hover {
    background: #e68a00 !important;
}
/* =========================================
  PCS: HIDE TOP NAVIGATION ON MAIN PAGE
  ========================================= */
body.page-Main_Page #right-navigation,
body.page-Main_Page #right-navigation,
body.page-Main_Page #p-personal,
body.page-Main_Page #p-personal,
body.page-Main_Page .mw-header {
body.page-Main_Page .mw-header,
body.page-Main_Page #firstHeading,
body.page-Main_Page #siteNotice {
     display: none !important;
     display: none !important;
}
/* Kill Margins/Padding for Flush Header */
body.page-Main_Page #content {
    margin-left: 0 !important;
    padding-top: 0 !important;
    border: none !important;
}
}


/* =========================================
/* =========================================
   PCS: HERO BANNER (Title & Logo)
   5. LOGO & HERO BANNER (FIXED)
   ========================================= */
   ========================================= */
.pcs-hero {
.pcs-hero {
Line 342: Line 155:
     gap: 20px;
     gap: 20px;
     margin-bottom: 40px;
     margin-bottom: 40px;
    padding: 10px 20px;
}
}
/* Remove White Box from Logo */
.pcs-hero-logo,
.pcs-hero-logo *,
.pcs-hero-logo a.image,
.pcs-hero-logo img {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.pcs-hero-text h1 {
.pcs-hero-text h1 {
     color: #ffffff;
     color: #ffffff;
     font-size: 2.8em;
     font-size: 2.8em;
     font-weight: bold;
     font-weight: bold;
    font-family: 'Arial Black', Impact, sans-serif;
     margin: 0;
     margin: 0;
    padding: 0;
     border: none;
     border: none; /* Removes wiki default underline */
     text-transform: uppercase;
     text-transform: uppercase;
    letter-spacing: 1px;
}
.pcs-hero-text p {
    color: #ffffff;
    font-size: 1.2em;
    margin: 5px 0 0 0;
}
/* =========================================
  PCS: HERO LOGO TRANSPARENCY FIX
  ========================================= */
.pcs-hero-logo,
.pcs-hero-logo img,
.pcs-hero-logo a,
.pcs-hero-logo figure,
.pcs-hero-logo span {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
}


/* =========================================
/* =========================================
   PCS: SAFE TOP GAP REMOVAL
   6. SEARCH & TABLES (DARK THEME)
   ========================================= */
   ========================================= */
body.page-Main_Page header,
.pcs-search-container { text-align: center; margin-bottom: 35px; }
body.page-Main_Page .mw-header,
body.page-Main_Page .vector-header-container,
body.page-Main_Page #siteNotice {
    display: none !important;
}


body.page-Main_Page .mw-page-container,
/* Wikitable Overrides */
body.page-Main_Page .mw-page-container-inner,
.pcs-wrapper table.wikitable {
body.page-Main_Page #content,
    background-color: transparent !important;
body.page-Main_Page .mw-body {
     color: #ffffff !important;
     padding-top: 0 !important;
     border: 1px solid #011120 !important;
     border: none !important;
}
}
 
.pcs-wrapper table.wikitable th {
/* Visually slides the page up without breaking the horizontal centering */
     background-color: #011120 !important;
.pcs-wrapper {
     color: #ff9900 !important;
    position: relative;
    top: -50px; /* <--- Adjust this number (e.g., -30px, -70px) to slide the page exactly where you want it */
    margin: 0 auto !important;
}
/* =========================================
  PCS: HERO LOGO (PSEUDO-ELEMENT BYPASS)
  ========================================= */
.pcs-hero-logo {
     width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
 
.pcs-hero-logo::before {
    content: url('https://www.pcgamingshelter.eu/images/7/72/Shelter.png');
    display: block;
    /* This forces the image to scale to the 120px container */
    zoom: 0.5;
}
.pcs-hero {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Keeps logo and text to the left */
    width: 100%;
    gap: 20px;
}
.pcs-hero-logo, .pcs-hero-logo * {
    background: transparent !important;  
     border: none !important;  
}
}

Revision as of 17:59, 19 February 2026

/* CSS placed here will be applied to all skins */

/* =========================================
   1. TABLE & CORE WIKI 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;
}

/* =========================================
   2. PAGE FORMS: "ONE BOX" & GRID STYLES
   ========================================= */
.one-box-container {
    border: 1px solid #ccc !important;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-top: 5px;
}
.one-box-container br { display: none !important; }
.one-box-container > span {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px;
    align-items: center;
    width: 100%;
}
.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;
}

/* Game Form Grid */
.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;
}

/* =========================================
   3. PC GAMING SHELTER - LAYOUT ENGINE
   ========================================= */
.pcs-wrapper {
    background-color: #042037 !important;
    padding: 30px;
    font-family: sans-serif;
    color: #ffffff;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.pcs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.pcs-box {
    background-color: #0d5287;
    border: 2px solid #011120;
    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-100 { flex: 0 0 100%; max-width: 100%; }

/* Typography & Links */
.pcs-title {
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 5px;
    margin-bottom: 15px;
}
.pcs-box a { color: #ffffff; font-weight: bold; text-decoration: none; }
.pcs-box a:hover { color: #ff9900; text-decoration: underline; }

/* =========================================
   4. MAIN PAGE OVERRIDES (CLEAN SLATE)
   ========================================= */
body.page-Main_Page,
body.page-Main_Page #content,
body.page-Main_Page .mw-page-container {
    background-color: #042037 !important;
}

/* Hide Navigation & UI */
body.page-Main_Page #mw-panel,
body.page-Main_Page #p-logo,
body.page-Main_Page #left-navigation,
body.page-Main_Page #right-navigation,
body.page-Main_Page #p-personal,
body.page-Main_Page .mw-header,
body.page-Main_Page #firstHeading,
body.page-Main_Page #siteNotice {
    display: none !important;
}

/* Kill Margins/Padding for Flush Header */
body.page-Main_Page #content {
    margin-left: 0 !important;
    padding-top: 0 !important;
    border: none !important;
}

/* =========================================
   5. LOGO & HERO BANNER (FIXED)
   ========================================= */
.pcs-hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

/* Remove White Box from Logo */
.pcs-hero-logo, 
.pcs-hero-logo *, 
.pcs-hero-logo a.image, 
.pcs-hero-logo img {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.pcs-hero-text h1 {
    color: #ffffff;
    font-size: 2.8em;
    font-weight: bold;
    margin: 0;
    border: none;
    text-transform: uppercase;
}

/* =========================================
   6. SEARCH & TABLES (DARK THEME)
   ========================================= */
.pcs-search-container { text-align: center; margin-bottom: 35px; }

/* Wikitable Overrides */
.pcs-wrapper table.wikitable {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid #011120 !important;
}
.pcs-wrapper table.wikitable th {
    background-color: #011120 !important;
    color: #ff9900 !important;
}