| 1 |
.dateField { |
| 2 |
:global { |
| 3 |
.react-datepicker-wrapper { |
| 4 |
width: 100%; |
| 5 |
} |
| 6 |
|
| 7 |
.react-datepicker-popper[data-placement^=bottom]^=bottom] { |
| 8 |
.react-datepicker__triangle { |
| 9 |
left: 50% !important; |
| 10 |
transform: translate(-50%, 0) !important; |
| 11 |
} |
| 12 |
} |
| 13 |
|
| 14 |
.react-datepicker__day { |
| 15 |
&--selected { |
| 16 |
|
| 17 |
&, |
| 18 |
&:hover { |
| 19 |
background-color: var(--givewp-primary-color); |
| 20 |
} |
| 21 |
} |
| 22 |
|
| 23 |
&--keyboard-selected { |
| 24 |
background-color: var(--givewp-grey-100); |
| 25 |
|
| 26 |
&:hover { |
| 27 |
background-color: var(--givewp-primary-color); |
| 28 |
} |
| 29 |
} |
| 30 |
} |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
.multiSelectField { |
| 35 |
&:hover { |
| 36 |
:global { |
| 37 |
.givewp-fields-multiSelect__option--is-focused { |
| 38 |
box-shadow: none; |
| 39 |
} |
| 40 |
} |
| 41 |
} |
| 42 |
|
| 43 |
:global { |
| 44 |
.givewp-fields-multiSelect { |
| 45 |
&__input { |
| 46 |
padding-bottom: 8px; |
| 47 |
margin-bottom: -8px; |
| 48 |
} |
| 49 |
|
| 50 |
&__control { |
| 51 |
border-color: rgb(102, 102, 102); |
| 52 |
box-shadow: none; |
| 53 |
|
| 54 |
&:hover { |
| 55 |
border-color: var(--givewp-primary-color); |
| 56 |
} |
| 57 |
|
| 58 |
&--is-focused { |
| 59 |
border-color: transparent; |
| 60 |
box-shadow: 0 0 0 var(--outline-width) var(--form-element-focus-color); |
| 61 |
} |
| 62 |
} |
| 63 |
|
| 64 |
&__multi-value { |
| 65 |
align-items: center; |
| 66 |
gap: var(--givewp-spacing-2); |
| 67 |
background: var(--givewp-grey-25); |
| 68 |
padding: var(--givewp-spacing-2); |
| 69 |
color: var(--givewp-grey-900); |
| 70 |
|
| 71 |
&__label { |
| 72 |
font-size: 0.875rem; |
| 73 |
line-height: 1rem; |
| 74 |
font-weight: 500; |
| 75 |
padding: 0; |
| 76 |
} |
| 77 |
|
| 78 |
&__remove { |
| 79 |
background: none; |
| 80 |
border: 0; |
| 81 |
color: currentColor; |
| 82 |
padding: 0; |
| 83 |
|
| 84 |
svg { |
| 85 |
width: 1rem; |
| 86 |
height: 1rem; |
| 87 |
} |
| 88 |
} |
| 89 |
} |
| 90 |
|
| 91 |
&__indicator { |
| 92 |
color: rgb(102, 102, 102); |
| 93 |
|
| 94 |
&:hover { |
| 95 |
color: var(--givewp-primary-color); |
| 96 |
cursor: pointer; |
| 97 |
} |
| 98 |
} |
| 99 |
|
| 100 |
&__indicator-separator { |
| 101 |
background-color: rgb(102, 102, 102); |
| 102 |
} |
| 103 |
|
| 104 |
&__menu { |
| 105 |
margin-top: 0; |
| 106 |
} |
| 107 |
|
| 108 |
&__menu-list { |
| 109 |
padding: 0; |
| 110 |
} |
| 111 |
|
| 112 |
&__option { |
| 113 |
color: var(--givewp-grey-700); |
| 114 |
|
| 115 |
&--is-focused { |
| 116 |
background-color: var(--givewp-grey-25); |
| 117 |
box-shadow: inset 0 0 0 var(--outline-width) var(--form-element-focus-color); |
| 118 |
border-radius: 4px; |
| 119 |
cursor: pointer; |
| 120 |
} |
| 121 |
} |
| 122 |
} |
| 123 |
} |
| 124 |
} |
| 125 |
|
| 126 |
.authentication { |
| 127 |
&__login-notice { |
| 128 |
background-color: transparent; |
| 129 |
border: 0; |
| 130 |
color: var(--primary); |
| 131 |
font-size: 14px; |
| 132 |
font-weight: 500; |
| 133 |
margin: 0; |
| 134 |
padding: 0; |
| 135 |
width: auto; |
| 136 |
|
| 137 |
&:focus { |
| 138 |
border-color: transparent; |
| 139 |
box-shadow: 0 0 0 0.125rem var(--givewp-primary-color); |
| 140 |
} |
| 141 |
} |
| 142 |
|
| 143 |
&__login-form { |
| 144 |
display: flex; |
| 145 |
flex-direction: column; |
| 146 |
gap: 15px; |
| 147 |
|
| 148 |
&__fields-wrapper { |
| 149 |
display: flex; |
| 150 |
flex-direction: row; |
| 151 |
gap: 15px; |
| 152 |
} |
| 153 |
|
| 154 |
&__buttons-wrapper { |
| 155 |
display: flex; |
| 156 |
gap: 15px; |
| 157 |
justify-content: space-between; |
| 158 |
align-items: baseline; |
| 159 |
} |
| 160 |
|
| 161 |
&__login-button { |
| 162 |
border-radius: 5px; |
| 163 |
color: var(--givewp-grey-5); |
| 164 |
font-size: 1rem; |
| 165 |
font-weight: 600; |
| 166 |
line-height: 1.5; |
| 167 |
margin: 0; |
| 168 |
min-width: 154px; |
| 169 |
padding: var(--givewp-spacing-2) var(--givewp-spacing-6); |
| 170 |
width: auto; |
| 171 |
|
| 172 |
@supports (background-color: color-mix(in lab, var(--givewp-primary-color) 90%, black)) { |
| 173 |
&:hover { |
| 174 |
background-color: color-mix(in lab, var(--givewp-primary-color) 90%, black); |
| 175 |
} |
| 176 |
} |
| 177 |
|
| 178 |
&:focus { |
| 179 |
outline: thick double var(--givewp-primary-color); |
| 180 |
} |
| 181 |
} |
| 182 |
|
| 183 |
&__reset-wrapper { |
| 184 |
display: flex; |
| 185 |
gap: 5px; |
| 186 |
} |
| 187 |
|
| 188 |
&__reset-button { |
| 189 |
background: none; |
| 190 |
border: none; |
| 191 |
width: fit-content; |
| 192 |
color: var(--givewp-grey-500); |
| 193 |
cursor: pointer; |
| 194 |
font-size: 14px; |
| 195 |
line-height: 1.43; |
| 196 |
padding: 2px; |
| 197 |
|
| 198 |
span { |
| 199 |
color: var(--primary); |
| 200 |
font-weight: 500; |
| 201 |
} |
| 202 |
|
| 203 |
&:focus { |
| 204 |
border-color: transparent; |
| 205 |
box-shadow: 0 0 0 0.125rem var(--givewp-primary-color); |
| 206 |
} |
| 207 |
} |
| 208 |
} |
| 209 |
} |
| 210 |
|
| 211 |
.htmlField { |
| 212 |
a { |
| 213 |
text-decoration: underline; |
| 214 |
|
| 215 |
&:hover { |
| 216 |
text-decoration: none; |
| 217 |
} |
| 218 |
|
| 219 |
&:focus { |
| 220 |
border-radius: 2px; |
| 221 |
outline: 2px solid var(--givewp-primary-color); |
| 222 |
text-decoration: none; |
| 223 |
} |
| 224 |
} |
| 225 |
} |
| 226 |
|