_fancy-radio.scss
1 year ago
_helpers.scss
7 months ago
_modals.scss
1 year ago
_notifications.scss
7 months ago
_preview.scss
7 months ago
_select2.scss
1 year ago
_variables.scss
7 months ago
_select2.scss
126 lines
| 1 | @use "variables" as *; |
| 2 | /* select2 */ |
| 3 | //basic select gets hidden |
| 4 | .select2-hidden-accessible { |
| 5 | border: 0 !important; |
| 6 | clip: rect(0 0 0 0) !important; |
| 7 | -webkit-clip-path: inset(50%) !important; |
| 8 | clip-path: inset(50%) !important; |
| 9 | height: 1px !important; |
| 10 | overflow: hidden !important; |
| 11 | padding: 0 !important; |
| 12 | position: absolute !important; |
| 13 | width: 1px !important; |
| 14 | white-space: nowrap !important; |
| 15 | } |
| 16 | .select2-selection { |
| 17 | border: 1px solid $divider-color; |
| 18 | border-radius: $border-radius; |
| 19 | padding: 0.5rem 1rem; |
| 20 | color: $text-color; |
| 21 | font-size: 0.75rem; |
| 22 | min-height: 36px; |
| 23 | display: flex; |
| 24 | align-items: center; |
| 25 | justify-content: space-between; |
| 26 | &[aria-expanded="true"]="true""] { |
| 27 | border-color: $primary-color; |
| 28 | } |
| 29 | .select2-selection__arrow { |
| 30 | display: none; |
| 31 | } |
| 32 | } |
| 33 | .select2-container { |
| 34 | box-sizing: border-box; |
| 35 | display: inline-block; |
| 36 | margin: 0; |
| 37 | position: relative; |
| 38 | vertical-align: middle; |
| 39 | &.select2-container--open { |
| 40 | .select2-dropdown--below { |
| 41 | border-top: none; |
| 42 | border-top-left-radius: 0; |
| 43 | border-top-right-radius: 0; |
| 44 | } |
| 45 | .select2-dropdown { |
| 46 | box-shadow: $dropdown-shadow; |
| 47 | background-color: white; |
| 48 | border: 1px solid $divider-color; |
| 49 | border-radius: 4px; |
| 50 | box-sizing: border-box; |
| 51 | display: block; |
| 52 | position: absolute; |
| 53 | left: 0; |
| 54 | width: 100%; |
| 55 | z-index: 1051; |
| 56 | .select2-results { |
| 57 | display: block; |
| 58 | } |
| 59 | ul.select2-results__options { |
| 60 | max-height: 200px; |
| 61 | overflow-y: auto; |
| 62 | &::-webkit-scrollbar { |
| 63 | width: 3px; |
| 64 | } |
| 65 | &::-webkit-scrollbar-thumb { |
| 66 | background: inherit; |
| 67 | border-radius: 20px; |
| 68 | } |
| 69 | &::-webkit-scrollbar-track { |
| 70 | background: transparent; |
| 71 | display: none; |
| 72 | } |
| 73 | &:hover { |
| 74 | &::-webkit-scrollbar-thumb { |
| 75 | background: #edebf1; |
| 76 | } |
| 77 | } |
| 78 | li.select2-results__option { |
| 79 | cursor: pointer; |
| 80 | padding: 0.25rem 1rem; |
| 81 | margin: 0; |
| 82 | font-size: 0.75rem; |
| 83 | &.select2-results__option--highlighted { |
| 84 | background-color: $gray-100; |
| 85 | //color: #fff; |
| 86 | } |
| 87 | &.select2-results__option[aria-selected="true"]="true""] { |
| 88 | display: none; |
| 89 | background-color: $purple-50; |
| 90 | &.select2-results__option--highlighted { |
| 91 | background-color: $red-200; |
| 92 | color: #fff; |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 | } |
| 100 | .select2-search { |
| 101 | margin-bottom: 0; |
| 102 | input.select2-search__field { |
| 103 | background: transparent; |
| 104 | border: none; |
| 105 | outline: 0; |
| 106 | box-shadow: none; |
| 107 | -webkit-appearance: textfield; |
| 108 | font-size: 0.75rem; |
| 109 | min-height: initial; |
| 110 | padding: 0; |
| 111 | &:focus { |
| 112 | background: transparent; |
| 113 | border: none; |
| 114 | outline: 0; |
| 115 | box-shadow: none; |
| 116 | -webkit-appearance: textfield; |
| 117 | } |
| 118 | &::-webkit-search-decoration, |
| 119 | &::-webkit-search-cancel-button, |
| 120 | &::-webkit-search-results-button, |
| 121 | &::-webkit-search-results-decoration { |
| 122 | display: none; |
| 123 | } |
| 124 | } |
| 125 | } |
| 126 |