0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Fix to Chrome inheritance bug (#22872) (#23118)

* Fix to Chrome inheritance bug (#22872)

* Remove box-sizing from html

box-sizing removed from html and order of wild card selected and html selector swapped to maintain correctness of comments.
This commit is contained in:
Prateek Goel 2017-08-11 07:05:32 +01:00 committed by Mark Otto
parent ffa789327b
commit 7b66aeb2f6

View File

@ -18,8 +18,13 @@
// we force a non-overlapping, non-auto-hiding scrollbar to counteract.
// 6. Change the default tap highlight to be completely transparent in iOS.
html {
*,
*::before,
*::after {
box-sizing: border-box; // 1
}
html {
font-family: sans-serif; // 2
line-height: 1.15; // 3
-webkit-text-size-adjust: 100%; // 4
@ -28,12 +33,6 @@ html {
-webkit-tap-highlight-color: rgba(0,0,0,0); // 6
}
*,
*::before,
*::after {
box-sizing: inherit; // 1
}
// IE10+ doesn't honor `<meta name="viewport">` in some cases.
@at-root {
@-ms-viewport { width: device-width; }