aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-01-05 15:20:46 -0800
committerChris Rebert <[email protected]>2015-01-05 15:20:46 -0800
commitef453fa6cee06629a69efca47ad0e56a8ea7d853 (patch)
tree52c08d9150f127311863d638521dedf872cab68c /scss
parent0bd8c7cb6abe67e8f3268c57a331fc3b059a4eee (diff)
downloadbootstrap-ef453fa6cee06629a69efca47ad0e56a8ea7d853.tar.xz
bootstrap-ef453fa6cee06629a69efca47ad0e56a8ea7d853.zip
Use improved box sizing reset
Based on http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ This allows us to significantly simplify the relevant part of the docs.
Diffstat (limited to 'scss')
-rw-r--r--scss/_scaffolding.scss7
1 files changed, 6 insertions, 1 deletions
diff --git a/scss/_scaffolding.scss b/scss/_scaffolding.scss
index b5d767e64..bb867c615 100644
--- a/scss/_scaffolding.scss
+++ b/scss/_scaffolding.scss
@@ -8,10 +8,15 @@
// Heads up! This reset may cause conflicts with some third-party widgets.
// For recommendations on resolving such conflicts, see
// http://getbootstrap.com/getting-started/#third-box-sizing
+// Credit: Jon Neal & CSS-Tricks
+// http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
+html {
+ box-sizing: border-box;
+}
*,
*:before,
*:after {
- box-sizing: border-box;
+ box-sizing: inherit;
}