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
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* =========================================================
  PAGE FORMS – HARD RESET
  ========================================================= */


/* --- TABLE FIXES (Keep these) --- */
/* Remove table look completely */
.fullwidth { width: 100% !important; }
.formtable,
.nowrap { white-space: nowrap; }
.formtable tr,
.formtable td {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
 
/* Ensure PF respects outer layout */
.forminput,
.formlabel {
    display: block !important;
    width: 100% !important;
}
 
/* Kill PF default spacing */
.formtable {
    margin-bottom: 6px !important;
}
 
/* =========================================================
  INPUT NORMALIZATION (THIS IS THE IMPORTANT PART)
  ========================================================= */
 
.forminput input[type="text"],
.forminput input[type="search"],
.forminput input[type="date"],
.forminput textarea,
.forminput select {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 4px 6px;
    font-size: 13px;
}
 
/* =========================================================
  DATEPICKER FIX (Release Date)
  ========================================================= */
 
/* Prevent calendar button from shrinking input */
.forminput input.hasDatepicker {
    width: 100% !important;
}
 
.forminput .ui-datepicker-trigger {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}
 
/* Wrap date field correctly */
.forminput {
    position: relative;
}
 
/* =========================================================
  TOKEN INPUT FIX (Series, Multiplayer Tools)
  ========================================================= */
 
.forminput .pfTokens {
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}
 
.forminput .pfTokens input {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    outline: none;
}


table.wikitable th a,
/* Make tokens visually match text fields */
table.wikitable th.headerSort a {
.forminput .pfTokens {
     pointer-events: none !important;
     border: 1px solid #aaa;
     cursor: pointer !important;
     border-radius: 3px;
     color: black !important;
     padding: 2px 4px;
     text-decoration: none !important;
     background: #fff;
}
}


/* Hide columns helpers */
/* =========================================================
.hide-Genre .col-genre,
  FILE UPLOAD FIX
.hide-Platform .col-platform,
  ========================================================= */
.hide-Mode .col-mode,
 
.hide-Players .col-players {
.forminput input[type="file"] {
     display: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
 
/* =========================================================
  FLEX ROW SAFETY (THIS FIXES YOUR EXACT ISSUE)
  ========================================================= */
 
/* Ensure PF fields don't shrink in flex containers */
div[style*="display: flex"] .forminput {
     flex: 1 1 auto !important;
    min-width: 0 !important;
}
}


/* --- FIXED CHECKBOX GRID --- */
/* =========================================================
  CHECKBOX GRID (YOUR EXISTING SYSTEM, STABLE)
  ========================================================= */


/* 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 */
     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) */
.checkbox-grid .checkboxLabel {
.checkbox-grid .checkboxLabel {
     display: flex !important;
     display: flex !important;
Line 43: Line 128:
     font-size: 13px;
     font-size: 13px;
     white-space: nowrap;
     white-space: nowrap;
    overflow: hidden;
}
}


/* 3. Hover Effect */
.checkbox-grid .checkboxLabel:hover {
.checkbox-grid .checkboxLabel:hover {
     background: #fff;
     background: #fff;
     border-color: #3366cc;
     border-color: #2a4b8d;
     cursor: pointer;
     cursor: pointer;
}
}


/* 4. Hide invisible <br> tags and delimiters that break layout */
.checkbox-grid br {
.checkbox-grid br {
     display: none !important;
     display: none !important;
}
/* --- FIX INPUT WIDTHS IN FLEX LAYOUTS --- */
/* Make all Page Forms inputs stretch properly */
.forminput input[type="text"],
.forminput input[type="search"],
.forminput textarea,
.forminput select {
    width: 100% !important;
    box-sizing: border-box;
}
}


/* Fix datepicker (calendar button shrinks field) */
/* =========================================================
.forminput .ui-datepicker-trigger {
  QUALITY OF LIFE
    margin-left: 6px;
  ========================================================= */
}


/* Fix token inputs (Series, Multiplayer tools, etc.) */
/* Prevent weird label spacing */
.forminput .pfTokens {
.formlabel {
     width: 100% !important;
     margin-bottom: 3px;
    font-weight: bold;
}
}


.forminput .pfTokens input {
/* Make everything predictable */
    width: 100% !important;
* {
     box-sizing: border-box;
     box-sizing: border-box;
}
/* Fix upload field alignment */
.forminput input[type="file"] {
    width: 100% !important;
}
}

Revision as of 13:07, 10 February 2026

/* =========================================================
   PAGE FORMS – HARD RESET
   ========================================================= */

/* Remove table look completely */
.formtable,
.formtable tr,
.formtable td {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure PF respects outer layout */
.forminput,
.formlabel {
    display: block !important;
    width: 100% !important;
}

/* Kill PF default spacing */
.formtable {
    margin-bottom: 6px !important;
}

/* =========================================================
   INPUT NORMALIZATION (THIS IS THE IMPORTANT PART)
   ========================================================= */

.forminput input[type="text"],
.forminput input[type="search"],
.forminput input[type="date"],
.forminput textarea,
.forminput select {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 4px 6px;
    font-size: 13px;
}

/* =========================================================
   DATEPICKER FIX (Release Date)
   ========================================================= */

/* Prevent calendar button from shrinking input */
.forminput input.hasDatepicker {
    width: 100% !important;
}

.forminput .ui-datepicker-trigger {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}

/* Wrap date field correctly */
.forminput {
    position: relative;
}

/* =========================================================
   TOKEN INPUT FIX (Series, Multiplayer Tools)
   ========================================================= */

.forminput .pfTokens {
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

.forminput .pfTokens input {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    outline: none;
}

/* Make tokens visually match text fields */
.forminput .pfTokens {
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 2px 4px;
    background: #fff;
}

/* =========================================================
   FILE UPLOAD FIX
   ========================================================= */

.forminput input[type="file"] {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* =========================================================
   FLEX ROW SAFETY (THIS FIXES YOUR EXACT ISSUE)
   ========================================================= */

/* Ensure PF fields don't shrink in flex containers */
div[style*="display: flex"] .forminput {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* =========================================================
   CHECKBOX GRID (YOUR EXISTING SYSTEM, STABLE)
   ========================================================= */

.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;
}

.checkbox-grid .checkboxLabel:hover {
    background: #fff;
    border-color: #2a4b8d;
    cursor: pointer;
}

.checkbox-grid br {
    display: none !important;
}

/* =========================================================
   QUALITY OF LIFE
   ========================================================= */

/* Prevent weird label spacing */
.formlabel {
    margin-bottom: 3px;
    font-weight: bold;
}

/* Make everything predictable */
* {
    box-sizing: border-box;
}