t0m/select2-bootstrap-css

Using without bootstrap

Closed this issue · 3 comments

Sogl commented

Hi!
I'm using Jquery UI bootstrap (with non-bootsrap file select2.css) and when i change my non-bootstrap css to yours, my select2 collapses.
Are you going to create css-file that work without bootstrap?

@Sogl just using Select2 is a non-bootstrap implementation, right? This repo is just to make it Bootstrap friendly.

Sogl commented

Yes, I use non-bootstrap css-styles from original select2. With bootstrap-styles my select2 broke.

Same with this project. Bootstrap-styles not working properly, but I didn't found non-bootstrap css-file.

fk commented

Thanks @ksnyde for helping out!

@Sogl – @ksnyde is indeed correct: The CSS offered by this project – select2-bootstrap-css – is explicitly tailored at a scenario where Select2 is used in conjunction with Twitter Bootstrap; thus, both Select2's and Twitter Bootstrap's CSS are expected to be present for select2-bootstrap.css to work as intended.

I think it is safe to say that this project will not offer a standalone "CSS theme" for Select2 in the foreseeable future. You could however go ahead and extract the required CSS from Twitter Bootstrap, Select2 and this project to style your Select2 widgets in a similar way. Good luck!