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