sidebar.less 1.09 KB
Newer Older
Aria Givi's avatar
Aria Givi committed
1
2
3
4
5
6
#closeSidebar {
    z-index: 998;
    font-size: 36px;
    position: fixed;
    top: 0px;
    right: 20px;
7
    color: grey;
Aria Givi's avatar
Aria Givi committed
8
9
10
    &:after {
        content: "≡";
    }
11
12
13
    &:hover {
        color: rgb(255,128,0);
    }
Aria Givi's avatar
Aria Givi committed
14
15
}

16
17
18
.sideBar {
    position: fixed;
    display: block;
19
20
    right: -260px;
    width: 260px;
21
22
23
24
    height: 100%;
    background-color: #FFF;
    overflow: hidden;
    overflow-y: auto;
Aria Givi's avatar
Aria Givi committed
25
    transition: 0.5s;
26
27
    z-index: 999;
    border-left: 1px solid LightGray;
28
29
30
    & * {
        display: inline-block;
    }
31
    &>label {
Aria Givi's avatar
Aria Givi committed
32
        position: absolute;
33
34
35
        font-size: 36px;
        top: 0px;
        right: 20px;
36
37
38
39
40
41
42
        color: grey;
        &:after {
            content: "×";
        }
        &:hover {
            color: rgb(255,128,0);
        }
43
44
45
46
47
48
49
50
51
52
    }
    &>ul {
        padding-top: 20%;
        padding-left: 0%;
    }
    & a {
        font-size: 12px;
        line-height: 20px;
        text-decoration: none;
        text-indent: 12px;
53
        width: 100%;
54
55
56
57
58
59
        &:visited {
            color: blue;
        }
    }
}

Aria Givi's avatar
Aria Givi committed
60
61
62
input#nav0:checked {
    & ~.sideBar {
        right: 0px;
63
64
    }
}