From 5e2696d9ae35b37a9f7d0fe1c52b93fb84570464 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 25 Mar 2022 18:29:21 +0100 Subject: Split demo in :target views --- src_demo/components/_box.scss | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src_demo/components/_box.scss (limited to 'src_demo/components/_box.scss') diff --git a/src_demo/components/_box.scss b/src_demo/components/_box.scss new file mode 100644 index 0000000..e983f2c --- /dev/null +++ b/src_demo/components/_box.scss @@ -0,0 +1,16 @@ +@use 'iro-sass/src/index' as iro; +@use '../../src/functions' as fn; + +@include iro.props-namespace('box') { + @include iro.props-store(( + --colors: ( + --border: fn.global-color(--obj), + ), + ), 'colors'); + + @include iro.bem-component(iro.props-namespace()) { + margin: 2em 0; + padding: 2em; + border: 1px solid fn.color(--border); + } +} -- cgit v1.2.3-70-g09d2