Skip to content

Commit

Permalink
style: scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Sep 23, 2021
1 parent 811c86b commit c30f105
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/preset.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,30 @@ input:-webkit-autofill {
-webkit-animation-fill-mode: both;
}

:root {
--scr-track: #f1f1f1;
--scr-thumb: #888;
--scr-thumb-hover: #555;
}

.dark {
--scr-track: #222;
--scr-thumb: #888;
--scr-thumb-hover: #555;
}

*::-webkit-scrollbar {
width: 6px;
}

*::-webkit-scrollbar-track {
background: #f1f1f1;
background: var(--src-track);
}

*::-webkit-scrollbar-thumb {
background: #888;
background: var(--scr-thumb);
}

*::-webkit-scrollbar-thumb:hover {
background: #555;
background: var(--scr-thumb-hover);
}

0 comments on commit c30f105

Please sign in to comment.