summaryrefslogtreecommitdiffstats
path: root/src/_sidebar.scss
blob: e200106a6a0f1a938ec2e59939030ff230b8ce3a (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@use 'iro-sass/src/props';

@use 'core';
@use 'common';

@mixin styles {
    .boxesSidebarLeft, .boxesSidebarRight {
        .box {
            border-radius: 0;

            &:not(:first-child) {
                margin-block-start: 0;
                padding-block-start: 10px;

                &::before {
                    content: "";
                    display: block;
                    block-size: 1px;
                    margin-block-end: 30px;
                    background-color: props.get(core.$theme, --base, --200);
                }
            }

            &:not(.boxBorderless) {
                background-color: props.get(core.$theme, --bg-l1);
            }
        }

        a {
            &:hover {
                text-decoration: underline;
            }
        }
    }

    .userAvatarList > li > a > img {
        border-color: props.get(core.$theme, --bg-l1);
    }

    @media screen and (max-width: 1024px) {
        .boxesSidebarLeft, .boxesSidebarRight {
            .box {
                border-radius: 0;
    
                &:not(:first-child) {
                    padding-start: 20px 10px;
    
                    &::before {
                        display: none;
                    }
                }
            }
        }
    }
}