diff options
Diffstat (limited to 'src_demo/components/_sidebar.scss')
| -rw-r--r-- | src_demo/components/_sidebar.scss | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src_demo/components/_sidebar.scss b/src_demo/components/_sidebar.scss new file mode 100644 index 0000000..9cff3c8 --- /dev/null +++ b/src_demo/components/_sidebar.scss | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | @use 'iro-sass/src/index' as iro; | ||
| 2 | @use '../../src/functions' as fn; | ||
| 3 | |||
| 4 | @include iro.props-namespace('sidebar') { | ||
| 5 | @include iro.props-store(( | ||
| 6 | --colors: ( | ||
| 7 | --bg: fn.global-color(--bg), | ||
| 8 | --border: fn.global-color(--obj), | ||
| 9 | --icon: fn.global-color(--fg-hi), | ||
| 10 | --group-header-fg: fn.global-color(--fg-hi), | ||
| 11 | ), | ||
| 12 | ), 'colors'); | ||
| 13 | |||
| 14 | @include iro.props-store(( | ||
| 15 | --colors: ( | ||
| 16 | --bg: fn.global-color(--bg-hi), | ||
| 17 | --border: fn.global-color(--bg-hi), | ||
| 18 | ), | ||
| 19 | ), 'colors-dark'); | ||
| 20 | |||
| 21 | @include iro.bem-component(iro.props-namespace()) { | ||
| 22 | grid-area: sidebar; | ||
| 23 | min-width: 10em; | ||
| 24 | padding: .6em; | ||
| 25 | overflow: auto; | ||
| 26 | border-right: 1px solid fn.color(--border); | ||
| 27 | background-color: fn.color(--bg); | ||
| 28 | } | ||
| 29 | } | ||
