Skip to content

Commit

Permalink
fix background-image is-url checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Black Mirror committed Feb 16, 2018
1 parent ff6c8fa commit 55db109
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scss/mixins/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ $color-modes: array-append((transparent), $css-default-modes);
$url: $u;

@if string-starts-with($u, 'url(') and string-ends-with($u, ')') {
$url: str-slice($u, 5, str-length($u) - 1);
}
// $url: str-slice($u, 5, str-length($u) - 1);
// }

@if string-starts-with($url, '../') or string-starts-with($url, '/') or string-starts-with($url, 'http') {
// @if string-starts-with($url, '../') or string-starts-with($url, '/') or string-starts-with($url, 'http') {
@return true;
}
}
Expand Down

0 comments on commit 55db109

Please sign in to comment.