Skip to content

Commit

Permalink
fix background image issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Black Mirror committed Feb 16, 2018
1 parent 3112a6e commit ffeedf6
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 @@ -51,7 +51,7 @@ $color-modes: array-append((transparent), $css-default-modes);

@function string-starts-with($h, $n) {
@if is-string($h) and is-string($n) {
@return str-slice($h, 1, str-length($n)) == $n;
@return str-slice($h, 1, str-length($n))==$n;
}

@warn '`haystack: #{$h}` and `needle: #{$n}` are not valid strings';
Expand All @@ -72,7 +72,7 @@ $color-modes: array-append((transparent), $css-default-modes);
$h-length: str-length($h);
$n-length: str-length($n);

@return str-slice($h, $h-length - $n-length, $n-length) == $n;
@return str-slice($h, $h-length - $n-length, $n-length)==$n;
}

@warn '`haystack: #{$h}` and `needle: #{$n}` are not valid strings';
Expand All @@ -87,7 +87,7 @@ $color-modes: array-append((transparent), $css-default-modes);
$url: str-slice($u, 5, str-length($u) - 1);
}

@if 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 ffeedf6

Please sign in to comment.