Merge pull request #3538 from tylershuster/scrollbar-colors

all: sets scrollbar colors
This commit is contained in:
matildepark 2020-09-21 14:48:38 -04:00 committed by GitHub
commit a95ada0dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,24 @@ const Root = styled.div`
}
display: flex;
flex-flow: column nowrap;
* {
scrollbar-width: thin;
scrollbar-color: ${ p => p.theme.colors.gray } ${ p => p.theme.colors.white };
}
/* Works on Chrome/Edge/Safari */
*::-webkit-scrollbar {
width: 12px;
}
*::-webkit-scrollbar-track {
background: ${ p => p.theme.colors.white };
}
*::-webkit-scrollbar-thumb {
background-color: ${ p => p.theme.colors.gray };
border-radius: 1rem;
border: 3px solid ${ p => p.theme.colors.white };
}
`;
const StatusBarWithRouter = withRouter(StatusBar);