|
112 | 112 | .select2, |
113 | 113 | .select2-choice, |
114 | 114 | .select2-container, |
115 | | - .select2-container--above, |
116 | | - .select2-container--below, |
117 | | - .select2-container--default, |
118 | | - .select2-container--focus, |
119 | | - .select2-hidden-accessible, |
120 | 115 | .select2-results__option, |
121 | 116 | .select2-search input, |
122 | 117 | .select2-search--dropdown, |
123 | 118 | .select2-search__field, |
124 | 119 | .select2-selection .select2-selection--single, |
125 | 120 | .select2-selection, |
126 | | - .select2-selection, |
127 | | - .select2-selection--single, |
128 | 121 | .select2-selection--single, |
| 122 | + .select2-selection__rendered, |
| 123 | + input[type="date"], |
| 124 | + input[type="number"], |
129 | 125 | input[type="text"], |
| 126 | + option:active, |
| 127 | + option[active], |
130 | 128 | option[selected], |
| 129 | + select option, |
131 | 130 | select, |
132 | | - select::selection, |
133 | 131 | textarea |
134 | 132 | { |
135 | 133 | background-color: var(--table-stripe-bg-alt) !important; |
136 | 134 | color: var(--color-fg) !important; |
137 | 135 | } |
138 | 136 |
|
| 137 | + .select2-container--default.select2-container--focus .select2-selection--multiple, |
| 138 | + .select2-container--default .select2-search--dropdown .select2-search__field { |
| 139 | + border-color: hsl(from var(--main-theme-color) h s calc(l - 5)) !important; |
| 140 | + } |
| 141 | +
|
139 | 142 | .select2-results__option[aria-selected=true] /** this handles the selected option */ |
140 | 143 | { |
141 | 144 | background-color: hsl(from var(--main-theme-color) h s calc(l - 5)) !important; |
142 | 145 | color: var(--color-fg) !important; |
143 | 146 | } |
144 | 147 |
|
| 148 | + input[type="text"]:focus, |
| 149 | + input[type="date"]:focus, |
| 150 | + input[type="number"]:focus |
| 151 | + { |
| 152 | + border-color: hsl(from var(--main-theme-color) h s calc(l - 5)) !important; |
| 153 | + } |
| 154 | +
|
145 | 155 | /** |
146 | 156 | Highlight the select2 on hover |
147 | 157 | */ |
|
150 | 160 | color: var(--color-fg) !important; |
151 | 161 | } |
152 | 162 |
|
| 163 | + .select2-results__option--highlighted[aria-selected=true] { |
| 164 | + background-color: hsl(from var(--main-theme-color) h s calc(l + 20)) !important; |
| 165 | + color: var(--color-fg) !important; |
| 166 | + } |
| 167 | +
|
153 | 168 | .select2-selection__choice, |
154 | 169 | .select2-container--default .select2-selection--multiple .select2-selection__choice |
155 | 170 | { |
|
161 | 176 | color: white !important; |
162 | 177 | } |
163 | 178 |
|
| 179 | + .select2-container--default { |
| 180 | + border-color: var(--box-header-bottom-border-color); |
| 181 | + } |
| 182 | +
|
| 183 | +
|
164 | 184 | .select2-container--default .select2-selection--multiple .select2-selection__choice |
165 | 185 | { |
166 | 186 | background-color: hsl(from var(--main-theme-color) h s calc(l - 5)) !important; |
|
173 | 193 | } |
174 | 194 |
|
175 | 195 |
|
| 196 | +
|
176 | 197 | .search-highlight { |
177 | 198 | background-color: var(--search-highlight); |
178 | 199 | } |
|
483 | 504 | { |
484 | 505 | background-color: hsl(from var(--main-theme-color) h s calc(l - 5)); |
485 | 506 | border-color: hsl(from var(--main-theme-color) h s calc(l - 15)); |
486 | | - color: white; |
| 507 | + color: var(--color-fg) !important; |
487 | 508 |
|
488 | 509 | } |
489 | 510 |
|
|
678 | 699 | .callout-legend h4 a, |
679 | 700 | .callout-legend h4 a:hover |
680 | 701 | { |
681 | | - color: var(--color-fg); |
| 702 | + color: var(--color-fg) !important; |
682 | 703 | } |
683 | 704 |
|
684 | 705 |
|
|
0 commit comments