Fix border-box resetting

Follow best practices around border-box resetting:

* Make it easier to change the box-sizing in plugins or other components
* Not all elements are content-box by default, so skip resetting them
This commit is contained in:
SnnSnn 2019-10-21 08:59:02 +03:00 committed by GitHub
parent 7fe49e6610
commit ffe5bea451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -13,17 +13,18 @@
"Droid Sans", "Helvetica Neue", sans-serif;
}
* {
box-sizing: border-box;
}
html {
box-sizing: border-box;
font-size: 62.5%;
line-height: 1.15;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
line-height: 1.6;
font-size: var(--font-size);