MediaWiki:Common.css: Difference between revisions

no edit summary
No edit summary
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 */
/* Fix Create New Content input box layout */
.inputbox input[type="text"],
div.inputbox {
.inputbox input[type="search"] {
    display: block;
     box-sizing: border-box; /* include padding+border in width */
    width: 100% !important;
     width: 100% !important; /* stay within container */
    max-width: 100% !important;
     max-width: 100% !important; /* prevent overflow */
    box-sizing: border-box;
     margin-bottom: 8px; /* adds gap before button */
    margin: 0 auto;
}
 
div.inputbox input[type="text"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
     box-sizing: border-box;
    margin: 0 0 10px 0; /* gap below input */
}
 
div.inputbox input[type="submit"] {
    display: block;
     width: 100%;
     max-width: 100%;
     box-sizing: border-box;
}
}