diff options
| author | eugenesvk | 2023-05-03 22:54:37 +0700 |
|---|---|---|
| committer | Jieiku | 2023-05-22 23:04:47 -0700 |
| commit | e2aa6c47fd0e244060c4e4e7941bd7998664c4ce (patch) | |
| tree | ea49e444f9dc00dd2efb498d186e198e29907fc3 /sass/function | |
| parent | ca7e31023b335e72eac6ce2f280a11b98b672fee (diff) | |
| download | abridge-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.sass | 9 |
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) |
