sidebar.less 3.83 KB
Newer Older
1
2
/* Navigations-Seitenleiste */

3
4
5
.sideBar {
    position: fixed;
    display: block;
6
    top: 0px;
7
8
    right: -270px;
    width: 270px;
9
    height: 100%;
10
    padding-top: 70px;
11
12
13
    overflow: hidden;
    overflow-y: auto;
    z-index: 999;
Aria Givi's avatar
Aria Givi committed
14
    background-color: white;
15
    transition: 0.5s;
16
    border-left: none;
17
    &>label#closeSidebar {
Aria Givi's avatar
Aria Givi committed
18
        position: absolute;
19
20
21
        font-size: 36px;
        top: 0px;
        right: 20px;
22
        color: grey;
23
        &:after {
24
25
26
            content: "×";
        }
        &:hover {
27
            color: rgb(255, 128, 0);
28
29
30
31
32
        }
    }
    &>ul {
        padding-top: 20%;
    }
33
    #metager-static-nav-list>li {
34
        width: 100%;
35
36
        padding-top: 3%;
        padding-bottom: 3%;
37
        border-bottom: 1px solid LightGray;
38
39
        &:hover {
            background-color: @metager-navbar-toggle-hover-background-color;
40
41
42
        }
        &>label {
            font-size: 16px;
Aria Givi's avatar
Aria Givi committed
43
            font-weight: normal;
44
45
            text-decoration: none;
            text-indent: 12px;
Aria Givi's avatar
Aria Givi committed
46
47
            color: black;
            line-height: 20px;
48
49
50
51
52
            display: inline-block;
            width: 100%;
            &:hover {
                color: red;
            }
53
54
        }
    }
55
    .metager-dropdown-menu {
Aria Givi's avatar
Aria Givi committed
56
57
58
        min-width: 160px;
        max-height: 0px;
        text-align: left;
59
60
61
62
        list-style-type: none;
        z-index: 1000;
        float: left;
        overflow: hidden;
Aria Givi's avatar
Aria Givi committed
63
        transition: 0.5s ease;
64
65
66
67
68
69
70
71
        &>li>a {
            display: block;
            font-size: 12px;
            padding: 3px 20px;
            width: 100%;
            clear: both;
            font-weight: normal;
            line-height: 1.42857143;
72
            border-top: 1px solid LightGray;
73
            margin-left: 2px;
74
75
76
77
78
79
80
81
82
83
84
            &:hover {
                text-decoration: none;
            }
        }
        label:after {
            #navbar-static-pages {
                z-index: 4;
                width: 100%;
            }
        }
    }
85
    a {
86
        font-size: 16px;
87
88
89
        line-height: 20px;
        text-decoration: none;
        text-indent: 12px;
Aria Givi's avatar
Aria Givi committed
90
        display: inline-block;
91
        width: 100%;
92
        color: black;
93
94
        &:hover {
            color: red;
95
96
        }
    }
Aria Givi's avatar
Aria Givi committed
97
    
98
    p {
99
100
        width: 90%;
        text-align: center;
101
102
        font-weight: bold;
        font-style: italic;
103
        font-size: large;
104
        background-color: rgb(255, 128, 0);
105
        border-radius: .25em;
Aria Givi's avatar
Aria Givi committed
106
107
108
109
        margin: 5%;
        color: white;
        font-size: 30px;
        line-height: 35px;
110
    }
Aria Givi's avatar
Aria Givi committed
111
    
112
    .caret {
113
114
115
116
        position: absolute;
        left: 90%;
        margin-top: 8px;
    }
117
    input.sideBarCheckbox {
118
119
        display: none;
        &:checked {
120
            &~.metager-dropdown-menu {
Aria Givi's avatar
Aria Givi committed
121
122
                max-height: 1000px;
                padding: 5px 0;
123
            }
124
125
126
127
            &~label>.caret {
                border-top: 0 solid;
                border-bottom: 4px solid;
                transition: border-top .1s, border-bottom .1s .1s;
128
129
            }
        }
130
        &:not(:checked) {
131
            &~.metager-dropdown-menu {
Aria Givi's avatar
Aria Givi committed
132
                padding: 0px 0;
133
134
            }
        }
135
    }
136
137
138
    input#nav0:checked~& {
        border-left: 1px solid LightGray;
    }
139
140
}

Aria Givi's avatar
Aria Givi committed
141
input#sideBarToggle:checked {
142
    &~.sideBar {
Aria Givi's avatar
Aria Givi committed
143
144
145
146
        right: 0px;
    }
}

147
148
label#openSidebar {
    position: fixed;
149
150
    top: 23px;
    right: 25px;
151
152
    z-index: 998;
    font-size: 36px;
153
    line-height: 23px;
154
    border-radius: 5px;
155
    color: grey;
156
    background-color: white;
157
158
159
160
    &:after {
        content: "≡";
    }
    &:hover {
161
        color: rgb(255, 128, 0);
162
    }
163
    .noprint;
164
165
}

166
@media (max-width: @screen-xs-max) {
167
168
169
170
    .sideBar {
        right: -90%;
        width: 90%;
        overflow: auto;
171
172
173
174
175
176
177
178
    }
    #metager-static-nav-list:target {
        max-height: 1000px;
    }
    ul.metager-dropdown-menu {
        position: inherit;
        width: 100%;
    }
Aria Givi's avatar
Aria Givi committed
179
}