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/_sidebar.scss | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src_demo/components/_sidebar.scss (limited to 'src_demo/components/_sidebar.scss') 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 @@ +@use 'iro-sass/src/index' as iro; +@use '../../src/functions' as fn; + +@include iro.props-namespace('sidebar') { + @include iro.props-store(( + --colors: ( + --bg: fn.global-color(--bg), + --border: fn.global-color(--obj), + --icon: fn.global-color(--fg-hi), + --group-header-fg: fn.global-color(--fg-hi), + ), + ), 'colors'); + + @include iro.props-store(( + --colors: ( + --bg: fn.global-color(--bg-hi), + --border: fn.global-color(--bg-hi), + ), + ), 'colors-dark'); + + @include iro.bem-component(iro.props-namespace()) { + grid-area: sidebar; + min-width: 10em; + padding: .6em; + overflow: auto; + border-right: 1px solid fn.color(--border); + background-color: fn.color(--bg); + } +} -- cgit v1.2.3-70-g09d2