styles.scss
383 lines
| 1 | @use '@givewp/css/Safe-Rem/functions' as *; |
| 2 | |
| 3 | .interweave { |
| 4 | .statusBadge { |
| 5 | display: flex; |
| 6 | justify-content: center; |
| 7 | align-items: center; |
| 8 | width: fit-content; |
| 9 | height: safe-rem(1.375); |
| 10 | padding: 0.125rem 0.75rem 0.125rem 0.75rem; |
| 11 | background-color: black; |
| 12 | color: #fff; |
| 13 | border-radius: safe-rem(1); |
| 14 | letter-spacing: 0.04rem; |
| 15 | transform: translateY(0.075rem); |
| 16 | column-gap: safe-rem(1); |
| 17 | text-transform: capitalize; |
| 18 | |
| 19 | div, |
| 20 | p { |
| 21 | font-size: safe-rem(0.75); |
| 22 | font-weight: 600; |
| 23 | line-height: safe-rem(1.125); |
| 24 | -webkit-font-smoothing: antialiased; |
| 25 | -moz-osx-font-smoothing: grayscale; |
| 26 | } |
| 27 | |
| 28 | &--completed, |
| 29 | &--complete { |
| 30 | background: var(--givewp-emerald-100); |
| 31 | color: var(--givewp-emerald-900); |
| 32 | } |
| 33 | |
| 34 | &--active, |
| 35 | &--publish, |
| 36 | &--published { |
| 37 | background: var(--givewp-green-100); |
| 38 | color: var(--givewp-green-900); |
| 39 | } |
| 40 | |
| 41 | &--archived, |
| 42 | &--inactive, |
| 43 | { |
| 44 | background: var(--givewp-grey-100); |
| 45 | color: var(--givewp-grey-900); |
| 46 | } |
| 47 | |
| 48 | &--failing { |
| 49 | background: var(--givewp-yellow-100); |
| 50 | color: var(--givewp-yellow-900); |
| 51 | } |
| 52 | |
| 53 | &--failed, |
| 54 | &--revoked, |
| 55 | &--abandoned, |
| 56 | &--cancelled, |
| 57 | &--expired { |
| 58 | background: var(--givewp-red-100); |
| 59 | color: var(--givewp-red-900); |
| 60 | } |
| 61 | |
| 62 | &--draft { |
| 63 | background: var(--givewp-orange-100); |
| 64 | color: var(--givewp-orange-900); |
| 65 | } |
| 66 | |
| 67 | &--pending, |
| 68 | &--processing { |
| 69 | background: var(--givewp-blue-100); |
| 70 | color: var(--givewp-blue-900); |
| 71 | } |
| 72 | |
| 73 | &--upgraded { |
| 74 | background: var(--givewp-purple-50); |
| 75 | color: var(--givewp-purple-900); |
| 76 | } |
| 77 | |
| 78 | &--refunded { |
| 79 | background: var(--givewp-blue-700); |
| 80 | color: var(--givewp-blue-25); |
| 81 | } |
| 82 | } |
| 83 | .subscriptionStatus { |
| 84 | display: flex; |
| 85 | gap: 10px; |
| 86 | |
| 87 | &__container { |
| 88 | position: relative; |
| 89 | display: flex; |
| 90 | align-items: center; |
| 91 | justify-content: center; |
| 92 | } |
| 93 | |
| 94 | &__message { |
| 95 | display: flex; |
| 96 | justify-content: space-between; |
| 97 | position: absolute; |
| 98 | top: -55px; |
| 99 | right: 0; |
| 100 | max-width: 27.75rem; |
| 101 | width: max-content; |
| 102 | height: max-content; |
| 103 | padding-inline: 1.25rem; |
| 104 | font-size: 0.75rem; |
| 105 | font-weight: 400; |
| 106 | line-height: 2.5rem; |
| 107 | border-radius: 2px; |
| 108 | background: #ffffff; |
| 109 | visibility: hidden; |
| 110 | z-index: 999; |
| 111 | |
| 112 | & img { |
| 113 | margin-right: 10px; |
| 114 | } |
| 115 | |
| 116 | &--exceeded { |
| 117 | top: -75px; |
| 118 | } |
| 119 | |
| 120 | &--failed, &--exceeded { |
| 121 | border: 1px solid #e5301b; |
| 122 | } |
| 123 | |
| 124 | &--indefinite { |
| 125 | border: 1px solid #69b868; |
| 126 | } |
| 127 | |
| 128 | &--limited { |
| 129 | border: 1px solid #f49420; |
| 130 | } |
| 131 | |
| 132 | &:before { |
| 133 | content: ''; |
| 134 | position: absolute; |
| 135 | bottom: -4.775px; |
| 136 | right: 6px; |
| 137 | display: inline-block; |
| 138 | height: 9px; |
| 139 | width: 9px; |
| 140 | background: #ffffff; |
| 141 | transform: rotate(45deg); |
| 142 | border-bottom: inherit; |
| 143 | border-right: inherit; |
| 144 | } |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | .subscriptionStatus:hover .subscriptionStatus__message { |
| 149 | visibility: visible; |
| 150 | } |
| 151 | |
| 152 | .badge { |
| 153 | display: inline-flex; |
| 154 | align-items: center; |
| 155 | justify-content: space-between; |
| 156 | position: relative; |
| 157 | inline-size: -moz-fit-content; |
| 158 | max-inline-size: fit-content; |
| 159 | block-size: 2rem; |
| 160 | margin: 0; |
| 161 | padding: 0; |
| 162 | background-color: white; |
| 163 | font-family: Open Sans; |
| 164 | border: 0; |
| 165 | border-radius: safe-rem(0.1875); |
| 166 | box-shadow: inset 0 0 0 1px rgba(203, 203, 203, 1); |
| 167 | overflow: hidden; |
| 168 | |
| 169 | & > * { |
| 170 | flex: 0 0 auto; |
| 171 | } |
| 172 | |
| 173 | .icon { |
| 174 | display: inline; |
| 175 | min-width: 1.75rem; |
| 176 | max-width: 1.75rem; |
| 177 | border-top-left-radius: 0.1875rem; |
| 178 | border-bottom-left-radius: 0.1875rem; |
| 179 | font-size: 1.125rem; |
| 180 | font-weight: 700; |
| 181 | letter-spacing: 0; |
| 182 | color: #555555; |
| 183 | box-sizing: content-box !important; |
| 184 | overflow: hidden; |
| 185 | |
| 186 | &--onetime, |
| 187 | &--single { |
| 188 | background: #556e79; |
| 189 | block-size: 1.125rem; |
| 190 | inline-size: 1.375rem; |
| 191 | padding-block: 0.575rem; |
| 192 | padding-inline: 0.3rem; |
| 193 | transform: translateY(2px); |
| 194 | } |
| 195 | |
| 196 | &--recurring, |
| 197 | &--subscription, |
| 198 | &--subscriber { |
| 199 | background: linear-gradient(225.34deg, #59ad70 0%, #2ebbbb 101.17%); |
| 200 | block-size: 1.125rem; |
| 201 | inline-size: 1.375rem; |
| 202 | padding-block: 0.4375rem; |
| 203 | padding-inline: 0.3125rem; |
| 204 | } |
| 205 | |
| 206 | &--repeat { |
| 207 | background: #f49420; |
| 208 | block-size: 1.125rem; |
| 209 | inline-size: 1.375rem; |
| 210 | padding-block: 0.4375rem; |
| 211 | padding-inline: 0.2025rem; |
| 212 | border-left: 4px solid #f49420; |
| 213 | } |
| 214 | |
| 215 | &--new { |
| 216 | background: #000000; |
| 217 | block-size: 1.125rem; |
| 218 | inline-size: 1.375rem; |
| 219 | padding-block: 0.4375rem; |
| 220 | padding-inline: 0.2125rem; |
| 221 | padding: 16px 0 0 8px; |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | &__label { |
| 226 | flex-basis: fit-content; |
| 227 | margin: 0; |
| 228 | padding: safe-rem(0.6125) safe-rem(0.65); |
| 229 | color: #555555; |
| 230 | font-size: safe-rem(0.75); |
| 231 | font-weight: 400; |
| 232 | text-align: center; |
| 233 | text-transform: uppercase; |
| 234 | cursor: default; |
| 235 | } |
| 236 | |
| 237 | .star { |
| 238 | display: inline; |
| 239 | color: rgba(255, 215, 0, 1); |
| 240 | position: absolute; |
| 241 | z-index: 2; |
| 242 | top: safe-rem(-0.5); |
| 243 | right: safe-rem(-0.5); |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | .donorInformation { |
| 248 | position: relative; |
| 249 | display: flex; |
| 250 | flex-flow: column wrap; |
| 251 | align-content: flex-start; |
| 252 | justify-content: center; |
| 253 | column-gap: safe-rem(0.6125); |
| 254 | row-gap: safe-rem(0.25); |
| 255 | height: safe-rem(4); |
| 256 | width: 100%; |
| 257 | |
| 258 | & > a { |
| 259 | color: #0878b0; |
| 260 | font-size: 1.125rem; |
| 261 | font-weight: 700; |
| 262 | } |
| 263 | |
| 264 | &__email { |
| 265 | min-width: 0; |
| 266 | overflow: hidden; |
| 267 | } |
| 268 | |
| 269 | &__gravatar { |
| 270 | border-radius: 9999px; |
| 271 | width: safe-rem(4); |
| 272 | height: safe-rem(4); |
| 273 | } |
| 274 | |
| 275 | &__name { |
| 276 | display: inline; |
| 277 | inline-size: -webkit-fit-content; |
| 278 | inline-size: -moz-fit-content; |
| 279 | inline-size: fit-content; |
| 280 | font-size: safe-rem(1.125); |
| 281 | text-decoration: none; |
| 282 | } |
| 283 | |
| 284 | &__email { |
| 285 | font-style: normal; |
| 286 | font-weight: 400; |
| 287 | line-height: 150%; |
| 288 | max-width: calc(100% - 4rem); |
| 289 | white-space: nowrap; |
| 290 | text-overflow: ellipsis; |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | .giveDonationFormsLink { |
| 295 | font-size: 1.125rem; |
| 296 | font-weight: 700; |
| 297 | text-decoration: none; |
| 298 | color: #2271b1; |
| 299 | } |
| 300 | |
| 301 | .shortcode { |
| 302 | flex-shrink: 1; |
| 303 | min-inline-size: 0; |
| 304 | inline-size: 100%; |
| 305 | color: #2c3338; |
| 306 | background-color: #f6f7f7; |
| 307 | padding-block: 0.445rem; |
| 308 | padding-inline: 1.5rem; |
| 309 | text-indent: -1rem; |
| 310 | border: 1px solid grey; |
| 311 | border-radius: 4px; |
| 312 | cursor: text; |
| 313 | white-space: nowrap; |
| 314 | overflow: hidden; |
| 315 | |
| 316 | &:hover { |
| 317 | border-color: #2271b1; |
| 318 | border-width: 2px; |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | .goalProgress { |
| 323 | width: 95%; |
| 324 | height: 0.5rem; |
| 325 | position: relative; |
| 326 | background: rgba(238, 238, 238); |
| 327 | border-radius: 1.5625rem; |
| 328 | overflow: hidden; |
| 329 | margin: 0.3125rem 0 0.125rem; |
| 330 | |
| 331 | &--achieved { |
| 332 | position: absolute; |
| 333 | display: flex; |
| 334 | font-size: 0.8rem; |
| 335 | padding-block: 6px; |
| 336 | } |
| 337 | |
| 338 | & > span { |
| 339 | display: block; |
| 340 | height: 100%; |
| 341 | border-radius: 1.25rem 0.5rem 0.5rem 1.25rem; |
| 342 | background-color: rgba(43, 194, 83); |
| 343 | position: relative; |
| 344 | overflow: hidden; |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | .subscriptions .date { |
| 349 | font-size: safe-rem(0.8); |
| 350 | font-weight: 600; |
| 351 | white-space: nowrap; |
| 352 | } |
| 353 | |
| 354 | .amount { |
| 355 | font-size: safe-rem(1.125); |
| 356 | font-weight: 700; |
| 357 | color: #69b868; |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | .idBadge { |
| 362 | display: inline-flex; |
| 363 | flex-shrink: 0; |
| 364 | flex-grow: 0; |
| 365 | align-items: center; |
| 366 | background-color: #f3f2ec; |
| 367 | border: safe-rem(0.0625) solid #e0dfd9; |
| 368 | border-radius: 9999px; |
| 369 | color: #5f5f5f; |
| 370 | padding-block: 0.1em; |
| 371 | padding-inline: 0.5em; |
| 372 | text-align: center; |
| 373 | width: -webkit-fit-content; |
| 374 | width: -moz-fit-content; |
| 375 | width: fit-content; |
| 376 | } |
| 377 | |
| 378 | .idBadge::before { |
| 379 | content: '#'; |
| 380 | font-size: 0.615em; |
| 381 | padding-inline-end: 0.25em; |
| 382 | } |
| 383 |