revite/src/components/navigation/SidebarBase.tsx

34 lines
731 B
TypeScript
Raw Normal View History

import styled, { css } from "styled-components";
import { isTouchscreenDevice } from "../../lib/isTouchscreenDevice";
2021-06-19 10:29:04 -04:00
export default styled.div`
height: 100%;
display: flex;
user-select: none;
flex-direction: row;
2021-06-19 13:46:05 -04:00
align-items: stretch;
2021-06-19 10:29:04 -04:00
`;
export const GenericSidebarBase = styled.div<{ padding?: boolean }>`
height: 100%;
width: 240px;
display: flex;
flex-shrink: 0;
flex-direction: column;
background: var(--secondary-background);
${ props => props.padding && isTouchscreenDevice && css`
padding-bottom: 50px;
` }
`;
export const GenericSidebarList = styled.div`
padding: 6px;
flex-grow: 1;
overflow-y: scroll;
> svg {
width: 100%;
}
`;