aboutsummaryrefslogtreecommitdiff
path: root/sass/function/_font.sass
diff options
context:
space:
mode:
Diffstat (limited to 'sass/function/_font.sass')
-rw-r--r--sass/function/_font.sass9
1 files changed, 9 insertions, 0 deletions
diff --git a/sass/function/_font.sass b/sass/function/_font.sass
index c2b1165..95704c9 100644
--- a/sass/function/_font.sass
+++ b/sass/function/_font.sass
@@ -17,3 +17,12 @@
$base-pos: list.append($base-pos, $iEl, $separator:comma)
@return list.join(list.join($base-pre, $ext), $base-pos)
+
+@function font-prepend($base, $ext)
+ $ext-type : meta.type-of($ext)
+
+ @if not ($ext-type == 'string') and not ($ext-type == 'list')
+ @debug "⚠ Expected a string or a list, but got '#{$ext-type}' in '#{$ext}'"
+ @return $base
+ @else
+ @return list.join($ext,$base)