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

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2014-12-17 18:27:37 +0300
committerGleb Mazovetskiy <glex.spb@gmail.com>2014-12-17 18:28:54 +0300
commit7d30630bc8d490239b15dce754dfba298a7d5bc2 (patch)
tree7685bd1aa2e36c996de11624e2da4d5d52a0bcc3 /templates
parent19651584e8a669ffe4e72a715275bdcf1acbe7f1 (diff)
Sass: explicitly set $bootstrap-sass-asset-helper
Remove reliance on a hack as a polyfill for `function-exists`. Remove clutter from the generated variables template.
Diffstat (limited to 'templates')
-rw-r--r--templates/project/_bootstrap-variables.sass8
1 files changed, 2 insertions, 6 deletions
diff --git a/templates/project/_bootstrap-variables.sass b/templates/project/_bootstrap-variables.sass
index 968ceb6..080b1a3 100644
--- a/templates/project/_bootstrap-variables.sass
+++ b/templates/project/_bootstrap-variables.sass
@@ -1,10 +1,5 @@
// Override Bootstrap variables here (defaults from bootstrap-sass v3.3.1.0):
-// When true, asset path helpers are used, otherwise the regular CSS `url()` is used.
-// When there no function is defined, `fn('')` is parsed as string that equals the right hand side
-// NB: in Sass 3.3 there is a native function: function-exists(twbs-font-path)
-// $bootstrap-sass-asset-helper: (twbs-font-path("") != unquote('twbs-font-path("")'))
-
//
// Variables
// --------------------------------------------------
@@ -84,7 +79,8 @@
//** Load fonts from this directory.
-// [converter] Asset helpers such as Sprockets and Node.js Mincer do not resolve relative paths
+// [converter] If $bootstrap-sass-asset-helper if used, provide path relative to the assets load path.
+// [converter] This is because some asset helpers, such as Sprockets, do not work with file-relative paths.
// $icon-font-path: if($bootstrap-sass-asset-helper, "bootstrap/", "../fonts/bootstrap/")
//** File name for all font files.