wisemapping-frontend/packages/webapp/src/components/maps-page/maps-list/styled.ts

100 lines
2.2 KiB
TypeScript
Raw Normal View History

2021-01-30 09:51:02 +01:00
import { createStyles, fade, makeStyles, Theme } from '@material-ui/core/styles';
2021-01-25 19:39:53 +01:00
2021-01-28 02:27:19 +01:00
export const useStyles = makeStyles((theme: Theme) =>
createStyles({
2021-01-25 19:39:53 +01:00
root: {
2021-01-28 02:27:19 +01:00
width: '100%',
},
paper: {
width: '100%',
marginBottom: theme.spacing(2),
},
table: {
minWidth: 750,
'& tr:nth-child(even)': {
background: 'white'
},
'& tr:nth-child(odd)':
{
background: 'rgba(221, 221, 221, 0.35)'
2021-02-01 03:04:50 +01:00
},
// '&:hover tr': {
// backgroundColor: 'rgba(150, 150, 150, 0.7)',
// }
2021-01-28 02:27:19 +01:00
},
headerCell: {
background: 'white',
fontWeight: 'bold',
2021-01-30 09:51:02 +01:00
color: 'rgba(0, 0, 0, 0.44)',
border: 0
},
bodyCell: {
2021-02-01 03:04:50 +01:00
border: '0px'
2021-01-28 02:27:19 +01:00
},
visuallyHidden: {
border: 0,
clip: 'rect(0 0 0 0)',
height: 1,
margin: -1,
overflow: 'hidden',
padding: 0,
position: 'absolute',
top: 20,
width: 1,
},
2021-01-30 09:51:02 +01:00
toolbar: {
display: 'flex',
borderBottom: '1px solid #cccccc',
padding: '0',
marging: '0'
},
toolbarActions: {
flexGrow: 1
},
toolbarListActions: {
flexGrow: 1
},
search: {
borderRadius: 9,
backgroundColor: fade(theme.palette.common.white, 0.15),
'&:hover': {
backgroundColor: fade(theme.palette.common.white, 0.25),
},
2021-01-31 07:01:56 +01:00
margin: '10px 0px',
2021-01-30 09:51:02 +01:00
width: '100%',
[theme.breakpoints.up('sm')]: {
marginLeft: theme.spacing(1),
width: 'auto',
},
float: 'right'
},
searchIcon: {
2021-02-01 03:04:50 +01:00
padding: '6px 0 0 5px',
2021-01-30 09:51:02 +01:00
height: '100%',
position: 'absolute',
pointerEvents: 'none',
alignItems: 'center',
justifyContent: 'center',
},
searchInputRoot: {
color: 'inherit',
}, toolbalLeft: {
float: 'right'
},
searchInputInput: {
// padding: theme.spacing(1, 1, 1, 0),
// vertical padding + font size from searchIcon
border: '1px solid #ffa800',
borderRadius: 4,
paddingLeft: `calc(1em + ${theme.spacing(4)}px)`,
transition: theme.transitions.create('width'),
width: '100%',
[theme.breakpoints.up('sm')]: {
width: '12ch',
'&:focus': {
width: '20ch',
},
},
}
})
);