Skip to content

Commit

Permalink
Make appending mdi-version query paramt to urls optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
sgpinkus committed Nov 29, 2023
1 parent 8e562a3 commit bbff739
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions scss/_path.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
@font-face {
@function mdi-version-string($v, $c) {
$version-string: "";
@if $v and $v != "0" {
$version-string: "#{$c}#{$v}";
}
@return $version-string;
}

font-family: '#{$mdi-font-name}';
src: url('#{$mdi-font-path}/#{$mdi-filename}-webfont.eot?v=#{$mdi-version}');
src: url('#{$mdi-font-path}/#{$mdi-filename}-webfont.eot?#iefix&v=#{$mdi-version}') format('embedded-opentype'),
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.woff2?v=#{$mdi-version}') format('woff2'),
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.woff?v=#{$mdi-version}') format('woff'),
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.ttf?v=#{$mdi-version}') format('truetype');
src: url('#{$mdi-font-path}/#{$mdi-filename}-webfont.eot#{mdi-version-string($mdi-version, "?v")}');
src: url('#{$mdi-font-path}/#{$mdi-filename}-webfont.eot?#iefix#{mdi-version-string($mdi-version, "&v=")}') format('embedded-opentype'),
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.woff2#{mdi-version-string($mdi-version, "?v")}') format('woff2'),
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.woff#{mdi-version-string($mdi-version, "?v")}') format('woff'),
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.ttf#{mdi-version-string($mdi-version, "?v")}') format('truetype');
font-weight: normal;
font-style: normal;
}
}

0 comments on commit bbff739

Please sign in to comment.