summaryrefslogtreecommitdiffstats
path: root/src/objects/_sidebar.scss
blob: bf8dd594848d9d59d851e318f99f3ffba8c42ace (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@use 'iro-sass/src/index' as iro;
@use '../functions' as fn;

@include iro.props-namespace('sidebar') {
    @include iro.props-store((
        --dims: (
            --pad-x: fn.global-dim(--size --75),
            --pad-y: fn.global-dim(--size --75)
        ),
    ), 'dims');

    @include iro.props-store((
        --colors: (
            --border: fn.global-color(--obj),
        ),
    ), 'colors');

    @include iro.bem-object(iro.props-namespace()) {
        border-width: 0 1px 0 0;
        border-style: solid;
        border-color: fn.color(--border);

        @include iro.bem-elem('content') {
            box-sizing:       border-box;
            height:           100%;
            padding:          fn.dim(--pad-y) fn.dim(--pad-x);
            background-color: fn.global-color(--bg);
            color:            fn.global-color(--fg);
        }

        @include iro.bem-modifier('right') {
            border-right-width: 0;
            border-left-width:  1px;
        }
    }
}