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