| 1 |
:global { |
| 2 |
|
| 3 |
:root { |
| 4 |
--give-primary-color: #86b785; |
| 5 |
} |
| 6 |
|
| 7 |
.post-type-give_forms #wpbody { |
| 8 |
-webkit-font-smoothing: antialiased; |
| 9 |
box-sizing: border-box; |
| 10 |
|
| 11 |
& > a { |
| 12 |
text-decoration: underline; |
| 13 |
} |
| 14 |
} |
| 15 |
|
| 16 |
.post-type-give_forms #wpbody-content { |
| 17 |
box-sizing: border-box; |
| 18 |
} |
| 19 |
|
| 20 |
.post-type-give_forms #wpbody::after { |
| 21 |
all: revert; |
| 22 |
} |
| 23 |
|
| 24 |
.give-visually-hidden { |
| 25 |
position: absolute; |
| 26 |
width: 1px; |
| 27 |
height: 1px; |
| 28 |
padding: 0; |
| 29 |
margin: -1px; |
| 30 |
overflow: hidden; |
| 31 |
clip: rect(0, 0, 0, 0); |
| 32 |
white-space: nowrap; |
| 33 |
border-width: 0; |
| 34 |
} |
| 35 |
|
| 36 |
#wpcontent { |
| 37 |
padding: 0; |
| 38 |
} |
| 39 |
} |
| 40 |
|
| 41 |
.page { |
| 42 |
background-color: var(--givewp-neutral-25); |
| 43 |
box-sizing: border-box; |
| 44 |
color: var(--givewp-neutral-900); |
| 45 |
display: flex; |
| 46 |
flex-direction: column; |
| 47 |
font-family: Inter, system-ui, sans-serif; |
| 48 |
font-size: 1rem; |
| 49 |
gap: var(--givewp-spacing-4); |
| 50 |
|
| 51 |
*, |
| 52 |
::before, |
| 53 |
::after { |
| 54 |
box-sizing: inherit; |
| 55 |
} |
| 56 |
} |
| 57 |
|
| 58 |
.pageHeader { |
| 59 |
align-items: center; |
| 60 |
background-color: var(--givewp-shades-white); |
| 61 |
border-bottom: 1px solid var(--givewp-neutral-100); |
| 62 |
display: flex; |
| 63 |
flex-wrap: wrap; |
| 64 |
gap: var(--givewp-spacing-4); |
| 65 |
justify-content: space-between; |
| 66 |
padding: var(--givewp-spacing-7) var(--givewp-spacing-6); |
| 67 |
position: sticky; |
| 68 |
top: 2rem; |
| 69 |
z-index: 1000; |
| 70 |
|
| 71 |
& > * { |
| 72 |
flex-shrink: 0; |
| 73 |
} |
| 74 |
|
| 75 |
+ :global(.wp-header-end) + :global(.give-notice) { |
| 76 |
margin: 0 var(--givewp-spacing-6); |
| 77 |
} |
| 78 |
|
| 79 |
.testModeBadge { |
| 80 |
align-items: center; |
| 81 |
background: var(--givewp-orange-400); |
| 82 |
border-radius: var(--givewp-rounded-full); |
| 83 |
border: 1px solid var(--statusBadgeBorderColor); |
| 84 |
color: var(--givewp-shades-white); |
| 85 |
display: flex; |
| 86 |
font-size: 0.75rem; |
| 87 |
font-weight: 600; |
| 88 |
gap: var(--givewp-spacing-1); |
| 89 |
justify-content: center; |
| 90 |
padding: var(--givewp-spacing-1) var(--givewp-spacing-3); |
| 91 |
text-align: center; |
| 92 |
text-transform: uppercase; |
| 93 |
} |
| 94 |
} |
| 95 |
|
| 96 |
.pageHeader, |
| 97 |
.pageContent { |
| 98 |
.primaryActionButton, |
| 99 |
.secondaryActionButton { |
| 100 |
display: flex; |
| 101 |
align-items: center; |
| 102 |
border-radius: var(--givewp-rounded-4); |
| 103 |
font-size: 0.875rem; |
| 104 |
font-weight: 500; |
| 105 |
line-height: 1.43; |
| 106 |
text-align: center; |
| 107 |
padding: var(--givewp-spacing-2) var(--givewp-spacing-4); |
| 108 |
|
| 109 |
svg { |
| 110 |
margin: 3px 0 0 8px !important; |
| 111 |
} |
| 112 |
} |
| 113 |
|
| 114 |
.secondaryActionButton { |
| 115 |
color: var(--givewp-neutral-900); |
| 116 |
background-color: var(--givewp-neutral-100); |
| 117 |
border-color: var(--givewp-neutral-100); |
| 118 |
|
| 119 |
&:hover { |
| 120 |
background-color: var(--givewp-neutral-200); |
| 121 |
border-color: var(--givewp-neutral-200); |
| 122 |
color: var(--givewp-neutral-900); |
| 123 |
} |
| 124 |
} |
| 125 |
} |
| 126 |
|
| 127 |
.searchContainer { |
| 128 |
display: flex; |
| 129 |
gap: var(--givewp-spacing-2); |
| 130 |
} |
| 131 |
|
| 132 |
.filtersRow { |
| 133 |
align-items: center; |
| 134 |
background-color: var(--givewp-neutral-50); |
| 135 |
display: flex; |
| 136 |
height: 3.25rem; |
| 137 |
justify-content: space-between; |
| 138 |
margin-inline: var(--givewp-spacing-6); |
| 139 |
padding: var(--givewp-spacing-2) { |
| 140 |
left: var(--givewp-spacing-6); |
| 141 |
} |
| 142 |
} |
| 143 |
|
| 144 |
.flexRow { |
| 145 |
display: flex; |
| 146 |
flex-direction: row; |
| 147 |
align-items: center; |
| 148 |
gap: var(--givewp-spacing-2); |
| 149 |
flex-wrap: wrap; |
| 150 |
} |
| 151 |
|
| 152 |
.flexRow:not(:first-child) { |
| 153 |
flex: 1; |
| 154 |
justify-content: flex-end; |
| 155 |
} |
| 156 |
|
| 157 |
ul[role='document']='document'] + .flexRow, |
| 158 |
ul[role='document']='document'] + .flexRow + .flexRow { |
| 159 |
flex-direction: column; |
| 160 |
justify-content: flex-start; |
| 161 |
align-items: flex-start; |
| 162 |
gap: var(--givewp-spacing-2); |
| 163 |
margin-bottom: var(--givewp-spacing-4); |
| 164 |
|
| 165 |
select { |
| 166 |
min-width: 100%; |
| 167 |
height: 48px; |
| 168 |
padding: 0 var(--givewp-spacing-4); |
| 169 |
font-size: 1rem; |
| 170 |
} |
| 171 |
} |
| 172 |
|
| 173 |
ul[role='document']='document'] + .flexRow { |
| 174 |
margin: var(--givewp-spacing-6) 0; |
| 175 |
} |
| 176 |
|
| 177 |
.justifyContentEnd { |
| 178 |
flex: 1; |
| 179 |
justify-content: flex-end; |
| 180 |
} |
| 181 |
|
| 182 |
.pageTitle { |
| 183 |
color: var(--givewp-neutral-900); |
| 184 |
font-size: 1.5rem; |
| 185 |
font-weight: 700; |
| 186 |
line-height: 1.5; |
| 187 |
margin: 0; |
| 188 |
} |
| 189 |
|
| 190 |
.pageContent { |
| 191 |
background-color: var(--givewp-shades-white); |
| 192 |
display: flex; |
| 193 |
flex-direction: column; |
| 194 |
gap: var(--givewp-spacing-2); |
| 195 |
margin-inline: var(--givewp-spacing-6); |
| 196 |
padding: var(--givewp-spacing-6); |
| 197 |
} |
| 198 |
|
| 199 |
.pageActions { |
| 200 |
align-items: center; |
| 201 |
column-gap: 2rem; |
| 202 |
display: flex; |
| 203 |
flex-wrap: wrap; |
| 204 |
justify-content: space-between; |
| 205 |
width: 100%; |
| 206 |
|
| 207 |
& > * { |
| 208 |
flex-shrink: 0; |
| 209 |
} |
| 210 |
} |
| 211 |
|
| 212 |
.alignEnd { |
| 213 |
justify-content: flex-end; |
| 214 |
} |
| 215 |
|
| 216 |
.button:is(:global(.button)) { |
| 217 |
border-radius: 0.125rem; |
| 218 |
font-size: 0.875rem; |
| 219 |
font-weight: 600; |
| 220 |
line-height: 1.25rem; |
| 221 |
padding: 0.5rem 1rem; |
| 222 |
} |
| 223 |
|
| 224 |
.buttonSecondary:is(:global(.button)) { |
| 225 |
background-color: #fff; |
| 226 |
|
| 227 |
&:hover { |
| 228 |
background-color: #f6f7f7; |
| 229 |
} |
| 230 |
} |
| 231 |
|
| 232 |
.addCampaignFormButton { |
| 233 |
$depth: 0px 1px 0px rgba(0, 0, 0, 0.25); |
| 234 |
|
| 235 |
background-color: var(--givewp-neutral-100); |
| 236 |
border-radius: 0.25rem; |
| 237 |
border: none; |
| 238 |
color: var(--givewp-neutral-900); |
| 239 |
font-family: 'Inter'; |
| 240 |
font-size: 0.875rem; |
| 241 |
font-weight: 500; |
| 242 |
display: flex; |
| 243 |
align-items: center; |
| 244 |
block-size: 2.5rem; |
| 245 |
padding: 0.5rem 1rem; |
| 246 |
transition-property: filter, color, outline; |
| 247 |
transition-duration: 180ms; |
| 248 |
transition-timing-function: ease-in; |
| 249 |
cursor: pointer; |
| 250 |
width: fit-content; |
| 251 |
margin-bottom: 0.5rem; |
| 252 |
|
| 253 |
&:is(a) { |
| 254 |
text-decoration: none; |
| 255 |
} |
| 256 |
|
| 257 |
&:is(:hover, :active, :focus) { |
| 258 |
background-color: var(--givewp-neutral-200); |
| 259 |
color: var(--givewp-neutral-900); |
| 260 |
} |
| 261 |
|
| 262 |
&:active { |
| 263 |
filter: contrast(90%); |
| 264 |
} |
| 265 |
|
| 266 |
&:focus { |
| 267 |
box-shadow: $depth; |
| 268 |
outline: 0.125rem solid #2271B1; |
| 269 |
outline-offset: 0.25em; |
| 270 |
} |
| 271 |
} |
| 272 |
|
| 273 |
.addFormButton { |
| 274 |
$depth: 0px 1px 0px rgba(0, 0, 0, 0.25); |
| 275 |
|
| 276 |
background-color: #f7f7f7; |
| 277 |
border: 1px solid #ddd; |
| 278 |
border-radius: 0.1875rem; |
| 279 |
box-shadow: $depth; |
| 280 |
color: #888; |
| 281 |
font-family: inherit; |
| 282 |
font-size: 0.875rem; |
| 283 |
font-weight: 500; |
| 284 |
display: flex; |
| 285 |
align-items: center; |
| 286 |
block-size: 2.5rem; |
| 287 |
padding-inline: 1rem; |
| 288 |
transition-property: filter, color, outline; |
| 289 |
transition-duration: 180ms; |
| 290 |
transition-timing-function: ease-in; |
| 291 |
cursor: pointer; |
| 292 |
|
| 293 |
&:is(a) { |
| 294 |
text-decoration: none; |
| 295 |
} |
| 296 |
|
| 297 |
&:is(:hover, :active, :focus) { |
| 298 |
color: #777; |
| 299 |
} |
| 300 |
|
| 301 |
&:hover { |
| 302 |
filter: contrast(110%); |
| 303 |
} |
| 304 |
|
| 305 |
&:active { |
| 306 |
filter: contrast(90%); |
| 307 |
} |
| 308 |
|
| 309 |
&:focus { |
| 310 |
box-shadow: $depth; |
| 311 |
outline: 0.125rem solid var(--give-primary-color); |
| 312 |
outline-offset: 0.25em; |
| 313 |
} |
| 314 |
} |
| 315 |
|
| 316 |
.tryNewFormBuilderBtnContainer { |
| 317 |
position: absolute; |
| 318 |
left: 50%; |
| 319 |
transform: translate(-50%, 0); |
| 320 |
} |
| 321 |
|
| 322 |
.defaultFormPill { |
| 323 |
position: absolute; |
| 324 |
bottom: -.75rem; |
| 325 |
left: 0; |
| 326 |
background: var(--givewp-neutral-200); |
| 327 |
width: fit-content; |
| 328 |
display: flex; |
| 329 |
flex-direction: row; |
| 330 |
justify-content: center; |
| 331 |
align-items: center; |
| 332 |
gap: 8px; |
| 333 |
margin: 1px 0 26px 16.7px; |
| 334 |
padding: 2px 10px; |
| 335 |
border-radius: 12px; |
| 336 |
transition: opacity 150ms ease-in-out, visibility 150ms ease-in-out; |
| 337 |
font-size: 0.75rem; |
| 338 |
} |
| 339 |
|
| 340 |
.migratedForm { |
| 341 |
display: flex; |
| 342 |
align-items: center; |
| 343 |
|
| 344 |
.tooltipContainer { |
| 345 |
position: absolute; |
| 346 |
left: -.55rem; |
| 347 |
display: flex; |
| 348 |
align-items: center; |
| 349 |
z-index: 2; |
| 350 |
|
| 351 |
svg { |
| 352 |
fill: #3A21D9; |
| 353 |
} |
| 354 |
} |
| 355 |
|
| 356 |
.tooltip { |
| 357 |
display: none; |
| 358 |
width: 230px; |
| 359 |
bottom: 25px; |
| 360 |
left: -10px; |
| 361 |
} |
| 362 |
|
| 363 |
.tooltip::after { |
| 364 |
top: 100%; |
| 365 |
left: 14px; |
| 366 |
} |
| 367 |
|
| 368 |
.tooltipContainer:hover .tooltip { |
| 369 |
display: unset; |
| 370 |
} |
| 371 |
} |
| 372 |
|
| 373 |
.upgradedForm { |
| 374 |
width: max(7.5rem, 120px); |
| 375 |
position: relative; |
| 376 |
|
| 377 |
.tooltip { |
| 378 |
width: 18rem; |
| 379 |
bottom: calc(100% + 10px); |
| 380 |
right: 0; |
| 381 |
} |
| 382 |
|
| 383 |
.tooltip::after { |
| 384 |
top: 100%; |
| 385 |
right: 55px; |
| 386 |
} |
| 387 |
|
| 388 |
.tooltipContainer { |
| 389 |
position: relative; |
| 390 |
} |
| 391 |
} |
| 392 |
|
| 393 |
.migratedForm, |
| 394 |
.upgradedForm { |
| 395 |
.tooltip { |
| 396 |
position: absolute; |
| 397 |
background-color: #19661c; |
| 398 |
color: #fff; |
| 399 |
padding: 1rem; |
| 400 |
border-radius: 4px; |
| 401 |
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05); |
| 402 |
font-size: 0.75rem; |
| 403 |
font-weight: 500; |
| 404 |
} |
| 405 |
|
| 406 |
.tooltip::after { |
| 407 |
content: " "; |
| 408 |
position: absolute; |
| 409 |
border-width: 5px; |
| 410 |
border-style: solid; |
| 411 |
border-color: #19661c transparent transparent transparent; |
| 412 |
} |
| 413 |
|
| 414 |
.link { |
| 415 |
cursor: pointer; |
| 416 |
margin-top: 2rem; |
| 417 |
margin-bottom: -0.4rem; |
| 418 |
font-weight: bold; |
| 419 |
float: right; |
| 420 |
} |
| 421 |
} |
| 422 |
|
| 423 |
.filtersContainer { |
| 424 |
display: flex; |
| 425 |
flex-wrap: wrap; |
| 426 |
gap: 1rem 1.5rem; |
| 427 |
align-items: center; |
| 428 |
justify-content: flex-start; |
| 429 |
} |
| 430 |
|
| 431 |
.container, |
| 432 |
.overlay { |
| 433 |
position: fixed; |
| 434 |
top: 0; |
| 435 |
right: 0; |
| 436 |
bottom: 0; |
| 437 |
left: 0; |
| 438 |
} |
| 439 |
|
| 440 |
.container { |
| 441 |
z-index: 9999; |
| 442 |
display: flex; |
| 443 |
opacity: 1; |
| 444 |
animation: appear 180ms ease-in 0s 1; |
| 445 |
font-family: 'Open Sans', sans-serif; |
| 446 |
|
| 447 |
&[aria-hidden='true']='true'] { |
| 448 |
display: none; |
| 449 |
opacity: 0; |
| 450 |
} |
| 451 |
} |
| 452 |
|
| 453 |
@keyframes appear { |
| 454 |
0% { |
| 455 |
opacity: 0; |
| 456 |
} |
| 457 |
100% { |
| 458 |
opacity: 1; |
| 459 |
} |
| 460 |
} |
| 461 |
|
| 462 |
.overlay { |
| 463 |
-webkit-backdrop-filter: blur(10px); |
| 464 |
backdrop-filter: blur(10px); |
| 465 |
background-color: rgba(0, 0, 0, 0.25); |
| 466 |
} |
| 467 |
|
| 468 |
#modalTitle { |
| 469 |
display: flex; |
| 470 |
align-items: center; |
| 471 |
gap: 10px; |
| 472 |
font-size: 1.25rem; |
| 473 |
font-weight: 600; |
| 474 |
line-height: 1.6; |
| 475 |
color: var(--givewp-neutral-900); |
| 476 |
margin: 0; |
| 477 |
padding: var(--givewp-spacing-4) var(--givewp-spacing-6); |
| 478 |
border-top-left-radius: var(--givewp-rounded-8); |
| 479 |
border-top-right-radius: var(--givewp-rounded-8); |
| 480 |
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); |
| 481 |
} |
| 482 |
|
| 483 |
.dialog { |
| 484 |
margin: auto; |
| 485 |
z-index: 2; |
| 486 |
position: relative; |
| 487 |
background: var(--givewp-shades-white); |
| 488 |
border-radius: var(--givewp-rounded-8); |
| 489 |
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05); |
| 490 |
width: 35rem; |
| 491 |
|
| 492 |
|
| 493 |
& ul { |
| 494 |
display: flex; |
| 495 |
flex-direction: column; |
| 496 |
gap: var(--givewp-spacing-2); |
| 497 |
max-height: 40vh; |
| 498 |
margin: 0; |
| 499 |
overflow-y: auto; |
| 500 |
overscroll-behavior-y: contain; |
| 501 |
} |
| 502 |
|
| 503 |
& li { |
| 504 |
font-weight: 500; |
| 505 |
display: flex; |
| 506 |
align-items: center; |
| 507 |
gap: var(--givewp-spacing-2); |
| 508 |
|
| 509 |
span { |
| 510 |
display: flex; |
| 511 |
gap: var(--givewp-spacing-2); |
| 512 |
} |
| 513 |
} |
| 514 |
|
| 515 |
&.danger { |
| 516 |
#confirm { |
| 517 |
background-color: var(--givewp-red-500); |
| 518 |
border: 1px solid var(--givewp-red-500); |
| 519 |
|
| 520 |
&:hover { |
| 521 |
background-color: var(--givewp-red-400); |
| 522 |
} |
| 523 |
} |
| 524 |
} |
| 525 |
} |
| 526 |
|
| 527 |
.modalContent { |
| 528 |
padding: var(--givewp-spacing-6); |
| 529 |
border-radius: 0 0 6px 6px; |
| 530 |
|
| 531 |
p { |
| 532 |
margin: 0 0 var(--givewp-spacing-3); |
| 533 |
font-size: 1rem; |
| 534 |
} |
| 535 |
} |
| 536 |
|
| 537 |
.modalContent > * { |
| 538 |
font-size: 1rem; |
| 539 |
font-weight: 500; |
| 540 |
font-stretch: normal; |
| 541 |
font-style: normal; |
| 542 |
letter-spacing: normal; |
| 543 |
text-align: left; |
| 544 |
color: var(--givewp-neutral-700); |
| 545 |
} |
| 546 |
|
| 547 |
.gutter { |
| 548 |
display: flex; |
| 549 |
flex-direction: row; |
| 550 |
justify-content: space-evenly; |
| 551 |
gap: var(--givewp-spacing-6); |
| 552 |
width: 100%; |
| 553 |
border-bottom-left-radius: var(--givewp-rounded-8); |
| 554 |
border-bottom-right-radius: var(--givewp-rounded-8); |
| 555 |
box-sizing: border-box !important; |
| 556 |
padding: 0 var(--givewp-spacing-6) var(--givewp-spacing-6); |
| 557 |
overflow: hidden; |
| 558 |
} |
| 559 |
|
| 560 |
#cancel, |
| 561 |
#confirm { |
| 562 |
flex-grow: 1; |
| 563 |
border-radius: var(--givewp-rounded-8); |
| 564 |
padding: var(--givewp-spacing-4) var(--givewp-spacing-8); |
| 565 |
font-size: 1rem; |
| 566 |
font-weight: 500; |
| 567 |
font-stretch: normal; |
| 568 |
font-style: normal; |
| 569 |
line-height: 1.5; |
| 570 |
letter-spacing: normal; |
| 571 |
text-align: center; |
| 572 |
transition: all 0.15s; |
| 573 |
cursor: pointer; |
| 574 |
|
| 575 |
&:active { |
| 576 |
border-color: rgba(170 170 170); |
| 577 |
box-shadow: inset 0px 0px 3px rgba(170 170 170 / 0.8); |
| 578 |
} |
| 579 |
} |
| 580 |
|
| 581 |
#cancel { |
| 582 |
background-color: inherit; |
| 583 |
border: solid 1px var(--givewp-neutral-300); |
| 584 |
color: var(--givewp-neutral-900); |
| 585 |
|
| 586 |
|
| 587 |
&:hover { |
| 588 |
background-color: var(--givewp-neutral-50); |
| 589 |
} |
| 590 |
} |
| 591 |
|
| 592 |
#confirm { |
| 593 |
background: #2271b1; |
| 594 |
border: 1px solid #2271b1; |
| 595 |
color: var(--givewp-shades-white); |
| 596 |
|
| 597 |
&:hover { |
| 598 |
background-color: #135e96; |
| 599 |
} |
| 600 |
} |
| 601 |
|
| 602 |
|
| 603 |
@media (prefers-reduced-motion: reduce) { |
| 604 |
.container { |
| 605 |
animation: none; |
| 606 |
} |
| 607 |
} |
| 608 |
|