forked from abner/for-legacy-web
56 lines
1.1 KiB
TypeScript
56 lines
1.1 KiB
TypeScript
import styled, { css } from "styled-components";
|
|
|
|
import { isTouchscreenDevice } from "../../lib/isTouchscreenDevice";
|
|
|
|
export default styled.div`
|
|
height: 100%;
|
|
display: flex;
|
|
user-select: none;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
|
|
/*> * > ::-webkit-scrollbar-thumb {
|
|
width: 4px;
|
|
background-clip: content-box;
|
|
border-top: 48px solid transparent;
|
|
}*/
|
|
`;
|
|
|
|
export const GenericSidebarBase = styled.div<{
|
|
mobilePadding?: boolean;
|
|
}>`
|
|
height: 100%;
|
|
width: 232px;
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
flex-direction: column;
|
|
/*border-end-start-radius: 8px;*/
|
|
background: var(--secondary-background);
|
|
|
|
> :nth-child(1) {
|
|
//border-end-start-radius: 8px;
|
|
margin-top: 48px;
|
|
}
|
|
|
|
> :nth-child(2) {
|
|
background: red;
|
|
}
|
|
|
|
${(props) =>
|
|
props.mobilePadding &&
|
|
isTouchscreenDevice &&
|
|
css`
|
|
padding-bottom: 50px;
|
|
`}
|
|
`;
|
|
|
|
export const GenericSidebarList = styled.div`
|
|
padding: 6px;
|
|
flex-grow: 1;
|
|
overflow-y: scroll;
|
|
|
|
> img {
|
|
width: 100%;
|
|
}
|
|
`;
|