From fc6f7802a2030e19bf4c07c80ab280a4942febac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zlatan=20Vasovi=C4=87?= Date: Sat, 24 Sep 2016 22:14:49 +0200 Subject: [PATCH] Replace classic box-sizing reset with inheritance reset Reference: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ --- site/_sass/_style.scss | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/site/_sass/_style.scss b/site/_sass/_style.scss index 528de7cb..5e441924 100644 --- a/site/_sass/_style.scss +++ b/site/_sass/_style.scss @@ -1,10 +1,14 @@ /* Base */ -* { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} + html { + box-sizing: border-box; + } + + *, + *:before, + *:after { + box-sizing: inherit; + } body { font: 300 21px Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;