summaryrefslogtreecommitdiffstats
path: root/src/_sidebar.scss
blob: 5957d3a5b385c16ab6292678738ad9ad8faea361 (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
56
57
58
59
60
61
62
63
64
65
66
67
@use 'iro-sass/src/props';

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

@mixin styles {
    .boxesSidebarLeft{
        margin-inline-end: 30px;
    }

    .boxesSidebarRight {
        margin-inline-start: 30px;
    }

    .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(common.$vlpnBg);
            }
        }

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

    @media screen and (max-width: 1024px) {
        .boxesSidebarLeft{
            margin-inline-end: 0;
        }
    
        .boxesSidebarRight {
            margin-inline-start: 0;
        }

        .boxesSidebarLeft, .boxesSidebarRight {
            .box {
                border-radius: 0;
    
                &:not(:first-child) {
                    padding-start: 20px 10px;
    
                    &::before {
                        display: none;
                    }
                }
            }
        }
    }
}