diff --git a/assets/stylesheets/bootstrap/_breadcrumbs.scss b/assets/stylesheets/bootstrap/_breadcrumbs.scss index 3641e333b8..b61f0c731c 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 3bd940198c..6774a0bb22 100644 --- a/tasks/converter/less_conversion.rb +++ b/tasks/converter/less_conversion.rb @@ -102,6 +102,11 @@ def process_stylesheet_assets // [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&'