sidebar.less 930 Bytes
Newer Older
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
.sideBar {
    position: fixed;
    display: block;
    right: -140px;
    top: 0;
    width: 200px;
    height: 100%;
    background-color: #FFF;
    overflow: hidden;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 999;
    &>label {
        position: fixed;
        font-size: 36px;
        top: 0px;
        right: 20px;
        &:after {
            content: "≡";
        }
    }
    &>ul {
        padding-top: 20%;
        padding-left: 0%;
    }
    & a {
        font-size: 12px;
        line-height: 20px;
        text-decoration: none;
        text-indent: 12px;
        width: 160px;
        &:visited {
            color: blue;
        }
    }
36
37
38
39
40
41
42
43
44
45
46
47
    input#nav0:checked~& {
        border-left: 1px solid LightGray;
        right: 0px;
        & * {
            display: inline-block;
        }
        label:after {
            content: "×";
        }
    }
    *:not(label) {
        display: none;
48
49
    }
}