Wallogit.com
2017 © Pedro Peláez
select2-bootstrap-css,
forked for Bootstrap 3., (*1)
Demonstrations available at
http://fk.github.io/select2-bootstrap-css/, (*2)
Tested with Bootstrap v3.3.2 and Select2 v3.3.2, v3.4.1-v3.4.5, v3.5.1, v3.5.2, master
in latest Chrome, Safari, Firefox, Opera (Mac) and IE8-IE10., (*3)
.select2-dropdown-open.select2-drop-above [class^="select2-choice"] in IE <= 9; really fixes #35..select2-container.form-control (inherited from Bootstrap's .form-control)..select2-arrow (#36)..select2-dropdown-open.select2-drop-above (as reported by @rzschech in https://github.com/t0m/select2-bootstrap-css/issues/24#issuecomment-37683695, https://github.com/t0m/select2-bootstrap-css/issues/24#issuecomment-37688176) and `.select2-dropdown in "Bootstrap input groups with addons".<select> element not being hidden..input-lg size modifier to be 1px off in height (Bootstrap 3's "input group sizing"-demo at http://getbootstrap.com/components/#input-groups-sizing behaved the same for Bootstrap v3.0.0).main and dependencies section to bower.json.Original select2-bootstrap-css for Bootstrap 2 by Tom Terrace (@tterrace)., (*4)
The project offers Less and Sass sources for building select2-bootstrap.css; both make use of variables from either Bootstrap (Less) or Bootstrap for Sass. The demo pages are built using Jekyll and there are a bunch of Grunt tasks to ease development., (*5)
With Ruby and RubyGems, Jekyll, Bower, node.js, Less and Sass installed, run, (*6)
npm install && bower install
to install all necessary development dependencies., (*7)
grunt copy copies assets from components to _jekyll – use this in case a new version of Twitter Bootstrap or Select2 are out and need to be testedgrunt build builds docs
grunt serve builds docs and serves them via Jekyll's --watch flag on http://localhost:4000grunt watch watches for changes in lib/select2-bootstrap.scss (livereload is enabled)Develop in lib/select2-bootstrap.scss test your changes using grunt watch and grunt serve. Ideally, port your changes to lib/select2-bootstrap.less and make sure tests are passing to verify that Less and Sass compile down to the target CSS via npm test., (*8)