2019-11-23 19:41:14 +07:00
|
|
|
import styled from '@emotion/styled';
|
2019-10-08 03:19:18 +07:00
|
|
|
|
2019-10-13 02:41:42 +07:00
|
|
|
import Text from '../../muiComponents/Text';
|
2019-10-31 14:12:18 +07:00
|
|
|
import { default as MuiListItemText } from '../../muiComponents/ListItemText';
|
2019-12-12 22:10:27 +07:00
|
|
|
import { Theme } from '../../design-tokens/theme';
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-12-12 22:10:27 +07:00
|
|
|
export const StyledText = styled(Text)<{ theme?: Theme }>(props => ({
|
|
|
|
fontWeight: props.theme && props.theme.fontWeight.bold,
|
|
|
|
}));
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2020-03-31 13:44:59 +07:00
|
|
|
export const Spacer = styled('div')<{ theme?: Theme }>(({ theme }) => ({
|
2019-07-15 15:41:12 +07:00
|
|
|
flex: '1 1 auto',
|
2020-03-31 13:44:59 +07:00
|
|
|
borderBottom: `1px dotted ${theme?.palette.type == 'light' ? 'rgba(0, 0, 0, 0.2)' : 'rgba(255, 255, 255, 0.2)'} `,
|
2019-07-15 15:41:12 +07:00
|
|
|
whiteSpace: 'nowrap',
|
|
|
|
height: '0.5em',
|
2020-03-31 13:44:59 +07:00
|
|
|
}));
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2020-03-31 13:44:59 +07:00
|
|
|
export const ListItemText = styled(MuiListItemText)<{ theme?: Theme }>(({ theme }) => ({
|
2019-10-31 14:12:18 +07:00
|
|
|
flex: 'none',
|
2020-03-31 13:44:59 +07:00
|
|
|
color: theme?.palette.type == 'light' ? theme?.palette.black : theme?.palette.white,
|
2019-10-31 14:12:18 +07:00
|
|
|
opacity: 0.6,
|
2020-03-31 13:44:59 +07:00
|
|
|
}));
|