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:
Zlatan Vasović 2016-09-24 22:14:49 +02:00 committed by GitHub
parent 93c5f71faf
commit fc6f7802a2
1 changed files with 9 additions and 5 deletions

View File

@ -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;