Sha256: ee2698847b0023b6eab77c0fa9fce268f80bc6e0e8f773d9b27fcb9814dba2c9
Contents?: true
Size: 861 Bytes
Versions: 29
Compression:
Stored size: 861 Bytes
Contents
@function str-replace($string, $search, $replace: "") $index: str-index($string, $search) @if $index @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace) @return $string =font-face($name, $path, $weight: null, $style: null, $exts: woff2 woff ttf) $src: null //$extmods: (eot: "?", svg: "#" + str-replace($name, " ", "_")) $extmods: () $formats: (otf: "opentype", ttf: "truetype") @each $ext in $exts $extmod: if(map-has-key($extmods, $ext), $ext + map-get($extmods, $ext), $ext) $format: if(map-has-key($formats, $ext), map-get($formats, $ext), $ext) $src: append($src, url(quote($path + "." + $extmod)) format(quote($format)), comma) @font-face font-family: quote($name) font-style: $style font-weight: $weight src: $src
Version data entries
29 entries across 29 versions & 1 rubygems