forked from mirror/_s
Merge pull request #342 from Automattic/border-box
Apply a natural box layout model to all elements; see #341. Props @philiparthurmoore
This commit is contained in:
commit
2ccb74c5c8
|
@ -50,6 +50,13 @@ html {
|
||||||
-webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
|
-webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
|
||||||
-ms-text-size-adjust: 100%; /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
|
-ms-text-size-adjust: 100%; /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
|
||||||
}
|
}
|
||||||
|
*,
|
||||||
|
*:before,
|
||||||
|
*:after { /* apply a natural box layout model to all elements; see http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
body {
|
body {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
@ -264,7 +271,6 @@ input[type="submit"]:active {
|
||||||
}
|
}
|
||||||
input[type="checkbox"],
|
input[type="checkbox"],
|
||||||
input[type="radio"] {
|
input[type="radio"] {
|
||||||
box-sizing: border-box; /* Addresses box sizing set to content-box in IE8/9 */
|
|
||||||
padding: 0; /* Addresses excess padding in IE8/9 */
|
padding: 0; /* Addresses excess padding in IE8/9 */
|
||||||
}
|
}
|
||||||
input[type="search"] {
|
input[type="search"] {
|
||||||
|
|
Reference in New Issue