mirror of
https://github.com/SomboChea/ui
synced 2024-11-05 06:04:28 +07:00
a8deeb9b9d
* refactor: introduced forwardref * refacttor: updated ref's * fix: fixed func's name * fix: fixed snapshots * fix: updated snap
51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
import styled from 'react-emotion';
|
|
import Grid from '@material-ui/core/Grid';
|
|
import ListItemText from '@material-ui/core/ListItemText';
|
|
|
|
import Github from '../../icons/GitHub';
|
|
import colors from '../../utils/styles/colors';
|
|
import { fontWeight } from '../../utils/styles/sizes';
|
|
import Text from '../../muiComponents/Text';
|
|
import ListItem from '../../muiComponents/ListItem';
|
|
|
|
export const StyledText = styled(Text)({
|
|
fontWeight: fontWeight.bold,
|
|
textTransform: 'capitalize',
|
|
});
|
|
|
|
export const GridRepo = styled(Grid)({
|
|
'&&': {
|
|
alignItems: 'center',
|
|
},
|
|
});
|
|
|
|
export const GithubLink = styled('a')({
|
|
'&&': {
|
|
color: colors.primary,
|
|
},
|
|
});
|
|
|
|
export const GithubLogo = styled(Github)({
|
|
'&&': {
|
|
fontSize: '40px',
|
|
color: colors.primary,
|
|
backgroundColor: colors.greySuperLight,
|
|
},
|
|
});
|
|
|
|
export const RepositoryListItem = styled(ListItem)({
|
|
'&&': {
|
|
padding: 0,
|
|
},
|
|
'&&:hover': {
|
|
backgroundColor: 'transparent',
|
|
},
|
|
});
|
|
|
|
export const RepositoryListItemText = styled(ListItemText)({
|
|
'&&': {
|
|
padding: '0 10px',
|
|
margin: 0,
|
|
},
|
|
});
|