summaryrefslogtreecommitdiffstats
path: root/assets/sass/modules/_sidebar.scss
blob: 14d2dff21d722709189547277437e9bc50417ea0 (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
#sidebar {
    padding: 1.5rem 1rem;

    // different padding when screen size below width-md(768px)
    @media screen and (max-width: $width-md) {
        border-top: $spliter;
        padding: 1.5rem;
    }

    ul {
        list-style-type: none;

        ul {
            margin: 0 0.5rem;
            font-size: 0.875rem;
        }
    }

    h5 {
        font-size: $font-size-l3;
        margin-bottom: 0.25rem;

        &~div,
        &~ul,
        &~nav {
            margin: 0 0.1rem 1rem 0.1rem;
        }

        &~img {
            margin: 0 0.25rem;
            padding: 0.25rem 0;
            color: $color-secondary;
            width: 100%;
            border-radius: 2px;
            filter: grayscale(50%);

            @media screen and (max-width: $width-md) {
                width: 50%;
            }
        }
    }
}