| 1 |
@use 'fn'; |
| 2 |
|
| 3 |
.give-receipt-classic { |
| 4 |
background: #fff; |
| 5 |
box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.3); |
| 6 |
|
| 7 |
@media screen and (min-width: $desktopMinWidth) { |
| 8 |
border-radius: 0.5rem; |
| 9 |
} |
| 10 |
|
| 11 |
.give-receipt-title { |
| 12 |
position: relative; |
| 13 |
margin-block: 2rem; |
| 14 |
font-size: 1.625rem; |
| 15 |
font-weight: 600; |
| 16 |
line-height: 1.2; |
| 17 |
text-shadow: 0 0.07em 0.14em rgba(0, 0, 0, 0.15); |
| 18 |
} |
| 19 |
|
| 20 |
.social-sharing { |
| 21 |
display: flex; |
| 22 |
flex-direction: column; |
| 23 |
align-items: center; |
| 24 |
row-gap: 1.25rem; |
| 25 |
background: #fbfbfb; |
| 26 |
border-block: 0.0625rem solid #f2f2f2; |
| 27 |
padding-block: fn.scaleBetween(1.5rem, 2.5rem); |
| 28 |
padding-inline: 1.25rem; |
| 29 |
|
| 30 |
.instruction { |
| 31 |
line-height: 1.5; |
| 32 |
grid-column: span 2; |
| 33 |
font-size: 0.9375rem; |
| 34 |
color: #555; |
| 35 |
text-align: center; |
| 36 |
max-inline-size: 60ch; |
| 37 |
} |
| 38 |
|
| 39 |
.btn-row { |
| 40 |
display: flex; |
| 41 |
flex-wrap: wrap; |
| 42 |
justify-content: center; |
| 43 |
align-items: center; |
| 44 |
column-gap: 1.75rem; |
| 45 |
row-gap: 1rem; |
| 46 |
} |
| 47 |
|
| 48 |
.social-btn { |
| 49 |
display: flex; |
| 50 |
align-items: center; |
| 51 |
column-gap: 0.75em; |
| 52 |
font-size: 1rem; |
| 53 |
padding: 0.875em 1.6875em; |
| 54 |
border: none; |
| 55 |
transition: background-color 0.2s ease; |
| 56 |
|
| 57 |
> i { |
| 58 |
font-size: 1.375em; |
| 59 |
} |
| 60 |
|
| 61 |
&.facebook-btn { |
| 62 |
background-color: #3b5998; |
| 63 |
|
| 64 |
&:hover { |
| 65 |
background-color: #4668b1; |
| 66 |
} |
| 67 |
} |
| 68 |
|
| 69 |
&.twitter-btn { |
| 70 |
background-color: #00acee; |
| 71 |
|
| 72 |
&:hover { |
| 73 |
background-color: #00b7ff; |
| 74 |
} |
| 75 |
} |
| 76 |
} |
| 77 |
} |
| 78 |
|
| 79 |
.receipt-sections { |
| 80 |
.details { |
| 81 |
.headline { |
| 82 |
color: #333333; |
| 83 |
font-weight: 600; |
| 84 |
font-size: 1.25rem; |
| 85 |
} |
| 86 |
.details-table { |
| 87 |
display: flex; |
| 88 |
flex-direction: column; |
| 89 |
|
| 90 |
.details-row { |
| 91 |
display: flex; |
| 92 |
flex-wrap: wrap; |
| 93 |
align-items: flex-start; |
| 94 |
column-gap: 0.625rem; |
| 95 |
row-gap: 0.5rem; |
| 96 |
font-size: 1.125rem; |
| 97 |
font-weight: 500; |
| 98 |
|
| 99 |
> i { |
| 100 |
align-self: center; |
| 101 |
color: #989898; |
| 102 |
} |
| 103 |
|
| 104 |
.detail { |
| 105 |
align-self: center; |
| 106 |
white-space: nowrap; |
| 107 |
color: #6b6b6b; |
| 108 |
margin-inline-end: auto; |
| 109 |
} |
| 110 |
|
| 111 |
.value { |
| 112 |
margin-inline-start: 0; |
| 113 |
white-space: pre-wrap; |
| 114 |
} |
| 115 |
} |
| 116 |
|
| 117 |
.details-row--paymentStatus .value { |
| 118 |
display: flex; |
| 119 |
align-items: center; |
| 120 |
column-gap: 0.5rem; |
| 121 |
|
| 122 |
&::before { |
| 123 |
content: ''; |
| 124 |
--diameter: 0.8125rem; |
| 125 |
block-size: var(--diameter); |
| 126 |
aspect-ratio: 1; |
| 127 |
// Until Safari 14 usage drops off |
| 128 |
@supports not (aspect-ratio: 1) { |
| 129 |
inline-size: var(--diameter); |
| 130 |
} |
| 131 |
flex-shrink: 0; |
| 132 |
background-color: var(--status-color, #ccc); |
| 133 |
clip-path: circle(); |
| 134 |
} |
| 135 |
|
| 136 |
&[data-value='Complete']='Complete'] { |
| 137 |
--status-color: #1fe433; |
| 138 |
} |
| 139 |
|
| 140 |
&[data-value='Pending']='Pending'] { |
| 141 |
--status-color: #ffba00; |
| 142 |
} |
| 143 |
|
| 144 |
&[data-value='Failed']='Failed'] { |
| 145 |
--status-color: red; |
| 146 |
} |
| 147 |
} |
| 148 |
|
| 149 |
.details-row--totalAmount { |
| 150 |
font-weight: 700; |
| 151 |
} |
| 152 |
|
| 153 |
&.payment-details { |
| 154 |
border-bottom: 0.125rem solid #f2f2f2; |
| 155 |
} |
| 156 |
} |
| 157 |
|
| 158 |
.details-table:empty { |
| 159 |
display: none !important; |
| 160 |
} |
| 161 |
} |
| 162 |
} |
| 163 |
|
| 164 |
.dashboard-link-container { |
| 165 |
display: flex; |
| 166 |
justify-content: space-between; |
| 167 |
align-items: center; |
| 168 |
margin-block-start: 2rem; |
| 169 |
padding-block-end: fn.scaleBetween(1.5rem, 3.625rem); |
| 170 |
padding-inline: fn.scaleBetween(1.25rem, 4.25rem); |
| 171 |
|
| 172 |
.dashboard-link { |
| 173 |
color: var(--give-primary-color); |
| 174 |
|
| 175 |
> i { |
| 176 |
margin-inline-start: 0.25rem; |
| 177 |
transform: translateY(0.18em); |
| 178 |
font-size: 1.5rem; |
| 179 |
text-decoration: none; |
| 180 |
line-height: 0.5; |
| 181 |
} |
| 182 |
} |
| 183 |
|
| 184 |
.download-btn { |
| 185 |
font-size: inherit; |
| 186 |
padding-block: 0.75rem; |
| 187 |
padding-inline: 1.6875rem; |
| 188 |
} |
| 189 |
} |
| 190 |
|
| 191 |
#give-pdf-receipt-link, |
| 192 |
#give-pdf-receipt-link:visited { |
| 193 |
display: flex; |
| 194 |
column-gap: 0.9375rem; |
| 195 |
align-items: center; |
| 196 |
text-decoration: none; |
| 197 |
color: #fff; |
| 198 |
|
| 199 |
&::after { |
| 200 |
display: inline-block; |
| 201 |
content: '\f1c1'; |
| 202 |
font-family: 'Font Awesome 5 Free'; |
| 203 |
font-weight: 900; |
| 204 |
font-size: 1.625rem; |
| 205 |
line-height: 1; |
| 206 |
} |
| 207 |
} |
| 208 |
} |
| 209 |
|
| 210 |
.give-receipt-classic { |
| 211 |
.receipt-sections { |
| 212 |
padding-block-start: fn.scaleBetween(2.375rem, 3rem); |
| 213 |
padding-inline: fn.scaleBetween(1.25rem, 4.25rem); |
| 214 |
} |
| 215 |
|
| 216 |
.details + .details { |
| 217 |
margin-block-start: 2.375rem; |
| 218 |
} |
| 219 |
|
| 220 |
.headline { |
| 221 |
display: flex; |
| 222 |
align-items: center; |
| 223 |
column-gap: 0.5rem; |
| 224 |
padding-block-end: 1.25rem; |
| 225 |
|
| 226 |
&::before { |
| 227 |
font-family: 'Font Awesome 5 Free'; |
| 228 |
font-weight: 900; |
| 229 |
font-size: 0.875rem; |
| 230 |
} |
| 231 |
} |
| 232 |
|
| 233 |
// Margins between rows |
| 234 |
|
| 235 |
.headline, |
| 236 |
.details-row { |
| 237 |
border-block-end: 0.0625rem solid #f2f2f2; |
| 238 |
} |
| 239 |
|
| 240 |
.details-row { |
| 241 |
padding-block: 0.9375rem; |
| 242 |
} |
| 243 |
|
| 244 |
// Donor Details |
| 245 |
.details:nth-child(1) .headline::before { |
| 246 |
content: '\f007'; |
| 247 |
} |
| 248 |
|
| 249 |
// Donation Details |
| 250 |
.details:nth-child(2) .headline::before { |
| 251 |
content: '\f004'; |
| 252 |
} |
| 253 |
} |
| 254 |
|