ConsentModal.tsx
2 years ago
ShowTerms.tsx
2 years ago
createIframePortal.tsx
1 year ago
index.tsx
2 years ago
styles.scss
2 years ago
styles.scss
68 lines
| 1 | |
| 2 | .givewp-fields-consent { |
| 3 | > span { |
| 4 | font-size: 1rem; |
| 5 | color: var(--givewp-grey-700); |
| 6 | font-weight: 500; |
| 7 | } |
| 8 | |
| 9 | &-modal { |
| 10 | position: fixed; |
| 11 | top: 0; |
| 12 | left: 0; |
| 13 | bottom: 0; |
| 14 | right: 0; |
| 15 | display: flex; |
| 16 | align-items: center; |
| 17 | justify-content: center; |
| 18 | background: transparent; |
| 19 | backdrop-filter: blur(2px); |
| 20 | |
| 21 | &-content { |
| 22 | max-width: 48rem; |
| 23 | background: var(--givep-shades-white, #fff); |
| 24 | padding: 2.5rem 3.5rem; |
| 25 | width: calc(min(100%, 51.5rem) + 2rem); |
| 26 | box-shadow: 0 0.25rem 0.5rem 0 rgba(230, 230, 230, 1); |
| 27 | border-radius: 0.25rem; |
| 28 | |
| 29 | > h2 { |
| 30 | font-size: 1.25rem; |
| 31 | color: var(--givewp-primary-color); |
| 32 | } |
| 33 | |
| 34 | &__agreement-text { |
| 35 | max-height: 24rem; |
| 36 | margin-bottom: 1.5rem; |
| 37 | overflow-y: scroll; |
| 38 | } |
| 39 | |
| 40 | &__actions { |
| 41 | display: flex; |
| 42 | gap: 1rem; |
| 43 | |
| 44 | button:first-child { |
| 45 | background: transparent; |
| 46 | color: var(--givewp-primary-color); |
| 47 | border: 1px solid var(--givewp-primary-color); |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | &__checkbox-label { |
| 54 | display: flex; |
| 55 | align-items: center; |
| 56 | gap: .25rem; |
| 57 | |
| 58 | > button { |
| 59 | border: 0; |
| 60 | color: var(--givewp-primary-color); |
| 61 | width: fit-content; |
| 62 | background: none; |
| 63 | padding: 0; |
| 64 | margin: 0; |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 |