Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed bug scrollbar sync with light/dark mode #115

Merged
merged 2 commits into from
Apr 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions frontend/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,29 +67,19 @@ pre.highlight {
}

::-webkit-scrollbar-track {
background-color : #686868;
@apply dark:bg-zinc-800 bg-[#f3f3f3];
}

::-webkit-scrollbar-thumb {
background: #424242;
@apply dark:bg-zinc-600 bg-[#c2c2c2];
}

::-webkit-scrollbar-thumb:hover {
background: #848484;
@apply dark:bg-zinc-400 bg-zinc-400;
}

@media (prefers-color-scheme: light) {
::-webkit-scrollbar-track {
background-color: #f3f3f3;
}

::-webkit-scrollbar-thumb {
background: #848484;
}

::-webkit-scrollbar-thumb:hover {
background: #333;
}
::-webkit-scrollbar-thumb:active {
@apply dark:bg-zinc-200 bg-zinc-500;
}

@tailwind utilities;
Loading