MediaWiki:Common.css: Difference between revisions
From PC Gaming Shelter
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* | /* ========================================================= | ||
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 { | .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; | ||
width: 100%; | width: 100%; | ||
} | } | ||
.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; | ||
} | } | ||
.checkbox-grid .checkboxLabel:hover { | .checkbox-grid .checkboxLabel:hover { | ||
background: #fff; | background: #fff; | ||
border-color: # | border-color: #2a4b8d; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.checkbox-grid br { | .checkbox-grid br { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* ========================================================= | ||
QUALITY OF LIFE | |||
========================================================= */ | |||
/* | /* Prevent weird label spacing */ | ||
. | .formlabel { | ||
margin-bottom: 3px; | |||
font-weight: bold; | |||
} | } | ||
/* Make everything predictable */ | |||
* { | |||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
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;
}
