Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build
components
node_modules
.sass-cache
gh-pages
24 changes: 24 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = function(grunt) {

grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-contrib-sass');

// Project configuration.
grunt.initConfig({
nodeunit: {
all: ['test/*_test.js']
},

sass: {
options: {
style: 'expanded'
},
dist: {
files: {
'docs/select2-bootstrap.css': 'lib/build.scss'
}
}
}
});

};
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
pages:
cd gh-pages; git fetch origin
cd gh-pages; git checkout gh-pages
cd gh-pages; git merge origin/gh-pages
rm -rf gh-pages/demo/*
cp -r docs/* gh-pages/demo
cd gh-pages; git add -u .
cd gh-pages; git add .
cd gh-pages; git commit -m "Updated gh-pages."
cd gh-pages; git push origin gh-pages

pages_setup:
mkdir gh-pages
git init gh-pages
cd gh-pages; git remote add origin git@github.com:t0m/select2-bootstrap-css.git
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
This is a bare bones stylesheet for making select2 fit in with bootstrap a bit better.
If I have some down time I'll make this into a less file so any custom settings will
carry over but for now it's targeted at the default bootstrap style.
# 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](http://nodejs.org/), [Less](http://lesscss.org/), and [SASS](http://sass-lang.com/). Then you can run:

npm install && bower install
npm test

![preview image](http://t0m.github.com/select2-bootstrap-css/select2-preview.png)

Expand Down
13 changes: 13 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "select2-bootstrap-css",
"version": "1.1.0",
"ignore": [
"**/.*",
"node_modules",
"components"
],
"devDependencies": {
"bootstrap": "~2.3.1",
"sass-bootstrap": "git://github.com/jlong/sass-twitter-bootstrap.git#~2.3.1"
}
}
Binary file added docs/css/select2-spinner.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading