Answer the question
In order to leave comments, you need to log in
Sass mixin for select2 customization, is there one already?
Hello! For dropdown lists I use Select2
To change the appearance I set the theme:
$(".js-example-theme-single").select2({
theme: "example"
});
.select2-container--example {
/*
и тут задаю дочерним элементам стили
*/
}
Answer the question
In order to leave comments, you need to log in
You probably need to set the theme globally $.fn.select2.defaults.set("theme", "classic");
And in css to use a more general selector?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question