This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/styles/theme/scrollbars.scss
dpschen 5dcb1dd449
Some checks failed
continuous-integration/drone/push Build is failing
feature/move-styles-to-components (#874)
Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: #874
Co-authored-by: dpschen <dpschen@noreply.kolaente.de>
Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
2021-10-21 19:11:17 +00:00

32 lines
604 B
SCSS

$scrollbar-height: 8px;
$scrollbar-track-color: $grey-200;
$scrollbar-thumb-color: $grey-300;
$scrollbar-hover-color: $grey-500;
// Chrome
::-webkit-scrollbar {
width: $scrollbar-height;
height: $scrollbar-height;
}
::-webkit-scrollbar-track {
background: $scrollbar-track-color;
border-radius: .5rem;
}
::-webkit-scrollbar-thumb {
border-radius: .5rem;
background: $scrollbar-thumb-color;
transition: all $transition;
&:hover {
background: $scrollbar-hover-color;
}
}
// Firefox
* {
scrollbar-color: $scrollbar-thumb-color $scrollbar-track-color;
scrollbar-width: thin;
}