| 1 |
$eps-modal-background-color: theme-colors(light); |
| 2 |
$eps-modal-width: px-to-rem(700); |
| 3 |
$eps-modal-border-radius: $eps-radius; |
| 4 |
$eps-modal-overlay: rgba(theme-colors(dark), $opacity-05); |
| 5 |
$eps-modal-zindex: $eps-zindex-modal-backdrop; |
| 6 |
$eps-modal-header-type: type(text, md); |
| 7 |
$eps-modal-header-background-color: theme-colors(info); |
| 8 |
$eps-modal-header-color: theme-colors(light); |
| 9 |
$eps-modal-header-height: spacing(44); |
| 10 |
$eps-modal-header-padding: spacing(10) spacing(16); |
| 11 |
$eps-modal-header-border-radius: $eps-radius; |
| 12 |
$eps-modal-icon-spacing: spacing(10); |
| 13 |
$eps-modal-body-padding: spacing(30); |
| 14 |
$eps-modal-close-button-spacing: spacing(16); |
| 15 |
$eps-modal-close-button-border: solid 1px theme-colors(light); |
| 16 |
$eps-modal-animation: $eps-pop-animation; |
| 17 |
$eps-tip-padding-start: spacing(12); |
| 18 |
$eps-tip-border-start: 3px solid theme-colors(info); |
| 19 |
$eps-tip-margin-bottom: spacing(30); |
| 20 |
$eps-tip-margin-top: spacing(30); |
| 21 |
|
| 22 |
:root { |
| 23 |
--eps-modal-background-color: #{$eps-modal-background-color}; |
| 24 |
--eps-modal-header-background-color: #{$eps-modal-header-background-color}; |
| 25 |
} |
| 26 |
|
| 27 |
// Dark |
| 28 |
|
| 29 |
$eps-dark-modal-background-color: dark-tints(700); |
| 30 |
$eps-dark-modal-header-background-color: dark-theme-colors(info); |
| 31 |
|
| 32 |
.eps-theme-dark { |
| 33 |
--eps-modal-background-color: #{$eps-dark-modal-background-color}; |
| 34 |
--eps-modal-header-background-color: #{$eps-dark-modal-header-background-color}; |
| 35 |
} |
| 36 |
|
| 37 |
/** ---------------------------------------------------------------- |
| 38 |
EPS Modal |
| 39 |
---------------------------------------------------------------- */ |
| 40 |
|
| 41 |
.#{$eps-prefix}modal { |
| 42 |
max-width: $eps-modal-width; |
| 43 |
background: var(--eps-modal-background-color); |
| 44 |
border-radius: $eps-modal-border-radius; |
| 45 |
animation: $eps-modal-animation; |
| 46 |
|
| 47 |
&__overlay { |
| 48 |
background: $eps-modal-overlay; |
| 49 |
position: fixed; |
| 50 |
display: flex; |
| 51 |
top: 0; |
| 52 |
left: 0; |
| 53 |
width: 100%; |
| 54 |
height: 100%; |
| 55 |
align-items: center; |
| 56 |
justify-content: center; |
| 57 |
z-index: $eps-modal-zindex; |
| 58 |
} |
| 59 |
|
| 60 |
&__header { |
| 61 |
font-size: $eps-modal-header-type; |
| 62 |
background: var(--eps-modal-header-background-color); |
| 63 |
height: $eps-modal-header-height; |
| 64 |
padding: $eps-modal-header-padding; |
| 65 |
border-radius: $eps-modal-header-border-radius; |
| 66 |
|
| 67 |
&, |
| 68 |
& .title { |
| 69 |
color: $eps-modal-header-color; |
| 70 |
} |
| 71 |
} |
| 72 |
|
| 73 |
&__icon { |
| 74 |
margin-inline-end: $eps-modal-icon-spacing; |
| 75 |
} |
| 76 |
|
| 77 |
&__body { |
| 78 |
padding: $eps-modal-body-padding; |
| 79 |
} |
| 80 |
|
| 81 |
&__tip, .#{$eps-prefix}tip { |
| 82 |
padding-inline-start: $eps-tip-padding-start; |
| 83 |
border-inline-start: $eps-tip-border-start; |
| 84 |
&:not(:last-child) { |
| 85 |
margin-bottom: $eps-tip-margin-bottom; |
| 86 |
} |
| 87 |
|
| 88 |
&:not(:first-child) { |
| 89 |
margin-top: $eps-tip-margin-top; |
| 90 |
} |
| 91 |
} |
| 92 |
|
| 93 |
&__section:not(:first-child) { |
| 94 |
margin-top: spacing(30); |
| 95 |
} |
| 96 |
|
| 97 |
&__close-wrapper { |
| 98 |
padding-inline-start: $eps-modal-close-button-spacing; |
| 99 |
border-inline-start: $eps-modal-close-button-border; |
| 100 |
} |
| 101 |
} |
| 102 |
|