diff options
Diffstat (limited to 'src_demo/components/_box.scss')
-rw-r--r-- | src_demo/components/_box.scss | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src_demo/components/_box.scss b/src_demo/components/_box.scss index c746c33..ac217c0 100644 --- a/src_demo/components/_box.scss +++ b/src_demo/components/_box.scss | |||
@@ -1,16 +1,9 @@ | |||
1 | @use 'iro-sass/src/iro-sass' as iro; | 1 | @use 'iro-sass/src/iro-sass' as iro; |
2 | @use '../../src/functions' as fn; | 2 | @use '../../src/props'; |
3 | @use '../../src/core.vars'; | ||
3 | 4 | ||
4 | @include iro.props-namespace('box') { | 5 | @include iro.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 | } |