Skip to content

Commit

Permalink
feat: use default scrollbars
Browse files Browse the repository at this point in the history
  • Loading branch information
pajecawav committed Oct 6, 2023
1 parent 71058cd commit 7052859
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
@tailwind utilities;

html {
color-scheme: light;

/* text */
--colors-text-normal: black;
--colors-text-subtle: theme("colors.gray.700");
Expand Down Expand Up @@ -67,6 +69,8 @@ html {
}

html.dark {
color-scheme: dark;

/* text */
--colors-text-normal: theme("colors.gray.200");
--colors-text-subtle: theme("colors.gray.300");
Expand Down Expand Up @@ -176,29 +180,6 @@ html {
scrollbar-gutter: stable;
}

/* firefox scrollbar */
html,
* {
scrollbar-width: auto;
scrollbar-color: var(--colors-scrollbar) transparent !important;
}

/* non-firefox scrollbar */
::-webkit-scrollbar {
overflow: overlay;
height: 6px;
width: 8px;
}

::-webkit-scrollbar-track {
display: initial;
}

::-webkit-scrollbar-thumb {
background-color: var(--colors-scrollbar);
border-radius: 9px;
}

@layer utilities {
.no-highlight {
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
Expand Down

1 comment on commit 7052859

@vercel
Copy link

@vercel vercel bot commented on 7052859 Oct 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ghloc – ./

ghloc-pajecawav.vercel.app
ghloc.vercel.app
ghloc-git-master-pajecawav.vercel.app

Please sign in to comment.