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
path: root/tasks
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2014-07-12 19:22:15 +0400
committerGleb Mazovetskiy <glex.spb@gmail.com>2014-07-12 19:22:15 +0400
commitbbda75fb7fc6b49c8264866aa6ae670dd49bbbbb (patch)
treeb157688f7cf4439fa1f43e4eaa0c475165d37028 /tasks
parent1a3726a7f97b6b7268aa02de07a81eddb1a0c6f2 (diff)
$icon-font-path fallback to relative for pure Sass
Refs #650 #662
Diffstat (limited to 'tasks')
-rw-r--r--tasks/converter/less_conversion.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/tasks/converter/less_conversion.rb b/tasks/converter/less_conversion.rb
index b3841d42..5dddfcfa 100644
--- a/tasks/converter/less_conversion.rb
+++ b/tasks/converter/less_conversion.rb
@@ -94,7 +94,12 @@ class Converter
// 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;
SCSS
- file = replace_all file, /(\$icon-font-path:\s+".*)(" !default)/, '\1bootstrap/\2'
+ file = replace_all file, %r{(\$icon-font-path): \s*"(.*)" (!default);}, <<-SCSS
+
+// [converter] Asset helpers such as Sprockets and Node.js Mincer do not resolve relative paths
+\\1: if($bootstrap-sass-asset-helper, "bootstrap/", "\\2bootstrap/") \\3;
+SCSS
+ '\1: if($bootstrap-sass-asset-helper, "bootstrap/", "\2bootstrap/")\3'
when 'close.less'
# extract .close { button& {...} } rule
file = extract_nested_rule file, 'button&'