mirror of
https://github.com/twbs/bootstrap-sass.git
synced 2022-11-09 12:27:02 -05:00
Reduce minimum precision 10 -> 8 #821
This commit is contained in:
parent
6b435ed09c
commit
4427d7f7fb
2 changed files with 5 additions and 5 deletions
|
@ -69,7 +69,7 @@ end
|
|||
# Precompile Bootstrap fonts
|
||||
config.assets.precompile << %r(bootstrap-sass/assets/fonts/bootstrap/[\w-]+\.(?:eot|svg|ttf|woff2?)$)
|
||||
# Minimum Sass number precision required by bootstrap-sass
|
||||
::Sass::Script::Number.precision = [10, ::Sass::Script::Number.precision].max
|
||||
::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max
|
||||
```
|
||||
|
||||
Replace Bootstrap `@import` statements in `application.css.scss` with:
|
||||
|
@ -187,13 +187,13 @@ In the application Sass file, replace `@import 'bootstrap'` with:
|
|||
|
||||
#### Sass: Number Precision
|
||||
|
||||
bootstrap-sass [requires](https://github.com/twbs/bootstrap-sass/issues/409) minimum [Sass number precision][sass-precision] of 10 (default is 5).
|
||||
bootstrap-sass [requires](https://github.com/twbs/bootstrap-sass/issues/409) minimum [Sass number precision][sass-precision] of 8 (default is 5).
|
||||
|
||||
Precision is set for Rails and Compass automatically.
|
||||
When using ruby Sass compiler standalone or with the Bower version you can set it with:
|
||||
|
||||
```ruby
|
||||
::Sass::Script::Number.precision = [10, ::Sass::Script::Number.precision].max
|
||||
::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max
|
||||
```
|
||||
|
||||
#### Sass: Autoprefixer
|
||||
|
|
|
@ -55,8 +55,8 @@ module Bootstrap
|
|||
|
||||
::Sass.load_paths << stylesheets_path
|
||||
|
||||
# bootstrap requires minimum precision of 10, see https://github.com/twbs/bootstrap-sass/issues/409
|
||||
::Sass::Script::Number.precision = [10, ::Sass::Script::Number.precision].max
|
||||
# bootstrap requires minimum precision of 8, see https://github.com/twbs/bootstrap-sass/issues/409
|
||||
::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max
|
||||
end
|
||||
|
||||
def register_compass_extension
|
||||
|
|
Loading…
Add table
Reference in a new issue