MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Remove standard Edit button */ | |||
body.category-Artist #ca-edit, | body.category-Artist #ca-edit, | ||
body.category-Artist #p-cactions #ca-edit { | body.category-Artist #p-cactions #ca-edit { | ||
| Line 4: | Line 5: | ||
} | } | ||
/* | /* ========================================================================== | ||
MOBILE RESPONSIVE OVERRIDES FOR PAGE FORMS (MINERVA SKIN) | |||
========================================================================== */ | |||
@media screen and (max-width: 767px) { | @media screen and (max-width: 767px) { | ||
/* 1. Force structural tables to break and stack vertically */ | |||
.formtable, | .formtable, | ||
.formtable tbody, | .formtable tbody, | ||
| Line 17: | Line 22: | ||
} | } | ||
/* Add clean separation between rows */ | |||
.formtable tr { | .formtable tr { | ||
margin-bottom: 15px; | margin-bottom: 15px; | ||
} | } | ||
/* Give labels slight spacing from the inputs below them */ | |||
.formtable th { | .formtable th { | ||
padding-bottom: 4px; | padding-bottom: 4px; | ||
} | } | ||
/* | /* 2. Scale standard HTML form inputs */ | ||
.pfForm input[type="text"], | .pfForm input[type="text"], | ||
.pfForm textarea, | .pfForm textarea, | ||
| Line 35: | Line 42: | ||
} | } | ||
/* | /* 3. Scale JavaScript-rendered token fields (Select2 & OOUI wrappers) */ | ||
.pfForm .select2-container, | .pfForm .select2-container, | ||
.pfForm .select2-container-multi, | .pfForm .select2-container-multi, | ||
| Line 46: | Line 53: | ||
} | } | ||
/* Keep | /* Keep individual token tags from expanding off-screen */ | ||
.pfForm .select2-choices li { | .pfForm .select2-choices li { | ||
max-width: 95% !important; | max-width: 95% !important; | ||
} | } | ||
} | } | ||
Revision as of 19:21, 27 October 2026
/* Remove standard Edit button */
body.category-Artist #ca-edit,
body.category-Artist #p-cactions #ca-edit {
display: none !important;
}
/* ==========================================================================
MOBILE RESPONSIVE OVERRIDES FOR PAGE FORMS (MINERVA SKIN)
========================================================================== */
@media screen and (max-width: 767px) {
/* 1. Force structural tables to break and stack vertically */
.formtable,
.formtable tbody,
.formtable tr,
.formtable th,
.formtable td {
display: block !important;
width: 100% !important;
box-sizing: border-box !important;
text-align: left !important;
}
/* Add clean separation between rows */
.formtable tr {
margin-bottom: 15px;
}
/* Give labels slight spacing from the inputs below them */
.formtable th {
padding-bottom: 4px;
}
/* 2. Scale standard HTML form inputs */
.pfForm input[type="text"],
.pfForm textarea,
.pfForm select,
.createboxInput {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
}
/* 3. Scale JavaScript-rendered token fields (Select2 & OOUI wrappers) */
.pfForm .select2-container,
.pfForm .select2-container-multi,
.pfForm .select2-choices,
.pfForm .oo-ui-tagMultiselectWidget,
.pfForm .oo-ui-textInputWidget {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
}
/* Keep individual token tags from expanding off-screen */
.pfForm .select2-choices li {
max-width: 95% !important;
}
}