Merge pull request #34 from sreechar/master

Contrasting Scrollbar
This commit is contained in:
Alyssa X 2022-01-15 12:56:54 +01:00 committed by GitHub
commit 292f8266ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,43 @@
html {
scroll-behavior: smooth;
}
/* Scrollbar size */
::-webkit-scrollbar {
width: 10px;
height: 10px;
transition: 1.0s;
}
::-webkit-scrollbar-thumb {
background-color: rgba(127, 127, 127, 0.6);
background-clip: padding-box;
border: 2px solid transparent;
border-radius: 5px;
transition: 1.0s;
}
::-webkit-scrollbar-thumb:vertical:hover,
::-webkit-scrollbar-thumb:horizontal:hover {
background-color: rgb(110, 110, 110);
transition: 0.3s;
}
::-webkit-scrollbar-track {
background-color: transparent;
}
::-webkit-scrollbar-thumb:vertical:active,
::-webkit-scrollbar-thumb:horizontal:active {
background: rgba(95, 91, 91, 1);
}
::-webkit-scrollbar-corner {
background: none;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #1E2128;