To create a page. Send a message
MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
(Created page with "→CSS placed here will be applied to all skins: .inputBox input[type="text"] { width: 100% !important; →make input match container: max-width: 100%; →prevent overflow: box-sizing: border-box; →include padding in width: }") |
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 */ | ||
. | /* Fix inputbox width so it doesn’t overflow container */ | ||
width: 100% !important; | .inputbox input[type="text"], | ||
max-width: 100%; | .inputbox input[type="search"] { | ||
box-sizing: border-box; /* include padding+border in width */ | |||
width: 100% !important; /* stay within container */ | |||
max-width: 100% !important; /* prevent overflow */ | |||
margin-bottom: 8px; /* adds gap before button */ | |||
} | } | ||
Revision as of 13:11, 27 August 2025
/* CSS placed here will be applied to all skins */
/* Fix inputbox width so it doesn’t overflow container */
.inputbox input[type="text"],
.inputbox input[type="search"] {
box-sizing: border-box; /* include padding+border in width */
width: 100% !important; /* stay within container */
max-width: 100% !important; /* prevent overflow */
margin-bottom: 8px; /* adds gap before button */
}