| 1 |
@use 'sass:string'; |
| 2 |
|
| 3 |
.give-stripe-checkout-modal { |
| 4 |
display: none; |
| 5 |
|
| 6 |
&.give-stripe-checkout-show-modal { |
| 7 |
position: fixed; |
| 8 |
inset-block-start: 0; |
| 9 |
inset-inline-start: 0; |
| 10 |
// High enough to be shown above everything. Feel free to increase if necessary. |
| 11 |
z-index: 10; |
| 12 |
block-size: 100%; |
| 13 |
min-block-size: max-content; |
| 14 |
inline-size: 100%; |
| 15 |
overflow: auto; |
| 16 |
overscroll-behavior: contain; |
| 17 |
display: flex; |
| 18 |
align-items: safe center; // Safe alignment in Firefox |
| 19 |
justify-content: center; |
| 20 |
background-color: rgb(0 0 0 / 0.5); |
| 21 |
|
| 22 |
// For the future... |
| 23 |
body:has(&) { |
| 24 |
overflow: hidden; |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
&-content { |
| 29 |
block-size: max-content; |
| 30 |
inline-size: min(100%, 32rem); |
| 31 |
margin: auto; // Fallback for `align-items: safe center` on parent |
| 32 |
} |
| 33 |
|
| 34 |
&-container { |
| 35 |
background-color: #fff; |
| 36 |
font-size: 1rem; |
| 37 |
|
| 38 |
@media screen and (min-width: $desktopMinWidth) { |
| 39 |
border-radius: 0.5rem; |
| 40 |
} |
| 41 |
|
| 42 |
& > :first-child { |
| 43 |
border-start-start-radius: inherit; |
| 44 |
border-start-end-radius: inherit; |
| 45 |
} |
| 46 |
|
| 47 |
& > :last-child { |
| 48 |
border-end-start-radius: inherit; |
| 49 |
border-end-end-radius: inherit; |
| 50 |
} |
| 51 |
|
| 52 |
& > * { |
| 53 |
padding: 1rem; |
| 54 |
} |
| 55 |
} |
| 56 |
|
| 57 |
&-header { |
| 58 |
position: relative; |
| 59 |
--tint-color: rgba(var(--give-header-background-color--for-rgb), 0.75); |
| 60 |
--tint: linear-gradient(to right, var(--tint-color), var(--tint-color)); |
| 61 |
background-color: rgb(var(--give-header-background-color--for-rgb)) !important; |
| 62 |
/* translucent tint gradient over image */ |
| 63 |
background-image: var(--tint, linear-gradient(transparent, transparent)), var(--give-header-background-image); |
| 64 |
background-size: cover; |
| 65 |
background-position: center; |
| 66 |
color: #fff; |
| 67 |
text-shadow: 0 0.07em 0.14em rgb(0 0 0 / 0.15); |
| 68 |
text-align: center; |
| 69 |
font-family: var(--give-font); |
| 70 |
} |
| 71 |
|
| 72 |
&-close { |
| 73 |
position: absolute; |
| 74 |
inset-block-start: 0; |
| 75 |
inset-inline-end: 0; |
| 76 |
margin: 1rem; |
| 77 |
border: 0; |
| 78 |
border-radius: 9999px; |
| 79 |
background-color: transparent; |
| 80 |
opacity: 0.75; |
| 81 |
font-size: 1.2em; |
| 82 |
transition: opacity 0.2s ease-in-out; |
| 83 |
|
| 84 |
&:hover { |
| 85 |
opacity: 1; |
| 86 |
} |
| 87 |
|
| 88 |
&:focus { |
| 89 |
opacity: 1; |
| 90 |
outline: 0.125em solid fff; |
| 91 |
} |
| 92 |
|
| 93 |
&::before { |
| 94 |
content: 'Close'; |
| 95 |
@include visually-hidden; |
| 96 |
} |
| 97 |
|
| 98 |
&::after { |
| 99 |
content: '\f057'; |
| 100 |
color: #fff; |
| 101 |
font-family: 'Font Awesome 5 Free'; |
| 102 |
font-weight: 900; |
| 103 |
block-size: 1em; |
| 104 |
aspect-ratio: 1; |
| 105 |
@supports not (aspect-ratio: 1) { |
| 106 |
inline-size: 1em; |
| 107 |
} |
| 108 |
} |
| 109 |
|
| 110 |
& > svg { |
| 111 |
display: none; |
| 112 |
} |
| 113 |
} |
| 114 |
|
| 115 |
&-body { |
| 116 |
display: grid; |
| 117 |
grid-auto-flow: row; |
| 118 |
grid-template-columns: repeat(12, 1fr); |
| 119 |
gap: 1rem; |
| 120 |
} |
| 121 |
|
| 122 |
&-sequoia-donate-button { |
| 123 |
inline-size: 100%; |
| 124 |
} |
| 125 |
} |
| 126 |
|