Replace classic box-sizing reset with inheritance reset
Reference: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
This commit is contained in:
parent
93c5f71faf
commit
fc6f7802a2
|
@ -1,11 +1,15 @@
|
||||||
/* Base */
|
/* Base */
|
||||||
|
|
||||||
* {
|
html {
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*,
|
||||||
|
*:before,
|
||||||
|
*:after {
|
||||||
|
box-sizing: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font: 300 21px Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
font: 300 21px Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
|
|
Loading…
Reference in New Issue