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:
parent
7fe49e6610
commit
ffe5bea451
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user