To create a page. Send a message

MediaWiki:Common.css: Difference between revisions

From EverybodyWiki
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 */
.inputBox input[type="text"] {
/* Fix inputbox width so it doesn’t overflow container */
     width: 100% !important;   /* make input match container */
.inputbox input[type="text"],
     max-width: 100%;         /* prevent overflow */
.inputbox input[type="search"] {
     box-sizing: border-box; /* include padding in width */
    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 14: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 */
}