| 1 |
.givewp-fields-checkbox { |
| 2 |
&__description { |
| 3 |
margin-left: calc(1.25em + 0.375em); |
| 4 |
} |
| 5 |
|
| 6 |
&-anonymous { |
| 7 |
.givewp-fields__description{ |
| 8 |
margin-left: 1.78rem; |
| 9 |
} |
| 10 |
} |
| 11 |
} |
| 12 |
|
| 13 |
.givewp-fields-amount { |
| 14 |
|
| 15 |
} |
| 16 |
|
| 17 |
.givewp-fields { |
| 18 |
display: flex; |
| 19 |
flex-direction: column; |
| 20 |
gap: var(--givewp-spacing-1); |
| 21 |
width: 100%; |
| 22 |
|
| 23 |
legend { |
| 24 |
font-size: var(--givewp-font-size-paragraph-lg); |
| 25 |
font-weight: 500; |
| 26 |
line-height: 1.5; |
| 27 |
color: var(--givewp-grey-700); |
| 28 |
} |
| 29 |
|
| 30 |
label { |
| 31 |
display: flex; |
| 32 |
flex-direction: column; |
| 33 |
gap: var(--givewp-spacing-1); |
| 34 |
font-size: var(--givewp-font-size-paragraph-lg); |
| 35 |
font-weight: 500; |
| 36 |
line-height: 1.5; |
| 37 |
color: var(--givewp-grey-700); |
| 38 |
|
| 39 |
&:has(> input[type="checkbox"]) { |
| 40 |
flex-direction: row; |
| 41 |
gap: var(--givewp-spacing-2); |
| 42 |
align-items: center; |
| 43 |
} |
| 44 |
} |
| 45 |
|
| 46 |
&__description { |
| 47 |
margin: 0; |
| 48 |
color: var(--givewp-grey-700); |
| 49 |
line-height: 1.43; |
| 50 |
font-size: 0.875rem; |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
.givewp-field-required { |
| 55 |
color: var(--givewp-red-500); |
| 56 |
} |
| 57 |
|
| 58 |
.givewp-field-error-message { |
| 59 |
margin-top: var(--givewp-spacing-1); |
| 60 |
|
| 61 |
> * { |
| 62 |
font-size: 0.875rem; |
| 63 |
color: var(--givewp-red-500); |
| 64 |
font-weight: normal; |
| 65 |
margin: 0; |
| 66 |
} |
| 67 |
} |
| 68 |
|
| 69 |
.givewp-fields-consent { |
| 70 |
display: flex; |
| 71 |
flex-direction: column; |
| 72 |
gap: var(--givewp-spacing-2); |
| 73 |
|
| 74 |
&__container { |
| 75 |
display: flex; |
| 76 |
flex-direction: column; |
| 77 |
gap: var(--givewp-spacing-4); |
| 78 |
line-height: 150%; |
| 79 |
max-height: 17.5rem; |
| 80 |
min-height: 6.5rem; |
| 81 |
overflow-y: auto; |
| 82 |
border: 1px solid var(--givewp-grey-200); |
| 83 |
border-radius: var(--givewp-rounded-4); |
| 84 |
padding: var(--givewp-spacing-2) var(--givewp-spacing-4); |
| 85 |
background: var(--givewp-shades-white); |
| 86 |
|
| 87 |
> * { |
| 88 |
margin: 0; |
| 89 |
} |
| 90 |
} |
| 91 |
} |
| 92 |
|
| 93 |
.givewp-fields-radio, |
| 94 |
.givewp-fields-checkbox { |
| 95 |
&__options { |
| 96 |
display: flex; |
| 97 |
flex-direction: column; |
| 98 |
gap: var(--givewp-spacing-2); |
| 99 |
} |
| 100 |
|
| 101 |
&__option-container { |
| 102 |
display: flex; |
| 103 |
align-items: flex-end; |
| 104 |
gap: var(--givewp-spacing-2); |
| 105 |
|
| 106 |
label { |
| 107 |
font-weight: 400; |
| 108 |
} |
| 109 |
} |
| 110 |
} |
| 111 |
|
| 112 |
input[type="checkbox"]="checkbox""], input[type="radio"]="radio""] { |
| 113 |
appearance: none; |
| 114 |
background-color: transparent; |
| 115 |
margin: 0; |
| 116 |
color: var(--givewp-primary-color); |
| 117 |
width: 1.25rem; |
| 118 |
height: 1.25rem; |
| 119 |
border: solid 1px var(--givewp-grey-400); |
| 120 |
font-size: inherit; |
| 121 |
vertical-align: middle; |
| 122 |
cursor: pointer; |
| 123 |
flex-shrink: 0; |
| 124 |
|
| 125 |
&:checked::before { |
| 126 |
transform: scale(1); |
| 127 |
} |
| 128 |
|
| 129 |
&:focus { |
| 130 |
border-color: var(--givewp-primary-color); |
| 131 |
box-shadow: 0 0 0 var(--outline-width) var(--form-element-focus-color); |
| 132 |
} |
| 133 |
|
| 134 |
&[aria-invalid="false"]="false""] { |
| 135 |
--border-color: var(--form-element-valid-border-color); |
| 136 |
} |
| 137 |
|
| 138 |
&[aria-invalid="true"]="true""] { |
| 139 |
--border-color: var(--form-element-invalid-border-color); |
| 140 |
} |
| 141 |
} |
| 142 |
|
| 143 |
select { |
| 144 |
&:focus { |
| 145 |
box-shadow: 0 0 0 var(--outline-width) var(--form-element-focus-color); |
| 146 |
} |
| 147 |
} |
| 148 |
|
| 149 |
input[type="radio"]="radio""] { |
| 150 |
border-radius: 50%; |
| 151 |
transform: translateY(-0.075em); |
| 152 |
|
| 153 |
display: grid; |
| 154 |
place-content: center; |
| 155 |
|
| 156 |
&::before { |
| 157 |
content: ""; |
| 158 |
width: 0.75rem; |
| 159 |
height: 0.75rem; |
| 160 |
border-radius: 50%; |
| 161 |
transform: scale(0); |
| 162 |
transition: 120ms transform ease-in-out; |
| 163 |
box-shadow: inset 1em 1em var(--givewp-primary-color); |
| 164 |
vertical-align: middle; |
| 165 |
cursor: pointer; |
| 166 |
} |
| 167 |
} |
| 168 |
|
| 169 |
input[type="checkbox"]="checkbox""] { |
| 170 |
&:checked, |
| 171 |
&:checked:active, |
| 172 |
&:checked:focus { |
| 173 |
background-color: var(--givewp-primary-color); |
| 174 |
background-image: var(--icon-checkbox); |
| 175 |
background-position: center; |
| 176 |
background-size: 0.75em auto; |
| 177 |
background-repeat: no-repeat; |
| 178 |
} |
| 179 |
|
| 180 |
&:indeterminate { |
| 181 |
--background-color: var(--primary); |
| 182 |
--border-color: var(--primary); |
| 183 |
background-image: var(--icon-minus); |
| 184 |
background-position: center; |
| 185 |
background-size: 0.75em auto; |
| 186 |
background-repeat: no-repeat; |
| 187 |
} |
| 188 |
} |
| 189 |
|
| 190 |
input[type="file"]="file""] { |
| 191 |
border: 0.078rem solid transparent; |
| 192 |
border-radius: 0.25rem; |
| 193 |
font-size: 0.875rem; |
| 194 |
height: auto; |
| 195 |
|
| 196 |
&::file-selector-button { |
| 197 |
background-color: var(--givewp-primary-color); |
| 198 |
border-color: var(--givewp-primary-color); |
| 199 |
font-size: 0.875rem; |
| 200 |
} |
| 201 |
|
| 202 |
&[aria-invalid="true"]="true""], |
| 203 |
&:invalid { |
| 204 |
border-color: var(--form-element-invalid-border-color); |
| 205 |
} |
| 206 |
} |
| 207 |
|