revite/src/components/navigation/SidebarBase.tsx

35 lines
765 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);
2021-07-03 10:40:56 -04:00
border-end-start-radius: 8px;
${ props => props.padding && isTouchscreenDevice && css`
padding-bottom: 50px;
` }
`;
export const GenericSidebarList = styled.div`
padding: 6px;
flex-grow: 1;
overflow-y: scroll;
> img {
width: 100%;
}
`;