aboutsummaryrefslogtreecommitdiff
path: root/sass/function
diff options
context:
space:
mode:
authoreugenesvk2023-05-03 22:54:37 +0700
committerJieiku2023-05-22 23:04:47 -0700
commite2aa6c47fd0e244060c4e4e7941bd7998664c4ce (patch)
treeea49e444f9dc00dd2efb498d186e198e29907fc3 /sass/function
parentca7e31023b335e72eac6ce2f280a11b98b672fee (diff)
downloadabridge-e2aa6c47fd0e244060c4e4e7941bd7998664c4ce.tar.gz
abridge-e2aa6c47fd0e244060c4e4e7941bd7998664c4ce.tar.bz2
abridge-e2aa6c47fd0e244060c4e4e7941bd7998664c4ce.zip
Add font-prepend function
Diffstat (limited to 'sass/function')
-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)