diff options
author | Volpeon <git@volpeon.ink> | 2024-06-22 10:39:48 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-06-22 10:39:48 +0200 |
commit | 1e902449652213eb1feae5e61740cb9ce3b9d6e3 (patch) | |
tree | 1db6b07696d8f2acd138e7eed845718c1fb5237f /src/objects/_divider.scss | |
parent | WIP: Refactoring (diff) | |
download | iro-design-1e902449652213eb1feae5e61740cb9ce3b9d6e3.tar.gz iro-design-1e902449652213eb1feae5e61740cb9ce3b9d6e3.tar.bz2 iro-design-1e902449652213eb1feae5e61740cb9ce3b9d6e3.zip |
WIP: Refactoring
Diffstat (limited to 'src/objects/_divider.scss')
-rw-r--r-- | src/objects/_divider.scss | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/src/objects/_divider.scss b/src/objects/_divider.scss index 465bbcf..3332331 100644 --- a/src/objects/_divider.scss +++ b/src/objects/_divider.scss | |||
@@ -1,5 +1,7 @@ | |||
1 | @use 'sass:map'; | ||
1 | @use 'iro-sass/src/index' as iro; | 2 | @use 'iro-sass/src/index' as iro; |
2 | @use '../functions' as fn; | 3 | @use '../functions' as fn; |
4 | @use '../config'; | ||
3 | 5 | ||
4 | @include iro.props-namespace('divider') { | 6 | @include iro.props-namespace('divider') { |
5 | @include iro.props-store(( | 7 | @include iro.props-store(( |
@@ -32,29 +34,22 @@ | |||
32 | --bg: fn.global-color(--border), | 34 | --bg: fn.global-color(--border), |
33 | --label: fn.global-color(--text-mute-more), | 35 | --label: fn.global-color(--text-mute-more), |
34 | ), | 36 | ), |
35 | --blue: ( | ||
36 | --bg: fn.global-color(--blue --700), | ||
37 | --label: fn.global-color(--blue --1000), | ||
38 | ), | ||
39 | --purple: ( | ||
40 | --bg: fn.global-color(--purple --700), | ||
41 | --label: fn.global-color(--purple --1000), | ||
42 | ), | ||
43 | --red: ( | ||
44 | --bg: fn.global-color(--red --700), | ||
45 | --label: fn.global-color(--red --1000), | ||
46 | ), | ||
47 | --green: ( | ||
48 | --bg: fn.global-color(--green --700), | ||
49 | --label: fn.global-color(--green --1000), | ||
50 | ), | ||
51 | --yellow: ( | ||
52 | --bg: fn.global-color(--yellow --700), | ||
53 | --label: fn.global-color(--yellow --1000), | ||
54 | ), | ||
55 | ), | 37 | ), |
56 | )); | 38 | )); |
57 | 39 | ||
40 | @each $color in map.keys(map.get(config.$themes, config.$theme-default, --palettes)) { | ||
41 | @if $color != '--base' { | ||
42 | @include iro.props-store(( | ||
43 | --colors: ( | ||
44 | $color: ( | ||
45 | --bg: fn.global-color($color --700), | ||
46 | --label: fn.global-color($color --1000), | ||
47 | ) | ||
48 | ), | ||
49 | )); | ||
50 | } | ||
51 | } | ||
52 | |||
58 | @include iro.bem-object(iro.props-namespace()) { | 53 | @include iro.bem-object(iro.props-namespace()) { |
59 | display: flex; | 54 | display: flex; |
60 | flex-direction: row; | 55 | flex-direction: row; |