2021-03-30 15:14:02 +02:00
|
|
|
import { makeStyles } from '@material-ui/styles';
|
|
|
|
|
|
|
|
export const useCommonStyles = makeStyles(theme => ({
|
|
|
|
contentSpacingY: {
|
|
|
|
'& > *': {
|
2021-08-19 13:54:28 +02:00
|
|
|
marginTop: '0.5rem !important',
|
|
|
|
marginBottom: '0.5rem !important',
|
2021-04-23 10:59:11 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
contentSpacingYLarge: {
|
|
|
|
'& > *': {
|
2021-08-19 13:54:28 +02:00
|
|
|
marginTop: '1.5rem !important',
|
|
|
|
marginBottom: '1.5rem !important',
|
2021-03-30 15:14:02 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
contentSpacingX: {
|
|
|
|
'& > *': {
|
2021-08-19 13:54:28 +02:00
|
|
|
marginRight: '0.8rem !important',
|
|
|
|
marginLeft: '0.8rem !important',
|
2021-03-30 15:14:02 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
divider: {
|
|
|
|
margin: '1rem 0',
|
|
|
|
backgroundColor: theme.palette.division.main,
|
|
|
|
height: '3px',
|
2021-04-23 13:49:42 +02:00
|
|
|
width: '100%',
|
2021-03-30 15:14:02 +02:00
|
|
|
},
|
2021-04-19 10:55:15 +02:00
|
|
|
largeDivider: {
|
|
|
|
margin: '2rem 0',
|
|
|
|
backgroundColor: theme.palette.division.main,
|
|
|
|
height: '3px',
|
2021-04-23 13:49:42 +02:00
|
|
|
width: '100%',
|
2021-04-19 10:55:15 +02:00
|
|
|
},
|
2021-03-30 15:14:02 +02:00
|
|
|
bold: {
|
|
|
|
fontWeight: 'bold',
|
|
|
|
},
|
|
|
|
flexRow: {
|
|
|
|
display: 'flex',
|
2021-04-23 10:59:11 +02:00
|
|
|
alignItems: 'center',
|
2021-03-30 15:14:02 +02:00
|
|
|
},
|
|
|
|
flexColumn: {
|
|
|
|
display: 'flex',
|
|
|
|
flexDirection: 'column',
|
|
|
|
},
|
2021-04-23 13:49:42 +02:00
|
|
|
itemsCenter: {
|
|
|
|
alignItems: 'center',
|
|
|
|
},
|
|
|
|
justifyCenter: {
|
|
|
|
justifyContent: 'center',
|
|
|
|
},
|
2021-03-30 15:14:02 +02:00
|
|
|
flexWrap: {
|
|
|
|
flexWrap: 'wrap',
|
|
|
|
},
|
|
|
|
textCenter: {
|
|
|
|
textAlign: 'center',
|
|
|
|
},
|
2021-04-12 15:04:03 +02:00
|
|
|
fullWidth: {
|
|
|
|
width: '100%',
|
|
|
|
},
|
|
|
|
fullHeight: {
|
|
|
|
height: '100%',
|
|
|
|
},
|
2021-04-19 10:55:15 +02:00
|
|
|
title: {
|
|
|
|
fontSize: theme.fontSizes.mainHeader,
|
|
|
|
fontWeight: 'bold',
|
|
|
|
marginBottom: '0.5rem',
|
|
|
|
},
|
2022-01-14 15:50:02 +01:00
|
|
|
fadeInBottomStartNoPosition: {
|
|
|
|
transform: 'translateY(400px)',
|
|
|
|
opacity: '0',
|
|
|
|
boxShadow: `rgb(129 129 129 / 40%) 4px 5px 11px 4px`,
|
|
|
|
zIndex: 500,
|
|
|
|
width: '100%',
|
|
|
|
backgroundColor: '#fff',
|
|
|
|
right: 0,
|
|
|
|
bottom: 0,
|
|
|
|
left: 0,
|
|
|
|
height: '300px',
|
|
|
|
position: 'fixed',
|
|
|
|
},
|
2021-07-07 11:04:36 +02:00
|
|
|
fadeInBottomStart: {
|
|
|
|
opacity: '0',
|
|
|
|
position: 'fixed',
|
|
|
|
right: '40px',
|
|
|
|
bottom: '40px',
|
|
|
|
transform: 'translateY(400px)',
|
|
|
|
},
|
2021-07-16 15:41:54 +02:00
|
|
|
fadeInBottomStartWithoutFixed: {
|
|
|
|
opacity: '0',
|
|
|
|
right: '40px',
|
|
|
|
bottom: '40px',
|
|
|
|
transform: 'translateY(400px)',
|
2022-01-20 13:00:40 +01:00
|
|
|
zIndex: 1400,
|
2021-10-08 11:23:29 +02:00
|
|
|
position: 'fixed',
|
2021-07-16 15:41:54 +02:00
|
|
|
},
|
2021-07-07 11:04:36 +02:00
|
|
|
fadeInBottomEnter: {
|
|
|
|
transform: 'translateY(0)',
|
|
|
|
opacity: '1',
|
|
|
|
transition: 'transform 0.6s ease, opacity 1s ease',
|
|
|
|
},
|
|
|
|
fadeInBottomLeave: {
|
|
|
|
transform: 'translateY(400px)',
|
|
|
|
opacity: '0',
|
|
|
|
transition: 'transform 1.25s ease, opacity 1s ease',
|
|
|
|
},
|
2022-01-28 10:51:48 +01:00
|
|
|
fadeInTopStart: {
|
|
|
|
opacity: '0',
|
|
|
|
position: 'fixed',
|
|
|
|
right: '40px',
|
|
|
|
top: '40px',
|
|
|
|
transform: 'translateY(-400px)',
|
|
|
|
},
|
|
|
|
fadeInTopEnter: {
|
|
|
|
transform: 'translateY(100px)',
|
|
|
|
opacity: '1',
|
|
|
|
transition: 'transform 0.6s ease, opacity 1s ease',
|
|
|
|
},
|
|
|
|
fadeInTopLeave: {
|
|
|
|
transform: 'translateY(-400px)',
|
|
|
|
opacity: '0',
|
|
|
|
transition: 'transform 1.25s ease, opacity 1s ease',
|
|
|
|
},
|
2021-03-30 15:14:02 +02:00
|
|
|
}));
|