_amount.scss
2 years ago
_billingAddress.scss
2 years ago
_donation-summary.scss
2 years ago
_form-errors.scss
2 years ago
_gateways.scss
1 year ago
_goal.scss
2 years ago
_pagination.scss
2 years ago
_receipt.scss
2 years ago
_receipt.scss
350 lines
| 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 | |
| 223 | .download-btn { |
| 224 | font-size: inherit; |
| 225 | padding-block: 0.75rem; |
| 226 | padding-inline: 1.6875rem; |
| 227 | } |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | .givewp-layouts-receipt { |
| 232 | .receipt-body { |
| 233 | padding-block-start: 2.375rem; |
| 234 | padding-inline: 1.25rem; |
| 235 | } |
| 236 | |
| 237 | .details + .details { |
| 238 | margin-block-start: 2.375rem; |
| 239 | } |
| 240 | |
| 241 | .headline { |
| 242 | display: flex; |
| 243 | align-items: center; |
| 244 | column-gap: 0.5rem; |
| 245 | padding-block-end: 1.25rem; |
| 246 | |
| 247 | &::before { |
| 248 | font-family: 'Font Awesome 6 Free'; |
| 249 | font-weight: 900; |
| 250 | font-size: 0.875rem; |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | // Margins between rows |
| 255 | |
| 256 | .headline, |
| 257 | .details-row { |
| 258 | border-block-end: 0.0625rem solid #f2f2f2; |
| 259 | } |
| 260 | |
| 261 | .details-row { |
| 262 | padding-block: 0.9375rem; |
| 263 | } |
| 264 | |
| 265 | // Donor Details |
| 266 | .details-donor-details .headline::before { |
| 267 | content: '\f007'; |
| 268 | } |
| 269 | |
| 270 | // Donation Details |
| 271 | .details-donation-details .headline::before { |
| 272 | content: '\f004'; |
| 273 | } |
| 274 | |
| 275 | // Donation Details |
| 276 | .details-event-tickets-details .headline::before { |
| 277 | content: '\f3ff'; |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | .receipt-header { |
| 282 | &-top-wrap { |
| 283 | border-top-left-radius: 0.5rem; |
| 284 | border-top-right-radius: 0.5rem; |
| 285 | background-color: var(--givewp-primary-color); |
| 286 | max-width: min(100%, 51.5rem); |
| 287 | margin: 0 auto; |
| 288 | display: grid; |
| 289 | justify-items: center; |
| 290 | row-gap: 1.5rem; |
| 291 | padding: 3rem; |
| 292 | color: #fff; |
| 293 | text-align: center; |
| 294 | |
| 295 | @media screen and (min-width: map-get(variables.$breakpoints, "md")) { |
| 296 | padding: 3rem; |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | &-heading { |
| 301 | position: relative; |
| 302 | margin-block-end: 1rem; |
| 303 | font-size: 1.75rem; |
| 304 | font-weight: 600; |
| 305 | line-height: 1.2; |
| 306 | text-shadow: 0 0.07em 0.14em rgba(0, 0, 0, 0.15); |
| 307 | color: currentColor; |
| 308 | |
| 309 | &::after { |
| 310 | position: absolute; |
| 311 | content: ''; |
| 312 | display: block; |
| 313 | border-radius: 9999px; |
| 314 | inline-size: 4.375rem; |
| 315 | block-size: 0.3125rem; |
| 316 | background-color: #fff; |
| 317 | inset-inline-start: 50%; |
| 318 | inset-block-start: calc(100% + 1.25rem); |
| 319 | transform: translate(-50%); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | &-description { |
| 324 | font-size:1.125rem; |
| 325 | line-height: 1.45; |
| 326 | margin: 0 auto; |
| 327 | max-inline-size: 42ch; |
| 328 | color: currentColor; |
| 329 | } |
| 330 | } |
| 331 | |
| 332 | .givewp-form-secure-badge { |
| 333 | display: inline-flex; |
| 334 | column-gap: 0.5rem; |
| 335 | align-items: center; |
| 336 | padding-block: 0.5rem; |
| 337 | padding-inline: 0.9rem; |
| 338 | border-radius: 9999px; |
| 339 | background-color: #fff; |
| 340 | box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.25); |
| 341 | color: #333; |
| 342 | font-size: 0.9rem; |
| 343 | font-weight: 500; |
| 344 | line-height: 1; |
| 345 | } |
| 346 | |
| 347 | .givewp-form-secure-badge-icon { |
| 348 | color: var(--givewp-secondary-color); |
| 349 | } |
| 350 |