Skip to content

Commit

Permalink
move css to scss fixes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelvanrijn committed Oct 13, 2017
1 parent 1fd515d commit 2ca7e3b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ In your `application.css`, include the following:
*= require selectize.default
```

Or if you like, you could use import instead

```sass
@import 'selectize'
@import 'selectize.bootstrap3'
```

### Themes

To include additional theme's you can replace the `selectize.default` for one of the [theme files](https://github.com/selectize/selectize.js/tree/master/dist/css)
Expand Down
4 changes: 4 additions & 0 deletions update_from_vendor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ echo "Copying selectize.js"
cp tmp_vendor/dist/js/standalone/selectize.js vendor/assets/javascripts/selectize.js
echo "Copying css files"
cp tmp_vendor/dist/css/*.css vendor/assets/stylesheets/
echo "Moving css to scss"
cd vendor/assets/stylesheets/
find ./ -name "*.css" | xargs -I '{}' basename '{}' | sed 's/\.css//' | xargs -I '{}' mv '{}.css' '{}.scss'
cd ../../../

# Delete vendor repo
echo "Removing cloned vendor repo"
Expand Down
File renamed without changes.

0 comments on commit 2ca7e3b

Please sign in to comment.