Skip to content

Commit

Permalink
Fix #919
Browse files Browse the repository at this point in the history
Work around for sass/libsass#1115
  • Loading branch information
glebm committed Jul 1, 2015
1 parent ffe92a9 commit 47819e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/stylesheets/bootstrap/_breadcrumbs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
5 changes: 5 additions & 0 deletions tasks/converter/less_conversion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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&'
Expand Down

0 comments on commit 47819e8

Please sign in to comment.