all: sets scrollbar colors

fixes urbit/landscape#87
This commit is contained in:
Tyler Brown Cifu Shuster 2020-09-21 10:58:52 -07:00
parent c19acbb041
commit fa95539524

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);