sidebar.less 974 Bytes
Newer Older
Aria Givi's avatar
Aria Givi committed
1
2
3
4
5
6
7
8
9
10
11
#closeSidebar {
    z-index: 998;
    font-size: 36px;
    position: fixed;
    top: 0px;
    right: 20px;
    &:after {
        content: "≡";
    }
}

12
13
14
.sideBar {
    position: fixed;
    display: block;
15
16
    right: -260px;
    width: 260px;
17
18
19
20
    height: 100%;
    background-color: #FFF;
    overflow: hidden;
    overflow-y: auto;
Aria Givi's avatar
Aria Givi committed
21
    transition: 0.5s;
22
23
    z-index: 999;
    border-left: 1px solid LightGray;
24
25
26
    & * {
        display: inline-block;
    }
27
    &>label {
Aria Givi's avatar
Aria Givi committed
28
        position: absolute;
29
30
31
32
33
34
35
36
37
38
39
40
41
        font-size: 36px;
        top: 0px;
        right: 20px;
    }
    &>ul {
        padding-top: 20%;
        padding-left: 0%;
    }
    & a {
        font-size: 12px;
        line-height: 20px;
        text-decoration: none;
        text-indent: 12px;
42
        width: 100%;
43
44
45
46
47
48
        &:visited {
            color: blue;
        }
    }
}

Aria Givi's avatar
Aria Givi committed
49
50
51
input#nav0:checked {
    & ~.sideBar {
        right: 0px;
52
53
54
55
56
57
    }
}

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