Skip to content

Commit

Permalink
readme: Sass number precision requirement. See also #409
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Feb 12, 2014
1 parent ba35928 commit 8e0f5ca
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,26 @@ bower install git://github.com/twbs/bootstrap-sass.git

Sass, JS, and all other assets are located at [vendor/assets](/vendor/assets).

bootstrap-sass requires minimum [Sass number precision][sass-precision] of 10 (default is 5).
When using ruby Sass compiler with the bower version you can enforce the limit with:

```ruby
::Sass::Script::Number.precision = [10, ::Sass::Script::Number.precision].max
```

#### JS and fonts

If you are using Rails or Sprockets, see Usage.
Assets are discovered automatically on Rails, Sprockets, and Compass, using native asset path helpers.

If none of Rails/Sprockets/Compass were detected the fonts will be referenced as:
Otherwise the fonts are referenced as:

```sass
"#{$icon-font-path}/#{$icon-font-name}.eot"
```

`$icon-font-path` defaults to `bootstrap/`.

When not using an asset pipeline, you have to copy fonts and javascripts from the gem.
When not using an asset pipeline, you can copy fonts and JS from bootstrap-sass, they are located at [vendor/assets](/vendor/assets):

```bash
mkdir public/fonts
Expand All @@ -100,14 +107,6 @@ mkdir public/javascripts
cp -r $(bundle show bootstrap-sass)/vendor/assets/javascripts/ public/javascripts/
```

In ruby you can get the assets' location in the filesystem like this:

```ruby
Bootstrap.stylesheets_path
Bootstrap.fonts_path
Bootstrap.javascripts_path
```

## Usage

### Sass
Expand Down Expand Up @@ -224,3 +223,4 @@ Michael Hartl's [Rails Tutorial](http://railstutorial.org/), [gitlabhq](http://g
[contrib]: https://github.com/twbs/bootstrap-sass/graphs/contributors
[antirequire]: https://github.com/twbs/bootstrap-sass/issues/79#issuecomment-4428595
[jsdocs]: http://getbootstrap.com/javascript/#transitions
[sass-precision]: http://sass-lang.com/documentation/Sass/Script/Number.html#precision-class_method

0 comments on commit 8e0f5ca

Please sign in to comment.