-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Bootstrap's Dark Mode #2163
Comments
This is my modified BS5 stylesheet for selectize.js. It uses the newer css classes that adapt to light/dark modes. /**
.selectize-control.plugin-drag_drop.multi>.selectize-input.dragging { .selectize-control.plugin-drag_drop.multi>.selectize-input>div.ui-sortable-placeholder { .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after { .selectize-control.plugin-drag_drop .ui-sortable-helper { .selectize-dropdown.plugin-dropdown_header .selectize-dropdown-header { .selectize-dropdown.plugin-dropdown_header .selectize-dropdown-header-close { .selectize-dropdown.plugin-dropdown_header .selectize-dropdown-header-close:hover { .selectize-dropdown.plugin-optgroup_columns .selectize-dropdown-content { .selectize-dropdown.plugin-optgroup_columns .optgroup { .selectize-dropdown.plugin-optgroup_columns .optgroup:last-child { .selectize-dropdown.plugin-optgroup_columns .optgroup:before { .selectize-dropdown.plugin-optgroup_columns .optgroup-header { .selectize-control.plugin-remove_button .item { .selectize-control.plugin-remove_button .item .remove { .selectize-control.plugin-remove_button .item .remove:hover { .selectize-control.plugin-remove_button .item.active .remove { .selectize-control.plugin-remove_button .disabled .item .remove:hover { .selectize-control.plugin-remove_button .disabled .item .remove { .selectize-control.plugin-clear_button .clear { .selectize-control.plugin-clear_button .clear:hover { .selectize-control.plugin-clear_button.single .clear { .selectize-dropdown.plugin-auto_position.selectize-position-top { .selectize-control.plugin-auto_position .selectize-input.selectize-position-top.dropdown-active { .selectize-control.plugin-auto_position .selectize-input.selectize-position-top.dropdown-active::before { .selectize-control { .selectize-dropdown, .selectize-input, .selectize-input { .selectize-control.multi .selectize-input.has-items { .selectize-input.full { .selectize-input.disabled, .selectize-input.focus { .selectize-input.dropdown-active { .selectize-input>* { .selectize-control.multi .selectize-input>div { .selectize-control.multi .selectize-input>div.active { .selectize-control.multi .selectize-input.disabled>div, .selectize-input>input { .selectize-input>input::-ms-clear { .selectize-input>input:focus { .selectize-input>input[placeholder] { .selectize-input.has-items>input { .selectize-input::after { .selectize-input.dropdown-active::before { .selectize-dropdown { .selectize-dropdown [data-selectable] { .selectize-dropdown [data-selectable] .highlight { .selectize-dropdown .option, .selectize-dropdown .option, .selectize-dropdown [data-selectable].option { .selectize-dropdown .optgroup:first-child .optgroup-header { .selectize-dropdown .optgroup-header { .selectize-dropdown .active { .selectize-dropdown .active.create { .selectize-dropdown .selected { .selectize-dropdown .create { .selectize-dropdown .active:not(.selected) { .selectize-dropdown-content { .selectize-dropdown-emptyoptionlabel { .selectize-dropdown .spinner { .selectize-dropdown .spinner:after { @Keyframes lds-dual-ring {
} .selectize-control.single .selectize-input, .selectize-control.single .selectize-input.input-active, .selectize-control.single .selectize-input:not(.no-arrow):after { .selectize-control.single .selectize-input:not(.no-arrow).dropdown-active:after { .selectize-control.rtl { .selectize-control.rtl.single .selectize-input:after { .selectize-control.rtl .selectize-input>input { .selectize-control .selectize-input.disabled { .selectize-dropdown, .selectize-dropdown .optgroup-header { .selectize-dropdown .optgroup:first-child:before { .selectize-dropdown .optgroup:before { .selectize-dropdown .create { .selectize-dropdown-content { .selectize-dropdown-emptyoptionlabel { .selectize-input { @media(prefers-reduced-motion:reduce) { .selectize-input.dropdown-active { .selectize-input.dropdown-active::before { .selectize-input.focus { .is-invalid .selectize-input { .is-invalid .selectize-input:focus { .selectize-control.form-control-sm .selectize-input { .selectize-control.multi .selectize-input { .selectize-control.multi .selectize-input>div { .form-select.selectize-control, .input-group>.input-group-append>.btn, .input-group>.input-group-prepend>.btn { .input-group .selectize-control:not(:last-child) .selectize-input { .input-group .selectize-control:not(:first-child) .selectize-input { .selectize-dropdown.plugin-auto_position.selectize-position-top { .selectize-control.plugin-auto_position .selectize-input.selectize-position-top.dropdown-active { .selectize-dropdown.plugin-auto_position.selectize-position-top { .selectize-control.plugin-auto_position .selectize-input.selectize-position-top.dropdown-active { .selectize-control.plugin-auto_position .selectize-input.selectize-position-top.dropdown-active::before { .selectize-control.plugin-clear_button .clear { .selectize-control.plugin-clear_button .clear:hover { .selectize-control.plugin-clear_button.single .clear { .selectize-control.plugin-drag_drop.multi>.selectize-input.dragging { .selectize-control.plugin-drag_drop.multi>.selectize-input>div.ui-sortable-placeholder { .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after { .selectize-control.plugin-drag_drop .ui-sortable-helper { .selectize-dropdown.plugin-dropdown_header .selectize-dropdown-header { .selectize-dropdown.plugin-dropdown_header .selectize-dropdown-header-close { .selectize-dropdown.plugin-dropdown_header .selectize-dropdown-header-close:hover { .selectize-dropdown.plugin-optgroup_columns .selectize-dropdown-content { .selectize-dropdown.plugin-optgroup_columns .optgroup { .selectize-dropdown.plugin-optgroup_columns .optgroup:last-child { .selectize-dropdown.plugin-optgroup_columns .optgroup:before { .selectize-dropdown.plugin-optgroup_columns .optgroup-header { .selectize-control.plugin-remove_button .item { .selectize-control.plugin-remove_button .item .remove { .selectize-control.plugin-remove_button .item .remove:hover { .selectize-control.plugin-remove_button .item.active .remove { .selectize-control.plugin-remove_button .disabled .item .remove:hover { .selectize-control.plugin-remove_button .disabled .item .remove { |
Thanks for the amazing library. Bootstrap introduced a new dark mode in 5.3.3. it would be so good if the selectize library found a way to respect the "dark mode choice". Thank you!
The text was updated successfully, but these errors were encountered: