diff options
Diffstat (limited to 'src_demo/components/_box.scss')
-rw-r--r-- | src_demo/components/_box.scss | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src_demo/components/_box.scss b/src_demo/components/_box.scss index 21d61c0..d40a8b2 100644 --- a/src_demo/components/_box.scss +++ b/src_demo/components/_box.scss | |||
@@ -1,16 +1,9 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | 1 | @use 'iro-sass/src/bem'; |
2 | @use '../../src/functions' as fn; | 2 | @use 'iro-sass/src/props'; |
3 | @use '../../src/core.vars'; | ||
3 | 4 | ||
4 | @include iro.props-namespace('box') { | 5 | @include bem.component('box') { |
5 | @include iro.props-store(( | 6 | padding: 2em; |
6 | --colors: ( | 7 | margin-block: 2em; |
7 | --border: fn.global-color(--border), | 8 | border: 1px solid props.get(core.$theme, --border); |
8 | ), | ||
9 | )); | ||
10 | |||
11 | @include iro.bem-component(iro.props-namespace()) { | ||
12 | margin-block: 2em; | ||
13 | padding: 2em; | ||
14 | border: 1px solid fn.color(--border); | ||
15 | } | ||
16 | } | 9 | } |