diff options
Diffstat (limited to 'src/objects/_sidebar.scss')
| -rw-r--r-- | src/objects/_sidebar.scss | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/objects/_sidebar.scss b/src/objects/_sidebar.scss new file mode 100644 index 0000000..bf8dd59 --- /dev/null +++ b/src/objects/_sidebar.scss | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | @use 'iro-sass/src/index' as iro; | ||
| 2 | @use '../functions' as fn; | ||
| 3 | |||
| 4 | @include iro.props-namespace('sidebar') { | ||
| 5 | @include iro.props-store(( | ||
| 6 | --dims: ( | ||
| 7 | --pad-x: fn.global-dim(--size --75), | ||
| 8 | --pad-y: fn.global-dim(--size --75) | ||
| 9 | ), | ||
| 10 | ), 'dims'); | ||
| 11 | |||
| 12 | @include iro.props-store(( | ||
| 13 | --colors: ( | ||
| 14 | --border: fn.global-color(--obj), | ||
| 15 | ), | ||
| 16 | ), 'colors'); | ||
| 17 | |||
| 18 | @include iro.bem-object(iro.props-namespace()) { | ||
| 19 | border-width: 0 1px 0 0; | ||
| 20 | border-style: solid; | ||
| 21 | border-color: fn.color(--border); | ||
| 22 | |||
| 23 | @include iro.bem-elem('content') { | ||
| 24 | box-sizing: border-box; | ||
| 25 | height: 100%; | ||
| 26 | padding: fn.dim(--pad-y) fn.dim(--pad-x); | ||
| 27 | background-color: fn.global-color(--bg); | ||
| 28 | color: fn.global-color(--fg); | ||
| 29 | } | ||
| 30 | |||
| 31 | @include iro.bem-modifier('right') { | ||
| 32 | border-right-width: 0; | ||
| 33 | border-left-width: 1px; | ||
| 34 | } | ||
| 35 | } | ||
| 36 | } | ||
