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