1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-05-19 09:51:36 +07:00
verdaccio-ui/src/components/UpLinks/styles.ts

23 lines
821 B
TypeScript
Raw Normal View History

import styled from '@emotion/styled';
import Text from '../../muiComponents/Text';
import { default as MuiListItemText } from '../../muiComponents/ListItemText';
import { Theme } from '../../design-tokens/theme';
2019-02-03 17:23:33 +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 }) => ({
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)'} `,
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 }) => ({
flex: 'none',
2020-03-31 13:44:59 +07:00
color: theme?.palette.type == 'light' ? theme?.palette.black : theme?.palette.white,
opacity: 0.6,
2020-03-31 13:44:59 +07:00
}));