Skip to content

Commit bbff739

Browse files
committed
Make appending mdi-version query paramt to urls optional.
1 parent 8e562a3 commit bbff739

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

scss/_path.scss

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
@font-face {
2+
@function mdi-version-string($v, $c) {
3+
$version-string: "";
4+
@if $v and $v != "0" {
5+
$version-string: "#{$c}#{$v}";
6+
}
7+
@return $version-string;
8+
}
9+
210
font-family: '#{$mdi-font-name}';
3-
src: url('#{$mdi-font-path}/#{$mdi-filename}-webfont.eot?v=#{$mdi-version}');
4-
src: url('#{$mdi-font-path}/#{$mdi-filename}-webfont.eot?#iefix&v=#{$mdi-version}') format('embedded-opentype'),
5-
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.woff2?v=#{$mdi-version}') format('woff2'),
6-
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.woff?v=#{$mdi-version}') format('woff'),
7-
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.ttf?v=#{$mdi-version}') format('truetype');
11+
src: url('#{$mdi-font-path}/#{$mdi-filename}-webfont.eot#{mdi-version-string($mdi-version, "?v")}');
12+
src: url('#{$mdi-font-path}/#{$mdi-filename}-webfont.eot?#iefix#{mdi-version-string($mdi-version, "&v=")}') format('embedded-opentype'),
13+
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.woff2#{mdi-version-string($mdi-version, "?v")}') format('woff2'),
14+
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.woff#{mdi-version-string($mdi-version, "?v")}') format('woff'),
15+
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.ttf#{mdi-version-string($mdi-version, "?v")}') format('truetype');
816
font-weight: normal;
917
font-style: normal;
10-
}
18+
}

0 commit comments

Comments
 (0)