Skip to content

Commit

Permalink
Replace normalize with a local reset file
Browse files Browse the repository at this point in the history
  • Loading branch information
BaldissaraMatheus committed Feb 12, 2024
1 parent 7e50707 commit 5fa1b4c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/public/stylesheets/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import url(https://necolas.github.io/normalize.css/8.0.1/normalize.css);
/* Reset preset taken from https://keithjgrant.com/posts/2024/01/my-css-resets/ */
@import url('./reset.css');
@import url(./color-themes/adwaita.css);

html,
Expand Down
36 changes: 36 additions & 0 deletions frontend/public/stylesheets/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
*,
*::before,
*::after {
box-sizing: border-box;
}

body {
margin: unset;
}

button,
input,
textarea,
select {
font: inherit;
}

img,
picture,
svg,
canvas {
display: block;
max-inline-size: 100%;
block-size: auto;
}

@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}

0 comments on commit 5fa1b4c

Please sign in to comment.