diff options
-rw-r--r-- | assets/stylesheets/bootstrap/_breadcrumbs.scss | 4 | ||||
-rw-r--r-- | tasks/converter/less_conversion.rb | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/assets/stylesheets/bootstrap/_breadcrumbs.scss b/assets/stylesheets/bootstrap/_breadcrumbs.scss index 3641e33..b61f0c7 100644 --- a/assets/stylesheets/bootstrap/_breadcrumbs.scss +++ b/assets/stylesheets/bootstrap/_breadcrumbs.scss @@ -14,7 +14,9 @@ display: inline-block; + li:before { - content: "#{$breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space + // [converter] Workaround for https://github.com/sass/libsass/issues/1115 + $nbsp: "\00a0"; + content: "#{$breadcrumb-separator}#{$nbsp}"; // Unicode space added since inline-block means non-collapsing white-space padding: 0 5px; color: $breadcrumb-color; } diff --git a/tasks/converter/less_conversion.rb b/tasks/converter/less_conversion.rb index 3bd9401..6774a0b 100644 --- a/tasks/converter/less_conversion.rb +++ b/tasks/converter/less_conversion.rb @@ -102,6 +102,11 @@ class Converter // [converter] This is because some asset helpers, such as Sprockets, do not work with file-relative paths. \\1: if($bootstrap-sass-asset-helper, "bootstrap/", "\\2bootstrap/") \\3; SCSS + when 'breadcrumbs.less' + file = replace_all file, /(.*)(\\00a0)/, unindent(<<-SCSS, 8) + "\\1\#{$nbsp}" + // [converter] Workaround for https://github.com/sass/libsass/issues/1115 + $nbsp: "\\2"; + SCSS when 'close.less' # extract .close { button& {...} } rule file = extract_nested_rule file, 'button&' |