// Global neutral scrollbars.
// Cosmetic only: unsupported browsers will fall back to native scrollbars.

$global-scrollbar-thumb: if($color-scheme-alt == dark, #b5b5b5, rgba($white-alt, .18));
$global-scrollbar-thumb-hover: if($color-scheme-alt == dark, #9e9e9e, rgba($white-alt, .28));
$global-scrollbar-track: if($color-scheme-alt == dark, rgba($gray-900, .05), rgba($white-alt, .06));

* {
    scrollbar-width: thin;
    scrollbar-color: $global-scrollbar-thumb transparent;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: $global-scrollbar-track;
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: $global-scrollbar-thumb;
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: $global-scrollbar-thumb-hover;
    background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
    background: transparent;
}
