From b99b7ded70a6741baf960a132e4988bc9d8f933a Mon Sep 17 00:00:00 2001 From: Artur Bien Date: Tue, 5 Dec 2023 16:36:42 +0100 Subject: [PATCH] add default overrides to reset.css --- packages/frosted-ui/src/styles/reset.css | 61 ++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/packages/frosted-ui/src/styles/reset.css b/packages/frosted-ui/src/styles/reset.css index a92e2ddc..0a139345 100644 --- a/packages/frosted-ui/src/styles/reset.css +++ b/packages/frosted-ui/src/styles/reset.css @@ -52,3 +52,64 @@ font-family: inherit; margin: 0; } + +/* Global reset based on https://tailwindcss.com/docs/preflight */ + +*, +::before, +::after { + box-sizing: border-box; + border-width: 0; + border-style: solid; +} + +blockquote, +dl, +dd, +h1, +h2, +h3, +h4, +h5, +h6, +hr, +figure, +p, +pre { + margin: 0; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-size: inherit; + font-weight: inherit; +} + +ol, +ul { + list-style: none; + margin: 0; + padding: 0; +} + +img, +svg, +video, +canvas, +audio, +iframe, +embed, +object { + display: block; + vertical-align: middle; +} + +img, +video { + max-width: 100%; + height: auto; +}