mirror of
https://github.com/twbs/bootstrap-sass.git
synced 2022-11-09 12:27:02 -05:00
readme: Sass number precision requirement. See also #409
This commit is contained in:
parent
ba35928ed5
commit
8e0f5ca1ea
1 changed files with 11 additions and 11 deletions
22
README.md
22
README.md
|
@ -79,11 +79,18 @@ bower install git://github.com/twbs/bootstrap-sass.git
|
||||||
|
|
||||||
Sass, JS, and all other assets are located at [vendor/assets](/vendor/assets).
|
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
|
#### 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
|
```sass
|
||||||
"#{$icon-font-path}/#{$icon-font-name}.eot"
|
"#{$icon-font-path}/#{$icon-font-name}.eot"
|
||||||
|
@ -91,7 +98,7 @@ If none of Rails/Sprockets/Compass were detected the fonts will be referenced as
|
||||||
|
|
||||||
`$icon-font-path` defaults to `bootstrap/`.
|
`$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
|
```bash
|
||||||
mkdir public/fonts
|
mkdir public/fonts
|
||||||
|
@ -100,14 +107,6 @@ mkdir public/javascripts
|
||||||
cp -r $(bundle show bootstrap-sass)/vendor/assets/javascripts/ 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
|
## Usage
|
||||||
|
|
||||||
### Sass
|
### Sass
|
||||||
|
@ -224,3 +223,4 @@ Michael Hartl's [Rails Tutorial](http://railstutorial.org/), [gitlabhq](http://g
|
||||||
[contrib]: https://github.com/twbs/bootstrap-sass/graphs/contributors
|
[contrib]: https://github.com/twbs/bootstrap-sass/graphs/contributors
|
||||||
[antirequire]: https://github.com/twbs/bootstrap-sass/issues/79#issuecomment-4428595
|
[antirequire]: https://github.com/twbs/bootstrap-sass/issues/79#issuecomment-4428595
|
||||||
[jsdocs]: http://getbootstrap.com/javascript/#transitions
|
[jsdocs]: http://getbootstrap.com/javascript/#transitions
|
||||||
|
[sass-precision]: http://sass-lang.com/documentation/Sass/Script/Number.html#precision-class_method
|
||||||
|
|
Loading…
Add table
Reference in a new issue