Skip to content

Commit

Permalink
feat(CSS reset): improve global custom CSS reset (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgonzalezr committed Jun 23, 2023
1 parent 0810b5b commit b4500d2
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions packages/bee-q/src/global/styles/tailwind.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,7 @@
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
* {
margin: 0;
}

Expand All @@ -106,9 +97,11 @@

/* Set core body defaults */
body {
line-height: var(--bq-font-line-height--large);
min-height: 100vh;
text-rendering: optimizeSpeed;
line-height: 1.5;

-webkit-font-smoothing: antialiased;
}

/* A elements that don't have a class get default styles */
Expand All @@ -118,9 +111,12 @@

/* Make images easier to work with */
img,
picture {
max-width: 100%;
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}

/* Inherit fonts for inputs and buttons */
Expand All @@ -131,6 +127,17 @@
font: inherit;
}

/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
html:focus-within {
Expand Down

0 comments on commit b4500d2

Please sign in to comment.