Added custom scrollbar

Added custom scrollbar to all sites that use dark mode

Credit to Stephen Paton @ https://codepen.io/stephenpaton-tech/full/JjRvGmY
This commit is contained in:
JulianPrieber 2022-02-20 19:18:15 +01:00 committed by GitHub
parent b0fe2395d4
commit 77954d9e3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -168,3 +168,24 @@ hr {
border-width: 0; border-width: 0;
border-top: 1px solid #E1E1E1; } border-top: 1px solid #E1E1E1; }
/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
scrollbar-width: thin;
scrollbar-color: #171a1d #31363b;
}
/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
width: 8px;
}
*::-webkit-scrollbar-track {
background: #31363b;
}
*::-webkit-scrollbar-thumb {
background-color: #171a1d;
border-radius: 30px;
border: 3px none #ffffff;
}