style.scss
108 lines
| 1 | .givewp-modal-wrapper { |
| 2 | position: fixed; |
| 3 | display: flex; |
| 4 | top: 0; |
| 5 | left: 0; |
| 6 | right: 0; |
| 7 | bottom: 0; |
| 8 | align-items: center; |
| 9 | justify-items: center; |
| 10 | justify-content: center; |
| 11 | background-color: rgba(0, 0, 0, 0.1); |
| 12 | backdrop-filter: blur(2px); |
| 13 | z-index: 99999999999999; |
| 14 | animation: appear 112ms ease-in 0s; |
| 15 | |
| 16 | .givewp-modal-dialog { |
| 17 | position: relative; |
| 18 | font-family: 'Open Sans', sans-serif; |
| 19 | max-width: 32rem; |
| 20 | width: 100%; |
| 21 | border-radius: var(--givewp-rounded-4); |
| 22 | background-color: #fff; |
| 23 | box-shadow: 0 0.25rem 0.5rem 0 rgba(14, 14, 14, 0.15); |
| 24 | animation: appear 112ms ease-in 0s; |
| 25 | color: var(--givewp-grey-700); |
| 26 | |
| 27 | .givewp-modal-header { |
| 28 | display: flex; |
| 29 | align-self: stretch; |
| 30 | font-size: 1rem; |
| 31 | font-weight: 700; |
| 32 | align-items: center; |
| 33 | padding: var(--givewp-spacing-4) var(--givewp-spacing-5); |
| 34 | background-color: #fff; |
| 35 | border-top-left-radius: var(--givewp-rounded-6); |
| 36 | border-top-right-radius: var(--givewp-rounded-6); |
| 37 | border-bottom: 1px solid var(--givewp-grey-50); |
| 38 | color: var(--givewp-grey-900); |
| 39 | } |
| 40 | |
| 41 | .givewp-modal-icon-header { |
| 42 | margin-right: 10px; |
| 43 | display: flex; |
| 44 | align-items: center; |
| 45 | justify-content: center; |
| 46 | } |
| 47 | |
| 48 | .givewp-modal-icon-center { |
| 49 | display: flex; |
| 50 | flex: 1; |
| 51 | justify-content: center; |
| 52 | padding-top: var(--givewp-spacing-5); |
| 53 | } |
| 54 | |
| 55 | .givewp-modal-close, |
| 56 | .givewp-modal-close-headless { |
| 57 | all: unset; |
| 58 | position: absolute; |
| 59 | cursor: pointer; |
| 60 | z-index: 999; |
| 61 | fill: var(--givewp-grey-500); |
| 62 | } |
| 63 | |
| 64 | .givewp-modal-close { |
| 65 | top: var(--givewp-spacing-4); |
| 66 | right: var(--givewp-spacing-5); |
| 67 | } |
| 68 | |
| 69 | .givewp-modal-close-headless { |
| 70 | display: flex; |
| 71 | align-items: center; |
| 72 | justify-content: center; |
| 73 | padding: var(--givewp-spacing-1); |
| 74 | background-color: var(--givewp-grey-50); |
| 75 | border-radius: 50%; |
| 76 | top: var(--givewp-spacing-2); |
| 77 | right: var(--givewp-spacing-2); |
| 78 | |
| 79 | svg { |
| 80 | width: 16px; |
| 81 | height: 16px; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | .givewp-modal-content { |
| 86 | font-size: 0.875rem; |
| 87 | padding: var(--givewp-spacing-6); |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | @keyframes appear { |
| 93 | 0% { |
| 94 | opacity: 0; |
| 95 | } |
| 96 | 100% { |
| 97 | opacity: 1; |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | @media screen and (max-width: 782px) { |
| 102 | .givewp-modal-dialog { |
| 103 | position: sticky; |
| 104 | max-width: 100% !important; |
| 105 | } |
| 106 | } |
| 107 | |
| 108 |