_button.scss
4 years ago
_checkbox.scss
4 years ago
_currencyswitcher.scss
4 years ago
_donate-now.scss
4 years ago
_donation-amount.scss
4 years ago
_donation-summary.scss
4 years ago
_errors-notices.scss
3 years ago
_ffm.scss
4 years ago
_fn.scss
4 years ago
_funds.scss
4 years ago
_grid.scss
4 years ago
_header.scss
4 years ago
_icons.scss
4 years ago
_label.scss
4 years ago
_legacy-consumer.scss
4 years ago
_modal.scss
3 years ago
_page.scss
4 years ago
_payment-details.scss
3 years ago
_personal-info.scss
3 years ago
_radio.scss
4 years ago
_receipt.scss
4 years ago
_reset.scss
4 years ago
_section.scss
4 years ago
_stripe-checkout-modal.scss
4 years ago
_terms.scss
4 years ago
_text-input.scss
4 years ago
_tooltip.scss
4 years ago
_tributes.scss
4 years ago
_variables.scss
4 years ago
form.scss
1 year ago
variables.php
4 years ago
_section.scss
62 lines
| 1 | @use 'fn'; |
| 2 | |
| 3 | .give-form-section { |
| 4 | display: grid; |
| 5 | grid-auto-flow: row; |
| 6 | grid-template-columns: repeat(12, 1fr); |
| 7 | row-gap: 1rem; |
| 8 | |
| 9 | padding-block: fn.scaleBetween(1.75rem, 3.375rem); |
| 10 | padding-inline: fn.scaleBetween(1rem, 4.375rem); |
| 11 | |
| 12 | & > * { |
| 13 | grid-column: span 12; |
| 14 | } |
| 15 | |
| 16 | > .give-ffm-form-row-half, |
| 17 | > .give-ffm-form-row-one-third, |
| 18 | > .give-ffm-form-row-two-third, |
| 19 | > .form-row-wide { |
| 20 | width: revert; |
| 21 | padding: revert; |
| 22 | float: revert; |
| 23 | } |
| 24 | |
| 25 | > .give-ffm-form-row-one-third { |
| 26 | grid-column: span 4; |
| 27 | } |
| 28 | |
| 29 | > .give-ffm-form-row-half { |
| 30 | grid-column: span 6; |
| 31 | } |
| 32 | |
| 33 | > .give-ffm-form-row-two-third { |
| 34 | grid-column: span 8; |
| 35 | } |
| 36 | |
| 37 | > .form-row-wide { |
| 38 | grid-column: span 12; |
| 39 | } |
| 40 | |
| 41 | .give-container-boxed & { |
| 42 | // :nth-of-type requires these be the an element. This works since we are |
| 43 | // using `<section>` with this class. |
| 44 | &:nth-of-type(odd) { |
| 45 | background-color: #fff; |
| 46 | } |
| 47 | &:nth-of-type(even) { |
| 48 | background-color: #f9f9f9; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | &:first-of-type { |
| 53 | border-start-start-radius: inherit; |
| 54 | border-start-end-radius: inherit; |
| 55 | } |
| 56 | |
| 57 | &:last-of-type { |
| 58 | border-end-start-radius: inherit; |
| 59 | border-end-end-radius: inherit; |
| 60 | } |
| 61 | } |
| 62 |