| 1 |
@use "@picocss/pico/scss/variables"; |
| 2 |
|
| 3 |
.givewp-donation-confirmation-receipt { |
| 4 |
padding: 1rem; |
| 5 |
width: 100%; |
| 6 |
max-width: 100%; |
| 7 |
} |
| 8 |
|
| 9 |
.givewp-layouts-receipt { |
| 10 |
border-radius: 0.5rem; |
| 11 |
max-width: min(100%,51.5rem); |
| 12 |
margin: 0 auto; |
| 13 |
background: #fff; |
| 14 |
box-shadow: var(--givewp-shadow-sm); |
| 15 |
|
| 16 |
@media screen and (min-width: map-get(variables.$breakpoints, "md")) { |
| 17 |
border-radius: 0.5rem; |
| 18 |
} |
| 19 |
|
| 20 |
.receipt-heading { |
| 21 |
position: relative; |
| 22 |
margin-block: 2rem; |
| 23 |
font-size: 1.625rem; |
| 24 |
font-weight: 600; |
| 25 |
line-height: 1.2; |
| 26 |
text-shadow: 0 0.07em 0.14em rgba(0, 0, 0, 0.15); |
| 27 |
color: currentColor; |
| 28 |
} |
| 29 |
|
| 30 |
.social-sharing { |
| 31 |
display: flex; |
| 32 |
flex-direction: column; |
| 33 |
align-items: center; |
| 34 |
row-gap: 1.25rem; |
| 35 |
background: #fbfbfb; |
| 36 |
border-block: 0.0625rem solid #f2f2f2; |
| 37 |
padding-block: 1.5rem; |
| 38 |
padding-inline: 1.25rem; |
| 39 |
|
| 40 |
.instruction { |
| 41 |
line-height: 1.5; |
| 42 |
grid-column: span 2; |
| 43 |
font-size: 0.9375rem; |
| 44 |
color: #555; |
| 45 |
text-align: center; |
| 46 |
max-inline-size: 60ch; |
| 47 |
} |
| 48 |
|
| 49 |
.btn-row { |
| 50 |
display: flex; |
| 51 |
flex-wrap: wrap; |
| 52 |
justify-content: center; |
| 53 |
align-items: center; |
| 54 |
column-gap: 1.75rem; |
| 55 |
row-gap: 1rem; |
| 56 |
} |
| 57 |
|
| 58 |
.social-btn { |
| 59 |
display: flex; |
| 60 |
align-items: center; |
| 61 |
column-gap: 0.75em; |
| 62 |
font-size: 1rem; |
| 63 |
padding: 0.875em 1.6875em; |
| 64 |
border: none; |
| 65 |
transition: background-color 0.2s ease; |
| 66 |
|
| 67 |
> i { |
| 68 |
font-size: 1.375em; |
| 69 |
} |
| 70 |
|
| 71 |
&.facebook-btn { |
| 72 |
background-color: #3b5998; |
| 73 |
|
| 74 |
&:hover { |
| 75 |
background-color: #4668b1; |
| 76 |
} |
| 77 |
} |
| 78 |
|
| 79 |
&.twitter-btn { |
| 80 |
background-color: #00acee; |
| 81 |
|
| 82 |
&:hover { |
| 83 |
background-color: #00b7ff; |
| 84 |
} |
| 85 |
} |
| 86 |
} |
| 87 |
} |
| 88 |
|
| 89 |
.receipt-body { |
| 90 |
.details { |
| 91 |
.headline { |
| 92 |
color: var(--givewp-grey-700); |
| 93 |
font-weight: 600; |
| 94 |
font-size: 1.25rem; |
| 95 |
} |
| 96 |
.details-table { |
| 97 |
display: flex; |
| 98 |
flex-direction: column; |
| 99 |
padding: 0; |
| 100 |
|
| 101 |
.details-row { |
| 102 |
display: flex; |
| 103 |
flex-wrap: wrap; |
| 104 |
align-items: flex-start; |
| 105 |
column-gap: 0.625rem; |
| 106 |
row-gap: 0.5rem; |
| 107 |
font-size: 1.125rem; |
| 108 |
font-weight: 500; |
| 109 |
|
| 110 |
> i { |
| 111 |
align-self: center; |
| 112 |
color: var(--givewp-grey-300); |
| 113 |
} |
| 114 |
|
| 115 |
.detail { |
| 116 |
align-self: center; |
| 117 |
white-space: nowrap; |
| 118 |
color: var(--givewp-grey-500); |
| 119 |
margin-inline-end: auto; |
| 120 |
} |
| 121 |
|
| 122 |
.value { |
| 123 |
margin-inline-start: 0; |
| 124 |
white-space: pre-wrap; |
| 125 |
text-align: right; |
| 126 |
} |
| 127 |
} |
| 128 |
|
| 129 |
.details-row--payment-status .value { |
| 130 |
display: flex; |
| 131 |
align-items: center; |
| 132 |
column-gap: 0.5rem; |
| 133 |
|
| 134 |
&::before { |
| 135 |
content: ''; |
| 136 |
--diameter: 0.8125rem; |
| 137 |
block-size: var(--diameter); |
| 138 |
aspect-ratio: 1; |
| 139 |
// Until Safari 14 usage drops off |
| 140 |
@supports not (aspect-ratio: 1) { |
| 141 |
inline-size: var(--diameter); |
| 142 |
} |
| 143 |
flex-shrink: 0; |
| 144 |
background-color: var(--status-color, #ccc); |
| 145 |
clip-path: circle(); |
| 146 |
} |
| 147 |
|
| 148 |
&[data-value='Complete']='Complete'], &[data-value='Completed']='Completed'] { |
| 149 |
--status-color: var(--givewp-emerald-500); |
| 150 |
} |
| 151 |
|
| 152 |
&[data-value='Pending']='Pending'] { |
| 153 |
--status-color: var(--givewp-orange-300); |
| 154 |
} |
| 155 |
|
| 156 |
&[data-value='Failed']='Failed'] { |
| 157 |
--status-color: var(--givewp-red-400); |
| 158 |
} |
| 159 |
} |
| 160 |
|
| 161 |
.details-row--donation-total { |
| 162 |
font-weight: 700; |
| 163 |
} |
| 164 |
|
| 165 |
&.payment-details { |
| 166 |
border-bottom: 0.125rem solid #f2f2f2; |
| 167 |
} |
| 168 |
} |
| 169 |
|
| 170 |
.details-table:empty { |
| 171 |
display: none !important; |
| 172 |
} |
| 173 |
} |
| 174 |
} |
| 175 |
|
| 176 |
.receipt-footer { |
| 177 |
display: flex; |
| 178 |
justify-content: space-between; |
| 179 |
flex-direction: column; |
| 180 |
align-items: center; |
| 181 |
margin-block-start: 2rem; |
| 182 |
padding-block-end: 1.5rem; |
| 183 |
padding-inline: 1.25rem; |
| 184 |
|
| 185 |
#give-pdf-receipt-link, |
| 186 |
#give-pdf-receipt-link:visited { |
| 187 |
display: flex; |
| 188 |
cursor: pointer; |
| 189 |
text-decoration: none; |
| 190 |
font-weight: 600; |
| 191 |
width: fit-content; |
| 192 |
padding: 0.75rem 2rem 0.75rem 2rem; |
| 193 |
margin-top: 1.5rem; |
| 194 |
margin-bottom: 1.75rem; |
| 195 |
border-radius: 0.2rem; |
| 196 |
border: thin solid var(--givewp-primary-color); |
| 197 |
background-color: #fff; |
| 198 |
color: var(--givewp-primary-color); |
| 199 |
|
| 200 |
|
| 201 |
&::before { |
| 202 |
display: inline-block; |
| 203 |
content: '\f1c1'; |
| 204 |
font-family: 'Font Awesome 6 Free'; |
| 205 |
font-weight: 900; |
| 206 |
font-size: 1.25rem; |
| 207 |
line-height: 1; |
| 208 |
margin-right: 0.5rem; |
| 209 |
} |
| 210 |
} |
| 211 |
|
| 212 |
#give-pdf-receipt-link:hover { |
| 213 |
background-color: var(--givewp-primary-color); |
| 214 |
color: #fff; |
| 215 |
} |
| 216 |
|
| 217 |
.donor-dashboard-link { |
| 218 |
color: var(--givewp-primary-color); |
| 219 |
text-decoration: underline; |
| 220 |
font-weight: 400; |
| 221 |
|
| 222 |
&:focus { |
| 223 |
outline: 0.125rem solid var(--givewp-primary-color); |
| 224 |
outline-offset: 0.25rem; |
| 225 |
} |
| 226 |
} |
| 227 |
|
| 228 |
.download-btn { |
| 229 |
font-size: inherit; |
| 230 |
padding-block: 0.75rem; |
| 231 |
padding-inline: 1.6875rem; |
| 232 |
} |
| 233 |
} |
| 234 |
} |
| 235 |
|
| 236 |
.givewp-layouts-receipt { |
| 237 |
.receipt-body { |
| 238 |
padding-block-start: 2.375rem; |
| 239 |
padding-inline: 1.25rem; |
| 240 |
} |
| 241 |
|
| 242 |
.details + .details { |
| 243 |
margin-block-start: 2.375rem; |
| 244 |
} |
| 245 |
|
| 246 |
.headline { |
| 247 |
display: flex; |
| 248 |
align-items: center; |
| 249 |
column-gap: 0.5rem; |
| 250 |
padding-block-end: 1.25rem; |
| 251 |
|
| 252 |
&::before { |
| 253 |
font-family: 'Font Awesome 6 Free'; |
| 254 |
font-weight: 900; |
| 255 |
font-size: 0.875rem; |
| 256 |
} |
| 257 |
} |
| 258 |
|
| 259 |
// Margins between rows |
| 260 |
|
| 261 |
.headline, |
| 262 |
.details-row { |
| 263 |
border-block-end: 0.0625rem solid #f2f2f2; |
| 264 |
} |
| 265 |
|
| 266 |
.details-row { |
| 267 |
padding-block: 0.9375rem; |
| 268 |
} |
| 269 |
|
| 270 |
// Donor Details |
| 271 |
.details-donor-details .headline::before { |
| 272 |
content: '\f007'; |
| 273 |
} |
| 274 |
|
| 275 |
// Donation Details |
| 276 |
.details-donation-details .headline::before { |
| 277 |
content: '\f004'; |
| 278 |
} |
| 279 |
|
| 280 |
// Donation Details |
| 281 |
.details-event-tickets-details .headline::before { |
| 282 |
content: '\f3ff'; |
| 283 |
} |
| 284 |
} |
| 285 |
|
| 286 |
.receipt-header { |
| 287 |
&-top-wrap { |
| 288 |
border-top-left-radius: 0.5rem; |
| 289 |
border-top-right-radius: 0.5rem; |
| 290 |
background-color: var(--givewp-primary-color); |
| 291 |
max-width: min(100%, 51.5rem); |
| 292 |
margin: 0 auto; |
| 293 |
display: grid; |
| 294 |
justify-items: center; |
| 295 |
row-gap: 1.5rem; |
| 296 |
padding: 3rem; |
| 297 |
color: #fff; |
| 298 |
text-align: center; |
| 299 |
|
| 300 |
@media screen and (min-width: map-get(variables.$breakpoints, "md")) { |
| 301 |
padding: 3rem; |
| 302 |
} |
| 303 |
} |
| 304 |
|
| 305 |
&-heading, &-heading * { |
| 306 |
position: relative; |
| 307 |
font-size: 1.75rem; |
| 308 |
font-weight: 600; |
| 309 |
line-height: 1.2; |
| 310 |
text-shadow: 0 0.07em 0.14em rgba(0, 0, 0, 0.15); |
| 311 |
color: currentColor; |
| 312 |
|
| 313 |
> * { |
| 314 |
color: currentColor; |
| 315 |
} |
| 316 |
} |
| 317 |
|
| 318 |
&-heading { |
| 319 |
margin-block-end: 1rem; |
| 320 |
|
| 321 |
> br { |
| 322 |
display: none; |
| 323 |
} |
| 324 |
|
| 325 |
&:not(:empty)::after { |
| 326 |
position: absolute; |
| 327 |
content: ''; |
| 328 |
display: block; |
| 329 |
border-radius: 9999px; |
| 330 |
inline-size: 4.375rem; |
| 331 |
block-size: 0.3125rem; |
| 332 |
background-color: #fff; |
| 333 |
inset-inline-start: 50%; |
| 334 |
inset-block-start: calc(100% + 1.25rem); |
| 335 |
transform: translate(-50%); |
| 336 |
} |
| 337 |
} |
| 338 |
|
| 339 |
&-description, &-description * { |
| 340 |
font-size:1.125rem; |
| 341 |
line-height: 1.45; |
| 342 |
margin: 0 auto; |
| 343 |
max-inline-size: 42ch; |
| 344 |
color: currentColor; |
| 345 |
} |
| 346 |
} |
| 347 |
|
| 348 |
.givewp-form-secure-badge { |
| 349 |
display: inline-flex; |
| 350 |
column-gap: 0.5rem; |
| 351 |
align-items: center; |
| 352 |
padding-block: 0.5rem; |
| 353 |
padding-inline: 0.9rem; |
| 354 |
border-radius: 9999px; |
| 355 |
background-color: #fff; |
| 356 |
box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.25); |
| 357 |
color: #333; |
| 358 |
font-size: 0.9rem; |
| 359 |
font-weight: 500; |
| 360 |
line-height: 1; |
| 361 |
} |
| 362 |
|
| 363 |
.givewp-form-secure-badge-icon { |
| 364 |
color: var(--givewp-secondary-color); |
| 365 |
} |
| 366 |
|