diff options
| author | Volpeon <git@volpeon.ink> | 2022-02-06 20:23:11 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2022-02-06 20:23:11 +0100 |
| commit | 9691ccf48f64dd0fac669ae51943907cc8da9b78 (patch) | |
| tree | 01fa18eee29ec1266bbe3d276a8dac6f54390f16 /src/_functions.scss | |
| parent | Fixes (diff) | |
| download | iro-design-9691ccf48f64dd0fac669ae51943907cc8da9b78.tar.gz iro-design-9691ccf48f64dd0fac669ae51943907cc8da9b78.tar.bz2 iro-design-9691ccf48f64dd0fac669ae51943907cc8da9b78.zip | |
Added status indicator and avatar
Diffstat (limited to 'src/_functions.scss')
| -rw-r--r-- | src/_functions.scss | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/_functions.scss b/src/_functions.scss index a649cc2..a11d5f4 100644 --- a/src/_functions.scss +++ b/src/_functions.scss | |||
| @@ -1,19 +1,31 @@ | |||
| 1 | @use 'iro-sass/src/index' as iro; | 1 | @use 'iro-sass/src/index' as iro; |
| 2 | 2 | ||
| 3 | @function color($key, $tree: 'colors', $default: null, $global: false) { | 3 | @function color($key, $tree: 'colors', $default: null, $global: false) { |
| 4 | $new-key: iro.fn-list-prepend($key, --colors); | 4 | $key: iro.fn-list-prepend($key, --colors); |
| 5 | @return iro.props-get($new-key, $tree, $default, $global); | 5 | @return iro.props-get($key, $tree, $default, $global); |
| 6 | } | 6 | } |
| 7 | 7 | ||
| 8 | @function global-color($key, $tree: 'colors', $default: null, $global: true) { | 8 | @function global-color($key, $tree: 'colors', $default: null, $global: true) { |
| 9 | @return color($key, $tree, $default, $global); | 9 | @return color($key, $tree, $default, $global); |
| 10 | } | 10 | } |
| 11 | 11 | ||
| 12 | @function foreign-color($foreign-key, $key, $tree: 'colors', $default: null, $global: true) { | ||
| 13 | $key: iro.fn-list-prepend($key, --colors); | ||
| 14 | $key: iro.fn-list-prepend($key, $foreign-key); | ||
| 15 | @return iro.props-get($key, $tree, $default, $global); | ||
| 16 | } | ||
| 17 | |||
| 12 | @function dim($key, $tree: 'dims', $default: null, $global: false) { | 18 | @function dim($key, $tree: 'dims', $default: null, $global: false) { |
| 13 | $new-key: iro.fn-list-prepend($key, --dims); | 19 | $key: iro.fn-list-prepend($key, --dims); |
| 14 | @return iro.props-get($new-key, $tree, $default, $global); | 20 | @return iro.props-get($key, $tree, $default, $global); |
| 15 | } | 21 | } |
| 16 | 22 | ||
| 17 | @function global-dim($key, $tree: 'dims', $default: null, $global: true) { | 23 | @function global-dim($key, $tree: 'dims', $default: null, $global: true) { |
| 18 | @return dim($key, $tree, $default, $global); | 24 | @return dim($key, $tree, $default, $global); |
| 19 | } | 25 | } |
| 26 | |||
| 27 | @function foreign-dim($foreign-key, $key, $tree: 'dims', $default: null, $global: true) { | ||
| 28 | $key: iro.fn-list-prepend($key, --dims); | ||
| 29 | $key: iro.fn-list-prepend($key, $foreign-key); | ||
| 30 | @return iro.props-get($key, $tree, $default, $global); | ||
| 31 | } | ||
