sidebar.less 913 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.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;
    border-left: 1px solid LightGray;
    &>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;
        }
    }
}

.sideBar *:not(label) {
    display: none;
}

input#nav0:checked~.sideBar {
    right: 0px;
    & * {
        display: inline-block;
    }
}

input#nav0:checked~.sideBar label:after {
    content: "×";
}