From 53957b82423034d18f2f0bdcef67ff40afa1f557 Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:15:30 +0700 Subject: [PATCH] refactor: keep normalize.css pristine (#46) --- src/base.css | 8 ++++++++ src/normalize.css | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/base.css b/src/base.css index dbe273c9..2132e7cc 100644 --- a/src/base.css +++ b/src/base.css @@ -3,6 +3,14 @@ @tailwind base; @layer base { + *, + ::before, + ::after { + /* Override the browser default border width in order to style individual border sides + * Ref: https://stackoverflow.com/a/76961084 + */ + border-width: 0; + } /* Override Tailwind's default `text-decoration` rule. */ /* https://github.com/tailwindlabs/tailwindcss/blob/master/src/css/preflight.css#L85 */ a { diff --git a/src/normalize.css b/src/normalize.css index 31889f1e..7c9ff82b 100644 --- a/src/normalize.css +++ b/src/normalize.css @@ -1,12 +1,4 @@ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ -*, -::before, -::after { - /* Override the browser default border width in order to style individual border sides - * Ref: https://stackoverflow.com/a/76961084 - */ - border-width: 0; -} html { font-family: sans-serif; -ms-text-size-adjust: 100%;