diff options
| author | Jieiku | 2023-05-22 23:12:14 -0700 |
|---|---|---|
| committer | Jieiku | 2023-05-22 23:12:14 -0700 |
| commit | f81a42045e29cc396af78b5d87ead874ba26fa18 (patch) | |
| tree | 6d73c8fcad4da03d2e8d5d7485079a38adc83a8e /sass/_font-extend.sass | |
| parent | 9543caf10ffdbcc2cea462a8bcb64cee29d406d5 (diff) | |
| download | abridge-f81a42045e29cc396af78b5d87ead874ba26fa18.tar.gz abridge-f81a42045e29cc396af78b5d87ead874ba26fa18.tar.bz2 abridge-f81a42045e29cc396af78b5d87ead874ba26fa18.zip | |
All Variables Easy Override
Diffstat (limited to 'sass/_font-extend.sass')
| -rw-r--r-- | sass/_font-extend.sass | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/sass/_font-extend.sass b/sass/_font-extend.sass deleted file mode 100644 index 9c612c4..0000000 --- a/sass/_font-extend.sass +++ /dev/null @@ -1,35 +0,0 @@ -@use "sass:meta" -@use "variables" as var -@use "function/font" as f - -$findFont-Main : null !default -$findFont-Code : null !default -$fontExt-Main : null !default -$fontExt-Code : null !default - -$typeMain : meta.type-of($fontExt-Main) -$typeCode : meta.type-of($fontExt-Code) - -@if ($typeMain == 'string') or ($typeMain == 'list') - @if ($findFont-Main == null) // prepend - var.$font : f.font-prepend(var.$font, $fontExt-Main) - @else // append - $iFoundFont-Main : index(var.$font , $findFont-Main) - @if $iFoundFont-Main - var.$font : f.font-append( var.$font, $fontExt-Main, $findFont-Main) - @else - @debug "⚠ Failed to find font '#{$findFont-Main}' in the list of '#{var.$font}'" - -@if ($typeMain == 'string') or ($typeMain == 'list') - @if ($findFont-Code == null) // prepend - var.$font-mono : f.font-prepend(var.$font-mono, $fontExt-Code) - @else // append - $iFoundFont-Code : index(var.$font-mono , $findFont-Code) - @if $iFoundFont-Code - var.$font-mono : f.font-append( var.$font-mono, $fontExt-Code, $findFont-Code) - @else - @debug "⚠ Failed to find font '#{$findFont-Code}' in the list of '#{var.$font-mono}'" - -@mixin font-root - #{--ff}: var.$font - #{--fm}: var.$font-mono //code |
