Skip to content

Commit

Permalink
style: remove style global
Browse files Browse the repository at this point in the history
  • Loading branch information
hunghg255 committed Aug 23, 2024
1 parent 5082a06 commit f231648
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
8 changes: 0 additions & 8 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,3 @@
}
}

@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
}
6 changes: 5 additions & 1 deletion src/constants/resetCSS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@ div[data-tippy-root] {
box-sizing: border-box;
border-width: 0;
border-style: solid;
border-color: #e5e7eb;
border-color: hsl(var(--richtext-border));
}
background-color: hsl(var(--richtext-background));
color: hsl(var(--richtext-foreground));
html,
:host {
line-height: 1.5;
Expand Down
10 changes: 0 additions & 10 deletions src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,6 @@
}
}

@layer base {
* {
@apply richtext-border-border !important;
}
body {
@apply richtext-bg-background !important;
@apply richtext-text-foreground !important;
}
}

// https://github.com/radix-ui/primitives/issues/1496
html body[data-scroll-locked] {
--removed-body-scroll-bar-size: 0 !important;
Expand Down

0 comments on commit f231648

Please sign in to comment.