v3/packages/design-system/atoms/tab-view/TabView.styled.ts
Katalina 7d681d69d6
Feat/editor category pass2 (#290)
* feat(design-system): add editor skeletons

* use css media queries rather than JS media queries

* init remake

* feat: add basis of toggle atom

* finish toggle

* use pointer cursor with toggle

* sync

* feat: add server message in editor

* cleanup storybook

* add short editor item and data model for categories

* chore: fix build by moving jest version downward

* chore: remove old category editor

* chore: fix EditorCategoryShort index

* add editor wiring and styling updates

* fix linting issues
2021-07-05 12:18:40 -05:00

74 lines
1.3 KiB
TypeScript

import styled, { css } from 'styled-components';
import { onSmallScreen } from '../breakpoints';
import { palette } from '../colors';
import { transitions } from '../timings';
import { text500 } from '../typography';
export const TabViewStyled = styled.div`
display: flex;
flex-direction: row;
overflow: hidden;
${onSmallScreen(
css`
flex-direction: column;
`
)}
`;
export const TabTitleRow = styled.div`
flex: 1;
width: 23vw;
position: fixed;
${onSmallScreen(
css`
width: fit-content;
position: unset;
max-width: 98vw;
`
)}
`;
export const TabTitle = styled.div<{ selected: boolean }>`
padding: 7px;
cursor: pointer;
transition: background-color ${transitions.actionable}s ease-in-out;
border-radius: 2px;
margin-bottom: 5px;
&:hover {
background-color: ${palette.taupe400};
}
${(props) =>
props.selected &&
css`
background-color: ${palette.taupe300};
`}
`;
export const TabContent = styled.div`
padding-left: 1em;
margin-left: 23vw;
flex: 1;
${onSmallScreen(
css`
padding-left: 0;
margin-left: 0;
position: unset;
max-width: 100vw;
`
)}
`;
export const TabContentTitle = styled.div`
${text500}
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
padding: 0.5em 7px;
`;
export const TabDepth = styled.div`
margin-left: 7px;
`;