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