| 1 |
.choices { |
| 2 |
position: relative; |
| 3 |
margin-bottom: 24px; |
| 4 |
} |
| 5 |
.choices ::-webkit-input-placeholder { |
| 6 |
color: #999999; |
| 7 |
} |
| 8 |
.choices ::-moz-placeholder { |
| 9 |
color: #999999; |
| 10 |
opacity: 1; |
| 11 |
} |
| 12 |
.choices ::placeholder { |
| 13 |
color: #999999; |
| 14 |
} |
| 15 |
.choices:focus { |
| 16 |
outline: none; |
| 17 |
} |
| 18 |
.choices:last-child { |
| 19 |
margin-bottom: 0; |
| 20 |
} |
| 21 |
.choices.is-disabled .choices__inner, |
| 22 |
.choices.is-disabled .choices__input { |
| 23 |
background-color: #bbbbbb; |
| 24 |
cursor: not-allowed; |
| 25 |
user-select: none; |
| 26 |
} |
| 27 |
.choices [hidden] { |
| 28 |
display: none !important; |
| 29 |
} |
| 30 |
.choices * { |
| 31 |
box-sizing: border-box; |
| 32 |
} |
| 33 |
.choices.is-open .choices__inner { |
| 34 |
border-radius: 4px 4px 0 0; |
| 35 |
} |
| 36 |
.choices.is-open.is-flipped .choices__inner { |
| 37 |
border-radius: 0 0 4px 4px; |
| 38 |
} |
| 39 |
|
| 40 |
.choices[data-type*=select-one] { |
| 41 |
cursor: pointer; |
| 42 |
} |
| 43 |
.choices[data-type*=select-one] input.choices__input { |
| 44 |
display: block; |
| 45 |
width: calc(100% - 20px) !important; |
| 46 |
margin: 10px !important; |
| 47 |
padding: 7px 12px !important; |
| 48 |
box-sizing: border-box !important; |
| 49 |
border: 1px solid #cccccc !important; |
| 50 |
border-radius: 4px !important; |
| 51 |
background-color: #fff; |
| 52 |
} |
| 53 |
.choices[data-type*=select-one] input.choices__input:focus { |
| 54 |
border: 1px solid #016aab !important; |
| 55 |
box-shadow: 0 0 0 1px #016aab !important; |
| 56 |
outline: none !important; |
| 57 |
} |
| 58 |
.choices[data-type*=select-one] .choices__button { |
| 59 |
background-image: url("../../images/cross-inverse.svg"); |
| 60 |
padding: 0; |
| 61 |
background-size: 8px; |
| 62 |
position: absolute; |
| 63 |
top: 50%; |
| 64 |
right: 0; |
| 65 |
margin-top: -10px; |
| 66 |
margin-right: 25px; |
| 67 |
height: 20px; |
| 68 |
width: 20px; |
| 69 |
border-radius: 10em; |
| 70 |
opacity: 0.5; |
| 71 |
} |
| 72 |
.choices[data-type*=select-one] .choices__button:hover, .choices[data-type*=select-one] .choices__button:focus { |
| 73 |
opacity: 1; |
| 74 |
} |
| 75 |
.choices[data-type*=select-one] .choices__button:focus { |
| 76 |
box-shadow: 0 0 0 2px #036aab; |
| 77 |
} |
| 78 |
.choices[data-type*=select-one] .choices__item[data-value=""] .choices__button { |
| 79 |
display: none; |
| 80 |
} |
| 81 |
.choices[data-type*=select-one]:after { |
| 82 |
content: ""; |
| 83 |
height: 0; |
| 84 |
width: 0; |
| 85 |
border-style: solid; |
| 86 |
border-color: currentColor transparent transparent transparent; |
| 87 |
border-width: 5px; |
| 88 |
position: absolute; |
| 89 |
right: 11.5px; |
| 90 |
top: 50%; |
| 91 |
margin-top: -2.5px; |
| 92 |
pointer-events: none; |
| 93 |
} |
| 94 |
.choices[data-type*=select-one].is-open:after { |
| 95 |
border-color: transparent transparent currentColor transparent; |
| 96 |
margin-top: -7.5px; |
| 97 |
} |
| 98 |
.choices[data-type*=select-one][dir=rtl]:after { |
| 99 |
left: 11.5px; |
| 100 |
right: auto; |
| 101 |
} |
| 102 |
.choices[data-type*=select-one][dir=rtl] .choices__button { |
| 103 |
right: auto; |
| 104 |
left: 0; |
| 105 |
margin-left: 25px; |
| 106 |
margin-right: 0; |
| 107 |
} |
| 108 |
|
| 109 |
.choices[data-type*=select-multiple] .choices__inner { |
| 110 |
padding-right: 24px; |
| 111 |
} |
| 112 |
.choices[data-type*=select-multiple] .choices__inner .choices__input { |
| 113 |
padding: 0 4px !important; |
| 114 |
} |
| 115 |
.choices[data-type*=select-multiple]:after { |
| 116 |
content: ""; |
| 117 |
height: 0; |
| 118 |
width: 0; |
| 119 |
border-style: solid; |
| 120 |
border-color: currentColor transparent transparent transparent; |
| 121 |
border-width: 5px; |
| 122 |
position: absolute; |
| 123 |
right: 11.5px; |
| 124 |
top: 50%; |
| 125 |
margin-top: -2.5px; |
| 126 |
pointer-events: none; |
| 127 |
} |
| 128 |
.choices[data-type*=select-multiple].is-open:after { |
| 129 |
border-color: transparent transparent currentColor transparent; |
| 130 |
margin-top: -7.5px; |
| 131 |
} |
| 132 |
|
| 133 |
.choices[data-type*=select-multiple] .choices__inner, |
| 134 |
.choices[data-type*=text] .choices__inner { |
| 135 |
cursor: text; |
| 136 |
} |
| 137 |
.choices[data-type*=select-multiple] .choices__button, |
| 138 |
.choices[data-type*=text] .choices__button { |
| 139 |
position: relative; |
| 140 |
display: inline-block; |
| 141 |
vertical-align: baseline; |
| 142 |
margin-top: 0; |
| 143 |
margin-bottom: 0; |
| 144 |
margin-left: 5px; |
| 145 |
padding: 0; |
| 146 |
background-color: transparent; |
| 147 |
background-image: url("../../images/cross.svg"); |
| 148 |
background-size: 12px; |
| 149 |
background-position: center center; |
| 150 |
background-repeat: no-repeat; |
| 151 |
width: 12px; |
| 152 |
height: 12px; |
| 153 |
line-height: 1; |
| 154 |
opacity: 0.75; |
| 155 |
border-radius: 0; |
| 156 |
} |
| 157 |
.choices[data-type*=select-multiple] .choices__button:hover, .choices[data-type*=select-multiple] .choices__button:focus, |
| 158 |
.choices[data-type*=text] .choices__button:hover, |
| 159 |
.choices[data-type*=text] .choices__button:focus { |
| 160 |
opacity: 1; |
| 161 |
} |
| 162 |
|
| 163 |
.choices__inner { |
| 164 |
display: flex; |
| 165 |
flex-wrap: wrap; |
| 166 |
align-items: center; |
| 167 |
width: 100%; |
| 168 |
background-color: #ffffff; |
| 169 |
padding: 4px 6px 0; |
| 170 |
border: 1px solid #cccccc; |
| 171 |
overflow: hidden; |
| 172 |
border-radius: 4px; |
| 173 |
} |
| 174 |
|
| 175 |
.choices__list { |
| 176 |
margin: 0; |
| 177 |
padding-left: 0; |
| 178 |
list-style: none; |
| 179 |
} |
| 180 |
|
| 181 |
.choices__list--single { |
| 182 |
display: inline-block; |
| 183 |
vertical-align: baseline; |
| 184 |
width: 100%; |
| 185 |
padding: 0 16px 4px 4px; |
| 186 |
font-size: 0.875em; |
| 187 |
} |
| 188 |
.choices__list--single .choices__item { |
| 189 |
width: 100%; |
| 190 |
overflow: hidden; |
| 191 |
text-overflow: ellipsis; |
| 192 |
padding-right: 20px; |
| 193 |
white-space: nowrap; |
| 194 |
} |
| 195 |
.choices__list--single .choices__item[data-value=""] { |
| 196 |
padding-right: 0; |
| 197 |
} |
| 198 |
|
| 199 |
.choices__list--multiple { |
| 200 |
display: flex; |
| 201 |
flex-wrap: wrap; |
| 202 |
align-items: center; |
| 203 |
} |
| 204 |
.choices__list--multiple .choices__item { |
| 205 |
display: inline-grid; |
| 206 |
align-items: center; |
| 207 |
border-radius: 2px; |
| 208 |
padding: 4px 7px; |
| 209 |
font-size: 0.75em; |
| 210 |
line-height: 1; |
| 211 |
font-weight: 400; |
| 212 |
margin-right: 4px; |
| 213 |
margin-top: 0; |
| 214 |
margin-bottom: 4px; |
| 215 |
background-color: #036aab; |
| 216 |
border: 1px solid #036aab; |
| 217 |
color: #ffffff; |
| 218 |
word-break: break-all; |
| 219 |
grid-template-columns: 1fr calc( 12px + 5px ); |
| 220 |
} |
| 221 |
.choices__list--multiple .choices__item.is-highlighted { |
| 222 |
background-color: #036aab; |
| 223 |
} |
| 224 |
|
| 225 |
.is-disabled .choices__list--multiple .choices__item { |
| 226 |
background-color: #bbbbbb; |
| 227 |
border: 1px solid #bbbbbb; |
| 228 |
} |
| 229 |
|
| 230 |
.choices__list--dropdown { |
| 231 |
display: none; |
| 232 |
z-index: 2; |
| 233 |
position: absolute; |
| 234 |
width: 100%; |
| 235 |
background-color: #ffffff; |
| 236 |
border: 1px solid #cccccc; |
| 237 |
top: 100%; |
| 238 |
margin-top: -1px; |
| 239 |
border-bottom-left-radius: 4px; |
| 240 |
border-bottom-right-radius: 4px; |
| 241 |
overflow: hidden; |
| 242 |
overflow-wrap: break-word; |
| 243 |
} |
| 244 |
.choices__list--dropdown.is-active { |
| 245 |
display: block; |
| 246 |
} |
| 247 |
.choices__list--dropdown .choices__list { |
| 248 |
position: relative; |
| 249 |
max-height: 300px; |
| 250 |
overflow: auto; |
| 251 |
-webkit-overflow-scrolling: touch; |
| 252 |
will-change: scroll-position; |
| 253 |
} |
| 254 |
.choices__list--dropdown .choices__item { |
| 255 |
position: relative; |
| 256 |
vertical-align: top; |
| 257 |
padding: 10px; |
| 258 |
font-size: 0.875em; |
| 259 |
} |
| 260 |
@media (min-width: 640px) { |
| 261 |
.choices__list--dropdown .choices__item--selectable { |
| 262 |
padding-right: 100px; |
| 263 |
} |
| 264 |
.choices__list--dropdown .choices__item--selectable:after { |
| 265 |
content: attr(data-select-text); |
| 266 |
font-size: 0.75em; |
| 267 |
line-height: 1; |
| 268 |
opacity: 0; |
| 269 |
position: absolute; |
| 270 |
right: 10px; |
| 271 |
top: 50%; |
| 272 |
transform: translateY(-50%); |
| 273 |
} |
| 274 |
} |
| 275 |
.choices__list--dropdown .choices__item--selectable.is-highlighted { |
| 276 |
background-color: #f2f2f2; |
| 277 |
} |
| 278 |
.choices__list--dropdown .choices__item--selectable.is-highlighted:after { |
| 279 |
opacity: 0.5; |
| 280 |
} |
| 281 |
.choices__list--dropdown .choices__placeholder { |
| 282 |
display: none; |
| 283 |
} |
| 284 |
|
| 285 |
.is-flipped .choices__list--dropdown { |
| 286 |
top: auto; |
| 287 |
bottom: 100%; |
| 288 |
margin-top: 0; |
| 289 |
margin-bottom: -1px; |
| 290 |
border-radius: 4px 4px 0 0; |
| 291 |
} |
| 292 |
|
| 293 |
.choices__item { |
| 294 |
cursor: default; |
| 295 |
} |
| 296 |
|
| 297 |
.choices__item--selectable { |
| 298 |
cursor: pointer; |
| 299 |
} |
| 300 |
|
| 301 |
.choices__item--disabled { |
| 302 |
cursor: not-allowed; |
| 303 |
user-select: none; |
| 304 |
opacity: 0.5; |
| 305 |
} |
| 306 |
|
| 307 |
.choices__heading { |
| 308 |
font-weight: 600; |
| 309 |
font-size: 0.75em; |
| 310 |
text-transform: uppercase; |
| 311 |
padding: 10px; |
| 312 |
border-top: 1px solid #f2f2f2; |
| 313 |
border-bottom: 1px solid #f2f2f2; |
| 314 |
color: #a6a6a6; |
| 315 |
} |
| 316 |
.choices__group[data-value=hidden] > .choices__heading { |
| 317 |
display: none; |
| 318 |
} |
| 319 |
|
| 320 |
.choices__button { |
| 321 |
text-indent: -9999px; |
| 322 |
-webkit-appearance: none; |
| 323 |
appearance: none; |
| 324 |
border: 0; |
| 325 |
background-color: transparent; |
| 326 |
background-repeat: no-repeat; |
| 327 |
background-position: center; |
| 328 |
cursor: pointer; |
| 329 |
} |
| 330 |
.choices__button:focus { |
| 331 |
outline: none; |
| 332 |
} |
| 333 |
|
| 334 |
.choices__input { |
| 335 |
display: inline-block; |
| 336 |
background-color: transparent; |
| 337 |
margin: 0 0 4px 0 !important; |
| 338 |
border: 0 !important; |
| 339 |
border-radius: 0 !important; |
| 340 |
max-width: 100%; |
| 341 |
min-height: 0 !important; |
| 342 |
width: auto !important; |
| 343 |
padding: 2px 4px !important; |
| 344 |
height: auto !important; |
| 345 |
} |
| 346 |
.choices__input--hidden { |
| 347 |
clip: rect(1px, 1px, 1px, 1px) !important; |
| 348 |
clip-path: inset(50%) !important; |
| 349 |
height: 1px !important; |
| 350 |
margin: -1px !important; |
| 351 |
overflow: hidden !important; |
| 352 |
padding: 0 !important; |
| 353 |
position: absolute !important; |
| 354 |
width: 1px !important; |
| 355 |
min-width: auto !important; |
| 356 |
word-wrap: normal !important; |
| 357 |
} |
| 358 |
|
| 359 |
.choices .choices__inner input.choices__input:focus { |
| 360 |
outline: none !important; |
| 361 |
box-shadow: none !important; |
| 362 |
border: none !important; |
| 363 |
} |
| 364 |
|
| 365 |
.choices__placeholder { |
| 366 |
opacity: 0.5; |
| 367 |
} |
| 368 |
|
| 369 |
#charitable-admin-form-embed-wizard .choices.is-open.is-flipped .choices__inner { |
| 370 |
border-radius: 4px 4px 0 0; |
| 371 |
} |
| 372 |
#charitable-admin-form-embed-wizard .is-flipped .choices__list--dropdown { |
| 373 |
border-radius: inherit; |
| 374 |
} |
| 375 |
#charitable-admin-form-embed-wizard .choices[data-type*=select-one]:after { |
| 376 |
border: none; |
| 377 |
background: #ffffff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23777%22%2F%3E%3C%2Fsvg%3E) no-repeat center; |
| 378 |
background-size: 16px 16px; |
| 379 |
cursor: pointer; |
| 380 |
width: 16px; |
| 381 |
height: 16px; |
| 382 |
top: 13px; |
| 383 |
right: 8px; |
| 384 |
margin-top: 0; |
| 385 |
} |
| 386 |
#charitable-admin-form-embed-wizard .choices[data-type*=select-one].is-flipped:after { |
| 387 |
transform: rotate(180deg); |
| 388 |
} |
| 389 |
|
| 390 |
body.rtl .choices[data-type*=select-multiple] .choices__inner { |
| 391 |
padding-right: 4px; |
| 392 |
padding-left: 24px; |
| 393 |
} |
| 394 |
body.rtl .choices[data-type*=select-multiple]:after { |
| 395 |
right: auto; |
| 396 |
left: 11.5px; |
| 397 |
} |
| 398 |
body.rtl .choices__list--single { |
| 399 |
padding-right: 4px; |
| 400 |
padding-left: 16px; |
| 401 |
} |
| 402 |
body.rtl .choices__list--multiple .choices__item { |
| 403 |
margin-right: 0; |
| 404 |
margin-left: 3.75px; |
| 405 |
} |
| 406 |
body.rtl .choices__list--multiple .choices__item[data-deletable] { |
| 407 |
padding-right: 10px; |
| 408 |
padding-left: 5px; |
| 409 |
} |
| 410 |
body.rtl .choices__list--dropdown .choices__item { |
| 411 |
text-align: right; |
| 412 |
} |
| 413 |
body.rtl .choices__input { |
| 414 |
padding-right: 2px !important; |
| 415 |
padding-left: 0 !important; |
| 416 |
} |
| 417 |
body.rtl .choices[data-type*=select-multiple] .choices__button, body.rtl .choices[data-type*=text] .choices__button { |
| 418 |
margin-right: 2px; |
| 419 |
margin-left: -1px; |
| 420 |
border-right: 1px solid #024b79; |
| 421 |
border-left: none; |
| 422 |
} |
| 423 |
@media (min-width: 640px) { |
| 424 |
body.rtl .choices__list--dropdown .choices__item--selectable { |
| 425 |
text-align: right; |
| 426 |
padding-left: 100px; |
| 427 |
padding-right: 10px; |
| 428 |
} |
| 429 |
body.rtl .choices__list--dropdown .choices__item--selectable:after { |
| 430 |
right: auto; |
| 431 |
left: 10px; |
| 432 |
} |
| 433 |
} |
| 434 |
|