| 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 |
|