|
170 | 170 |
|
171 | 171 | .typeahead__container {
|
172 | 172 | position: relative;
|
173 |
| - font: 14px Lato, "Helvetica Neue", Arial, Helvetica, sans-serif; |
| 173 | + font: 1rem Lato, "Helvetica Neue", Arial, Helvetica, sans-serif; |
174 | 174 | }
|
175 | 175 |
|
176 | 176 | .typeahead__container * {
|
|
207 | 207 | }
|
208 | 208 |
|
209 | 209 | .typeahead__field {
|
210 |
| - font-size: 0; |
| 210 | + display: -webkit-flex; |
| 211 | + display: -ms-flexbox; |
| 212 | + display: flex; |
211 | 213 | position: relative;
|
212 |
| - display: table; |
213 |
| - border-collapse: collapse; |
214 | 214 | width: 100%;
|
215 | 215 | }
|
216 | 216 |
|
217 |
| -.typeahead__field > * { |
218 |
| - display: table-cell; |
219 |
| - vertical-align: top; |
220 |
| -} |
221 |
| - |
222 |
| -.typeahead__query, .typeahead__filter, .typeahead__button { |
223 |
| - font-size: 14px; |
224 |
| -} |
225 |
| - |
226 |
| -.typeahead__button { |
227 |
| - position: relative; |
228 |
| - font-size: 0; |
229 |
| - width: 1%; |
230 |
| - vertical-align: top; |
231 |
| -} |
232 |
| - |
233 | 217 | .typeahead__button button {
|
234 | 218 | border-top-right-radius: 2px;
|
235 | 219 | border-bottom-right-radius: 2px;
|
|
245 | 229 | .typeahead__field .typeahead__hint {
|
246 | 230 | display: block;
|
247 | 231 | width: 100%;
|
248 |
| - min-height: 36px; |
249 |
| - line-height: 1.6; |
250 |
| - padding: 6px 12px; |
| 232 | + line-height: 1.25; |
| 233 | + min-height: calc(0.5rem * 2 + 1.25rem + 2px); |
| 234 | + padding: 0.5rem 0.75rem; |
251 | 235 | background: #fff;
|
252 | 236 | border: 1px solid #ccc;
|
253 | 237 | border-radius: 2px 0 0 2px;
|
|
298 | 282 | cursor: pointer;
|
299 | 283 | background-color: #fff;
|
300 | 284 | border: 1px solid #ccc;
|
301 |
| - height: 36px; |
302 |
| - padding: 6px 12px; |
| 285 | + line-height: 1.25; |
| 286 | + padding: 0.5rem 0.75rem; |
303 | 287 | -webkit-user-select: none;
|
304 | 288 | -moz-user-select: none;
|
305 | 289 | -ms-user-select: none;
|
|
415 | 399 | .typeahead__list > li > a,
|
416 | 400 | .typeahead__dropdown > li > a {
|
417 | 401 | display: block;
|
418 |
| - padding: 6px 12px; |
| 402 | + padding: 0.5rem 0.75rem; |
419 | 403 | clear: both;
|
420 | 404 | color: #333;
|
421 | 405 | text-decoration: none;
|
|
432 | 416 | }
|
433 | 417 |
|
434 | 418 | .typeahead__list.empty > li {
|
435 |
| - padding: 6px 12px; |
| 419 | + padding: 0.5rem 0.75rem; |
436 | 420 | color: #333;
|
437 | 421 | }
|
438 | 422 |
|
|
486 | 470 | position: absolute;
|
487 | 471 | right: 0;
|
488 | 472 | cursor: pointer;
|
489 |
| - font-size: 18px; |
490 | 473 | line-height: 1.25;
|
491 |
| - height: 36px; |
492 |
| - padding: 6px 10px; |
| 474 | + padding: 0.5rem 0.75rem; |
493 | 475 | visibility: hidden;
|
494 | 476 | }
|
495 | 477 |
|
|
510 | 492 | padding: 0 1.25rem;
|
511 | 493 | width: 16px;
|
512 | 494 | height: 16px;
|
513 |
| - text-align: center; |
514 |
| - display: inline-block; |
515 | 495 | background: url(data:image/svg+xml;charset=utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMS4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDI1MC4zMTMgMjUwLjMxMyIgc3R5b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L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=) no-repeat scroll center center transparent;
|
516 | 496 | }
|
517 | 497 |
|
518 | 498 | .typeahead__container.loading .typeahead__query:before, .typeahead__container.loading .typeahead__query:after {
|
519 | 499 | transition: all 0s linear, opacity 0.2s ease;
|
520 | 500 | position: absolute;
|
521 | 501 | z-index: 3;
|
522 |
| - content: ''; |
| 502 | + content: ""; |
523 | 503 | top: 50%;
|
524 |
| - right: .55em; |
525 |
| - margin-top: -10.5px; |
526 |
| - width: 21px; |
527 |
| - height: 21px; |
| 504 | + right: 0.55em; |
| 505 | + margin-top: -0.675rem; |
| 506 | + width: 1.35rem; |
| 507 | + height: 1.35rem; |
528 | 508 | box-sizing: border-box;
|
529 | 509 | border-radius: 500rem;
|
530 | 510 | border-style: solid;
|
531 |
| - border-width: .1em; |
| 511 | + border-width: 0.1em; |
532 | 512 | }
|
533 | 513 |
|
534 | 514 | .typeahead__container.loading .typeahead__query:before {
|
|
569 | 549 | .typeahead__label-container {
|
570 | 550 | list-style: none;
|
571 | 551 | position: absolute;
|
572 |
| - padding-top: 6px; |
| 552 | + padding-top: calc(1rem * 0.375); |
573 | 553 | padding-left: 6px;
|
| 554 | + width: 100%; |
| 555 | + -webkit-flex-wrap: wrap; |
| 556 | + -ms-flex-wrap: wrap; |
| 557 | + flex-wrap: wrap; |
| 558 | + display: -webkit-flex; |
| 559 | + display: -ms-flexbox; |
| 560 | + display: flex; |
574 | 561 | }
|
575 | 562 |
|
576 | 563 | .typeahead__label {
|
577 |
| - font-size: 12px; |
| 564 | + display: -webkit-flex; |
| 565 | + display: -ms-flexbox; |
| 566 | + display: flex; |
| 567 | + font-size: calc(1rem * 0.875); |
578 | 568 | position: relative;
|
579 |
| - display: inline-block; |
580 | 569 | background: #ecf5fc;
|
581 | 570 | border: solid 1px #c2e0ff;
|
582 | 571 | padding-left: 4px;
|
583 | 572 | border-radius: 2px;
|
584 | 573 | margin-right: 4px;
|
585 |
| - margin-bottom: 6px; |
| 574 | + margin-bottom: calc(1rem * 0.375); |
586 | 575 | }
|
587 | 576 |
|
588 | 577 | .typeahead__label > * {
|
589 |
| - display: inline-block; |
| 578 | + -webkit-align-self: center; |
| 579 | + -ms-flex-item-align: center; |
| 580 | + -ms-grid-row-align: center; |
| 581 | + align-self: center; |
590 | 582 | }
|
591 | 583 |
|
592 | 584 | .typeahead__label .typeahead__cancel-button {
|
593 | 585 | line-height: normal;
|
594 | 586 | height: auto;
|
595 | 587 | position: static;
|
596 |
| - padding: 4px 6px; |
| 588 | + padding-top: calc(1rem * 0.25 - 1px); |
| 589 | + padding-bottom: calc(1rem * 0.25 + 1px); |
| 590 | + padding-left: 6px; |
| 591 | + padding-right: 6px; |
597 | 592 | margin-left: 4px;
|
598 |
| - font-size: 12px; |
| 593 | + font-size: calc(1rem * 0.875); |
599 | 594 | border-left: solid 1px #c2e0ff;
|
600 | 595 | }
|
601 | 596 |
|
|
0 commit comments