Skip to content

Commit

Permalink
Fix twbs#919
Browse files Browse the repository at this point in the history
Work around for sass/libsass#1115
  • Loading branch information
glebm authored and ElMassimo committed Apr 11, 2017
1 parent 229be27 commit e9bb4b8
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 e9bb4b8

Please sign in to comment.