|
| 1 | +import { styled } from '@mui/material'; |
| 2 | +import { |
| 3 | + BLACK, |
| 4 | + BUTTON_MODAL, |
| 5 | + BUTTON_MODAL_DARK, |
| 6 | + NOT_FOUND, |
| 7 | + SLIGHT_BLACK_2, |
| 8 | + SLIGHT_BLUE, |
| 9 | + WHITE |
| 10 | +} from '../../theme/colors/colors'; |
| 11 | + |
| 12 | +export const HeaderModal = styled('div')(({ theme }) => { |
| 13 | + const startColor = theme.palette.mode === 'light' ? BUTTON_MODAL : BLACK; |
| 14 | + const endColor = theme.palette.mode === 'light' ? SLIGHT_BLUE : SLIGHT_BLACK_2; |
| 15 | + |
| 16 | + return { |
| 17 | + display: 'flex', |
| 18 | + justifyContent: 'space-between', |
| 19 | + padding: '1rem', |
| 20 | + boxShadow: 'inset 0px -1px 3px 0px rgba(0,0,0,0.2)', |
| 21 | + background: `linear-gradient(90deg, ${startColor}, ${endColor})`, |
| 22 | + filter: |
| 23 | + theme.palette.mode === 'light' |
| 24 | + ? `progid:DXImageTransform.Microsoft.gradient(startColorstr='${BUTTON_MODAL}',endColorstr='${SLIGHT_BLUE}',GradientType=1)` |
| 25 | + : `progid:DXImageTransform.Microsoft.gradient(startColorstr='${BUTTON_MODAL_DARK}',GradientType=1)` |
| 26 | + }; |
| 27 | +}); |
| 28 | + |
| 29 | +export const ModalWrapper = styled('div')(() => ({ |
| 30 | + zIndex: '100', |
| 31 | + borderRadius: '5px' |
| 32 | +})); |
| 33 | + |
| 34 | +export const ButtonContainer = styled('div')(({ theme }) => ({ |
| 35 | + padding: '1rem 1.5rem', |
| 36 | + display: 'flex', |
| 37 | + justifyContent: 'flex-end', |
| 38 | + backgroundColor: theme.palette.mode === 'light' ? BUTTON_MODAL : BUTTON_MODAL_DARK, |
| 39 | + boxShadow: 'inset 0px 3px 5px 0px rgba(0,0,0,0.25)' |
| 40 | +})); |
| 41 | + |
| 42 | +export const ContentContainer = styled('div')(({ theme }) => ({ |
| 43 | + padding: '2rem 1rem', |
| 44 | + backgroundColor: theme.palette.mode === 'light' ? WHITE : NOT_FOUND |
| 45 | +})); |
0 commit comments