From 2e63b7637a23fc3e05970834209f19aab45e3739 Mon Sep 17 00:00:00 2001 From: carpaIdea Date: Wed, 13 Apr 2016 00:53:42 +0200 Subject: [PATCH] box-sizing best practice This code was updated to match new box-sizing best practices. Also prefixes are pretty much dead. (quote from http://www.paulirish.com/2012/box-sizing-border-box-ftw/). More info on https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ --- applications/examples/static/css/stupid.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applications/examples/static/css/stupid.css b/applications/examples/static/css/stupid.css index 1bce96e4..2a33c971 100644 --- a/applications/examples/static/css/stupid.css +++ b/applications/examples/static/css/stupid.css @@ -5,7 +5,8 @@ ************/ /*** basic styles ***/ -*, *:after, *:before {border:0; margin:0; padding:0; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box} +html {box-sizing:border-box;} +*, *:after, *:before {border:0; margin:0; padding:0; box-sizing:inherit;} html, body {max-width: 100vw; overflow-x: hidden} body {font-family:"HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif} p, li {margin-bottom:0.5em}