mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 03:49:11 +00:00
73 lines
1.3 KiB
TypeScript
73 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`
|
|
position: unset;
|
|
max-width: 100vw;
|
|
`
|
|
)}
|
|
`;
|
|
|
|
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;
|
|
`;
|