style.scss
118 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: 'Inter', sans-serif; |
| 19 | -webkit-font-smoothing: antialiased; |
| 20 | max-width: 35rem; |
| 21 | width: 100%; |
| 22 | border-radius: var(--givewp-rounded-4); |
| 23 | background-color: var(--givewp-shades-white); |
| 24 | box-shadow: 0 0.25rem 0.5rem 0 rgba(14, 14, 14, 0.15); |
| 25 | animation: appear 112ms ease-in 0s; |
| 26 | color: var(--givewp-grey-700); |
| 27 | max-height: calc(100% - 2rem); |
| 28 | overflow-y: auto; |
| 29 | |
| 30 | .givewp-modal-header { |
| 31 | display: flex; |
| 32 | align-self: stretch; |
| 33 | justify-content: flex-start; |
| 34 | font-size: 1.25rem; |
| 35 | line-height: 2rem; |
| 36 | font-weight: 600; |
| 37 | align-items: center; |
| 38 | padding: var(--givewp-spacing-4) var(--givewp-spacing-6); |
| 39 | background-color: var(--givewp-shades-white); |
| 40 | border-top-left-radius: var(--givewp-rounded-6); |
| 41 | border-top-right-radius: var(--givewp-rounded-6); |
| 42 | border-bottom: 1px solid var(--givewp-grey-50); |
| 43 | color: var(--givewp-neutral-900); |
| 44 | } |
| 45 | |
| 46 | .givewp-modal-icon-header { |
| 47 | margin-right: 8px; |
| 48 | display: flex; |
| 49 | align-items: center; |
| 50 | justify-content: center; |
| 51 | } |
| 52 | |
| 53 | .givewp-modal-icon-center { |
| 54 | display: flex; |
| 55 | flex: 1; |
| 56 | justify-content: center; |
| 57 | padding-top: var(--givewp-spacing-5); |
| 58 | } |
| 59 | |
| 60 | .givewp-modal-close, |
| 61 | .givewp-modal-close-headless { |
| 62 | all: unset; |
| 63 | position: absolute; |
| 64 | cursor: pointer; |
| 65 | z-index: 999; |
| 66 | fill: var(--givewp-neutral-500); |
| 67 | } |
| 68 | |
| 69 | .givewp-modal-close { |
| 70 | top: var(--givewp-spacing-5); |
| 71 | right: var(--givewp-spacing-6); |
| 72 | } |
| 73 | |
| 74 | .givewp-modal-close-headless { |
| 75 | display: flex; |
| 76 | align-items: center; |
| 77 | justify-content: center; |
| 78 | padding: var(--givewp-spacing-1); |
| 79 | background-color: var(--givewp-grey-50); |
| 80 | border-radius: 50%; |
| 81 | top: var(--givewp-spacing-2); |
| 82 | right: var(--givewp-spacing-2); |
| 83 | |
| 84 | svg { |
| 85 | width: 16px; |
| 86 | height: 16px; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | .givewp-modal-content { |
| 91 | font-size: 0.875rem; |
| 92 | padding: var(--givewp-spacing-6); |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | body.modalDialog-open { |
| 98 | overflow: hidden; |
| 99 | position: relative; |
| 100 | } |
| 101 | |
| 102 | @keyframes appear { |
| 103 | 0% { |
| 104 | opacity: 0; |
| 105 | } |
| 106 | 100% { |
| 107 | opacity: 1; |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | @media screen and (max-width: 782px) { |
| 112 | .givewp-modal-dialog { |
| 113 | position: sticky; |
| 114 | max-width: 100% !important; |
| 115 | } |
| 116 | } |
| 117 | |
| 118 |