2022-09-13 07:36:00 +00:00
|
|
|
import { Theme } from '@mui/material';
|
2022-07-27 08:40:34 +00:00
|
|
|
|
2022-10-28 10:07:58 +00:00
|
|
|
export * from './constants.any';
|
2021-10-08 08:05:16 +00:00
|
|
|
|
|
|
|
/**
|
2021-11-15 08:37:54 +00:00
|
|
|
* Returns an object containing the declaration of the common, reusable CSS classes.
|
|
|
|
*
|
|
|
|
* @param {Object} theme -The theme.
|
|
|
|
*
|
|
|
|
* @returns {Object} - The common styles.
|
2021-10-08 08:05:16 +00:00
|
|
|
*/
|
2022-07-27 08:40:34 +00:00
|
|
|
export const commonStyles = (theme: Theme) => {
|
2021-11-15 08:37:54 +00:00
|
|
|
return {
|
2022-09-13 07:36:00 +00:00
|
|
|
'.empty-list': {
|
2021-11-15 08:37:54 +00:00
|
|
|
listStyleType: 'none',
|
|
|
|
margin: 0,
|
|
|
|
padding: 0
|
|
|
|
},
|
2022-09-13 07:36:00 +00:00
|
|
|
|
|
|
|
'.mute-dialog': {
|
2022-03-29 08:59:53 +00:00
|
|
|
'& .separator-line': {
|
2022-09-13 07:36:00 +00:00
|
|
|
margin: `${theme.spacing(4)} 0 ${theme.spacing(4)} -20px`,
|
2022-03-29 08:59:53 +00:00
|
|
|
padding: '0 20px',
|
|
|
|
width: '100%',
|
|
|
|
height: '1px',
|
|
|
|
background: '#5E6D7A'
|
|
|
|
},
|
|
|
|
|
|
|
|
'& .control-row': {
|
|
|
|
display: 'flex',
|
|
|
|
justifyContent: 'space-between',
|
2022-09-13 07:36:00 +00:00
|
|
|
marginTop: theme.spacing(3),
|
2022-03-29 08:59:53 +00:00
|
|
|
|
|
|
|
'& label': {
|
|
|
|
fontSize: '14px'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-09-13 07:36:00 +00:00
|
|
|
|
|
|
|
'.overflow-menu-item': {
|
2021-11-15 08:37:54 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
color: theme.palette.text01,
|
|
|
|
cursor: 'pointer',
|
|
|
|
display: 'flex',
|
|
|
|
fontSize: 14,
|
|
|
|
fontWeight: 400,
|
|
|
|
height: 40,
|
|
|
|
lineHeight: '24px',
|
|
|
|
padding: '8px 16px',
|
2022-09-13 07:36:00 +00:00
|
|
|
boxSizing: 'border-box' as const,
|
2021-11-15 08:37:54 +00:00
|
|
|
'& > div': {
|
|
|
|
display: 'flex',
|
|
|
|
alignItems: 'center'
|
|
|
|
},
|
|
|
|
|
|
|
|
'&.unclickable': {
|
|
|
|
cursor: 'default'
|
|
|
|
},
|
|
|
|
|
|
|
|
'&.disabled': {
|
|
|
|
cursor: 'initial',
|
|
|
|
color: theme.palette.text03,
|
|
|
|
|
|
|
|
'&:hover': {
|
|
|
|
background: 'none'
|
|
|
|
},
|
|
|
|
|
|
|
|
'& svg': {
|
|
|
|
fill: theme.palette.text03
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
'@media (hover: hover) and (pointer: fine)': {
|
|
|
|
'&:hover': {
|
|
|
|
background: theme.palette.action02Hover
|
|
|
|
},
|
|
|
|
'&.unclickable:hover': {
|
|
|
|
background: 'inherit'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-09-13 07:36:00 +00:00
|
|
|
|
|
|
|
'.overflow-menu-item-icon': {
|
2021-11-15 08:37:54 +00:00
|
|
|
marginRight: '16px',
|
|
|
|
|
|
|
|
'& i': {
|
|
|
|
display: 'inline',
|
|
|
|
fontSize: 24
|
|
|
|
},
|
|
|
|
|
|
|
|
'@media (hover: hover) and (pointer: fine)': {
|
|
|
|
'&i:hover': {
|
|
|
|
backgroundColor: 'initial'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
'& img': {
|
|
|
|
maxWidth: 24,
|
|
|
|
maxHeight: 24
|
|
|
|
},
|
|
|
|
|
|
|
|
'& svg': {
|
|
|
|
fill: theme.palette.text01,
|
|
|
|
height: 20,
|
|
|
|
width: 20
|
|
|
|
}
|
|
|
|
},
|
2022-09-13 07:36:00 +00:00
|
|
|
|
|
|
|
'.participant-avatar': {
|
|
|
|
margin: `${theme.spacing(2)} ${theme.spacing(3)} ${theme.spacing(2)} 0`
|
2022-03-15 11:29:42 +00:00
|
|
|
},
|
2022-09-13 07:36:00 +00:00
|
|
|
|
|
|
|
'.prejoin-dialog': {
|
2022-06-15 07:34:09 +00:00
|
|
|
background: '#1C2025',
|
|
|
|
boxShadow: '0px 2px 20px rgba(0, 0, 0, 0.5)',
|
|
|
|
borderRadius: '5px',
|
|
|
|
color: '#fff',
|
|
|
|
height: '400px',
|
|
|
|
width: '375px',
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.prejoin-dialog--small': {
|
2022-06-15 07:34:09 +00:00
|
|
|
height: 300,
|
|
|
|
width: 400
|
|
|
|
},
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.prejoin-dialog-label': {
|
2022-06-15 07:34:09 +00:00
|
|
|
fontSize: '15px',
|
|
|
|
lineHeight: '24px'
|
|
|
|
},
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.prejoin-dialog-label-num': {
|
2022-06-15 07:34:09 +00:00
|
|
|
background: '#2b3b4b',
|
|
|
|
border: '1px solid #A4B8D1',
|
|
|
|
borderRadius: '50%',
|
|
|
|
color: '#fff',
|
|
|
|
display: 'inline-block',
|
|
|
|
height: '24px',
|
2022-09-13 07:36:00 +00:00
|
|
|
marginRight: theme.spacing(2),
|
2022-06-15 07:34:09 +00:00
|
|
|
width: '24px'
|
|
|
|
},
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.prejoin-dialog-container': {
|
2022-06-15 07:34:09 +00:00
|
|
|
alignItems: 'center',
|
|
|
|
background: 'rgba(0,0,0,0.6)',
|
|
|
|
display: 'flex',
|
|
|
|
height: '100vh',
|
|
|
|
justifyContent: 'center',
|
|
|
|
left: 0,
|
2022-09-13 07:36:00 +00:00
|
|
|
position: 'absolute' as const,
|
2022-06-15 07:34:09 +00:00
|
|
|
top: 0,
|
|
|
|
width: '100vw',
|
|
|
|
zIndex: 3
|
|
|
|
},
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.prejoin-dialog-flag': {
|
2022-06-15 07:34:09 +00:00
|
|
|
display: 'inline-block',
|
2022-09-13 07:36:00 +00:00
|
|
|
marginRight: theme.spacing(2),
|
2022-06-15 07:34:09 +00:00
|
|
|
transform: 'scale(1.2)'
|
|
|
|
},
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.prejoin-dialog-title': {
|
2022-06-15 07:34:09 +00:00
|
|
|
display: 'inline-block',
|
|
|
|
fontSize: '24px',
|
|
|
|
lineHeight: '32px'
|
|
|
|
},
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.prejoin-dialog-icon': {
|
2022-06-15 07:34:09 +00:00
|
|
|
cursor: 'pointer',
|
|
|
|
|
|
|
|
'& > svg': {
|
|
|
|
fill: '#A4B8D1'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.prejoin-dialog-btn': {
|
2022-10-13 10:42:39 +00:00
|
|
|
width: '309px',
|
|
|
|
marginBottom: '8px'
|
2022-06-15 07:34:09 +00:00
|
|
|
},
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.prejoin-dialog-dialin-container': {
|
|
|
|
textAlign: 'center' as const
|
2022-06-15 07:34:09 +00:00
|
|
|
},
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.prejoin-dialog-delimiter': {
|
2022-06-15 07:34:09 +00:00
|
|
|
background: '#5f6266',
|
|
|
|
border: '0',
|
|
|
|
height: '1px',
|
|
|
|
margin: '0',
|
|
|
|
padding: '0',
|
|
|
|
width: '100%'
|
|
|
|
},
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.prejoin-dialog-delimiter-container': {
|
|
|
|
margin: `${theme.spacing(3)} 0 ${theme.spacing(4)} 0`,
|
|
|
|
position: 'relative' as const
|
2022-06-15 07:34:09 +00:00
|
|
|
},
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.prejoin-dialog-delimiter-txt-container': {
|
|
|
|
position: 'absolute' as const,
|
|
|
|
textAlign: 'center' as const,
|
2022-06-15 07:34:09 +00:00
|
|
|
top: '-8px',
|
|
|
|
width: '100%'
|
|
|
|
},
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.prejoin-dialog-delimiter-txt': {
|
2022-06-15 07:34:09 +00:00
|
|
|
background: '#1C2025',
|
|
|
|
color: '#5f6266',
|
|
|
|
fontSize: '11px',
|
2022-09-13 07:36:00 +00:00
|
|
|
textTransform: 'uppercase' as const,
|
|
|
|
padding: `0 ${theme.spacing(2)}`
|
2022-06-15 07:34:09 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.prejoin-dialog-btn': {
|
|
|
|
'&.primary, &.prejoin-dialog-btn.text': {
|
2022-06-15 07:34:09 +00:00
|
|
|
width: '310px'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
'.toolbox-icon': {
|
2021-11-15 08:37:54 +00:00
|
|
|
display: 'flex',
|
|
|
|
borderRadius: 3,
|
2022-09-13 07:36:00 +00:00
|
|
|
flexDirection: 'column' as const,
|
2021-11-15 08:37:54 +00:00
|
|
|
fontSize: 24,
|
|
|
|
height: 48,
|
|
|
|
justifyContent: 'center',
|
|
|
|
width: 48,
|
|
|
|
|
|
|
|
'@media (hover: hover) and (pointer: fine)': {
|
|
|
|
'&:hover': {
|
2023-02-03 11:30:38 +00:00
|
|
|
backgroundColor: theme.palette.ui04
|
|
|
|
},
|
|
|
|
|
|
|
|
'&:active': {
|
|
|
|
backgroundColor: theme.palette.ui03
|
2021-11-15 08:37:54 +00:00
|
|
|
}
|
|
|
|
},
|
2022-09-13 07:36:00 +00:00
|
|
|
[theme.breakpoints.down(320)]: {
|
2021-11-15 08:37:54 +00:00
|
|
|
height: 36,
|
|
|
|
width: 36
|
|
|
|
},
|
|
|
|
|
|
|
|
'&.toggled': {
|
2023-02-03 11:30:38 +00:00
|
|
|
backgroundColor: theme.palette.ui03
|
2021-11-15 08:37:54 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
'&.disabled': {
|
|
|
|
cursor: 'initial !important',
|
2022-07-12 12:28:20 +00:00
|
|
|
backgroundColor: `${theme.palette.disabled01} !important`,
|
2021-11-15 08:37:54 +00:00
|
|
|
|
|
|
|
'& svg': {
|
|
|
|
fill: `${theme.palette.text03} !important`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-09-13 07:36:00 +00:00
|
|
|
|
|
|
|
'.toolbox-button': {
|
2021-11-15 08:37:54 +00:00
|
|
|
color: theme.palette.text01,
|
|
|
|
cursor: 'pointer',
|
|
|
|
display: 'inline-block',
|
|
|
|
lineHeight: '48px',
|
2022-09-13 07:36:00 +00:00
|
|
|
textAlign: 'center' as const
|
2021-11-15 08:37:54 +00:00
|
|
|
},
|
2022-09-13 07:36:00 +00:00
|
|
|
|
|
|
|
'.toolbox-content-items': {
|
2021-11-15 08:37:54 +00:00
|
|
|
background: theme.palette.ui01,
|
|
|
|
borderRadius: 6,
|
|
|
|
margin: '0 auto',
|
|
|
|
padding: 6,
|
2022-09-13 07:36:00 +00:00
|
|
|
textAlign: 'center' as const,
|
|
|
|
pointerEvents: 'all' as const,
|
2023-02-03 11:30:38 +00:00
|
|
|
boxShadow: '0px 2px 8px 4px rgba(0, 0, 0, 0.25), 0px 0px 0px 1px rgba(0, 0, 0, 0.15)',
|
|
|
|
|
|
|
|
'& > div': {
|
|
|
|
marginRight: theme.spacing(2),
|
|
|
|
|
|
|
|
'&:last-of-type': {
|
|
|
|
marginRight: 0
|
|
|
|
}
|
|
|
|
}
|
2021-11-15 08:37:54 +00:00
|
|
|
}
|
|
|
|
};
|
2021-10-08 08:05:16 +00:00
|
|
|
};
|