2021-06-21 08:44:43 -04:00
|
|
|
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
|
|
|
`;
|
2021-06-21 16:11:53 -04:00
|
|
|
|
2021-06-22 06:56:37 -04:00
|
|
|
export const GenericSidebarBase = styled.div<{ padding?: boolean }>`
|
2021-06-21 16:11:53 -04:00
|
|
|
height: 100%;
|
|
|
|
width: 240px;
|
|
|
|
display: flex;
|
|
|
|
flex-shrink: 0;
|
|
|
|
flex-direction: column;
|
|
|
|
background: var(--secondary-background);
|
2021-06-22 06:56:37 -04:00
|
|
|
|
|
|
|
${ props => props.padding && isTouchscreenDevice && css`
|
|
|
|
padding-bottom: 50px;
|
|
|
|
` }
|
2021-06-21 16:11:53 -04:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const GenericSidebarList = styled.div`
|
|
|
|
padding: 6px;
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow-y: scroll;
|
|
|
|
|
2021-06-29 17:21:26 -04:00
|
|
|
> img {
|
2021-06-21 16:11:53 -04:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
`;
|