1
0
mirror of https://github.com/jenil/chota.git synced 2023-08-10 21:13:07 +03:00

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

View File

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