Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-sass.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2013-12-24 19:26:24 +0400
committerGleb Mazovetskiy <glex.spb@gmail.com>2013-12-24 19:26:24 +0400
commit44a13d152162883e808ba5229c085423e3fa6fad (patch)
tree85f71b5f7913e9f8d5c432c3af3982d96b182115
parent73b93295d84f9c79ab404f3ea6a112b72cfe3e5b (diff)
Backport asset helper detectionv3.0.3-03.0-stable
-rw-r--r--vendor/assets/stylesheets/bootstrap/_variables.scss6
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/assets/stylesheets/bootstrap/_variables.scss b/vendor/assets/stylesheets/bootstrap/_variables.scss
index 5b477e9d..519aaaac 100644
--- a/vendor/assets/stylesheets/bootstrap/_variables.scss
+++ b/vendor/assets/stylesheets/bootstrap/_variables.scss
@@ -1,5 +1,7 @@
-// bootstrap specific variable. set to false if not using ruby + asset pipeline / compass.
-$bootstrap-sass-asset-helper: true !default;
+// a flag to toggle asset pipeline / compass integration
+// defaults to true if twbs-font-path function is present (no function => twbs-font-path('') parsed as string == right side)
+// in Sass 3.3 this can be improved with: function-exists(twbs-font-path)
+$bootstrap-sass-asset-helper: (twbs-font-path('') != unquote("twbs-font-path('')")) !default;
//
// Variables
// --------------------------------------------------