From 2dad19753f6e9ec20facb6c8e5d40b480bd62de6 Mon Sep 17 00:00:00 2001 From: Nicolas Cusan Date: Thu, 15 Oct 2020 17:36:45 +0200 Subject: [PATCH] Add default border-style and width (to 0) --- destyle.css | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/destyle.css b/destyle.css index 1235b48..e25b980 100644 --- a/destyle.css +++ b/destyle.css @@ -1,15 +1,14 @@ -/*! destyle.css v1.0.15 | MIT License | https://github.com/nicolas-cusan/destyle.css */ +/*! destyle.css v2.0.0 | MIT License | https://github.com/nicolas-cusan/destyle.css */ -/* Reset box-model */ +/* Reset box-model and set borders */ /* ============================================ */ -* { - box-sizing: border-box; -} - +*, ::before, ::after { - box-sizing: inherit; + box-sizing: border-box; + border-style: solid; + border-width: 0; } /* Document */ @@ -110,7 +109,7 @@ hr { height: 0; /* 1 */ overflow: visible; /* 2 */ border: 0; - border-top: 1px solid; + border-top: 1px; margin: 0; clear: both; color: inherit;