simple css to make select2 widgets fit in with bootstrap
Pull request Compare This branch is 17 commits behind t0m:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_jekyll
compass/stylesheets
docs
lib
test
.gitignore
Gemfile
Gruntfile.js
LICENSE
Makefile
README.md
bower.json
package.json
select2-bootstrap-css.gemspec
select2-bootstrap.css

README.md

Select2 Bootstrap CSS

This is a bare bones stylesheet for making select2 fit in with bootstrap a bit better.

The LESS file is located at lib/select2-bootstrap.less, and the SCSS file is located at lib/select2-bootstrap.scss.

Tests are included to verify that LESS and SCSS compile down to the target CSS. To run the tests, you'll need to install node.js, Less, and SASS. Then you can run:

npm install && bower install
npm test

Notable Changes

Versions prior to 1.2.0 included a default width for select2 containers. Applying the class "input-default" to your select will line the select2 container up with a default bootstrap text input.

Compass

This library can also be used as a Compass plugin.

Gemfile:

gem 'select2-bootstrap-css'

compass.rb:

require 'select2-bootstrap-css'

Your scss file:

@import 'select2-bootstrap';

Demos

http://t0m.github.io/select2-bootstrap-css/