sidebar.less 6.48 KB
Newer Older
1
.sidebar {
2
    border-left: 1px solid @border-color;
3
    box-shadow: 0px 1px 1.5px 1px #c0c0c0;
4
5
    position: fixed;
    display: block;
6
    top: 0px;
7
8
    right: -270px;
    width: 270px;
9
    height: 100%;
10
    padding-top: 55px;
11
12
    overflow: hidden;
    overflow-y: auto;
13
    z-index: 10;
Aria Givi's avatar
Aria Givi committed
14
15
    background-color: @background-color;
    color: @text-color;
16
    transition: 0.5s;
17
    border-left: none;
18

19
    .sidebar-logo {
20
        >span {
21
22
23
24
25
            display: block;
            margin: 20px;
            padding: 10px 0;
            text-align: center;
            border-radius: 10px;
26

27
28
29
30
            >img {
                width: 10em;
            }
        }
31
    }
32

33
    .sidebar-list {
34
35
36
        padding-left: 0;
        list-style: none;
        margin-left: -5px;
37

38
        &>li {
39
            width: 100%;
40

41
            &:hover {
Aria Givi's avatar
Aria Givi committed
42
                background-color: @sidebar-list-hover-color;
43
            }
44

45
46
            &>label,
            &>a {
47
                padding: 10px 0px;
48

49
50
51
                &:focus {
                    outline: none;
                }
52

53
54
55
56
57
                &>i.fa {
                    width: 30px;
                    text-align: center;
                    margin-right: 7px;
                }
58

Davide's avatar
Davide committed
59
60
61
                &>img {
                    filter: invert(@icon-color);
                }
62
            }
63

64
            &>label {
65
                font-size: 1.1em;
66
67
68
                font-weight: normal;
                text-decoration: none;
                text-indent: 12px;
Aria Givi's avatar
Aria Givi committed
69
                color: @text-color;
70
71
72
                line-height: 20px;
                display: inline-block;
                width: 100%;
73
74
75

                &:hover,
                &:focus {
76
77
                    color: red;
                }
78
            }
79
80
        }
    }
81

82
    .metager-dropdown-content {
83
        display: none;
Aria Givi's avatar
Aria Givi committed
84
85
86
        min-width: 160px;
        max-height: 0px;
        text-align: left;
87
        list-style-type: none;
88
        z-index: 30;
89
        overflow: hidden;
Aria Givi's avatar
Aria Givi committed
90
        transition: 0.5s ease;
91

92
93
        &>li>a {
            display: block;
94
            font-size: .9em;
95
            padding: 6px 20px;
96
97
98
99
            width: 100%;
            clear: both;
            font-weight: normal;
            line-height: 1.42857143;
100
            margin-left: 2px;
101

102
103
104
105
            &:hover {
                text-decoration: none;
            }
        }
106

107
108
        label:after {
            #navbar-static-pages {
109
                z-index: 40;
110
111
112
113
                width: 100%;
            }
        }
    }
114

115
    a {
116
        font-size: 1.1em;
117
118
119
        line-height: 20px;
        text-decoration: none;
        text-indent: 12px;
Aria Givi's avatar
Aria Givi committed
120
        display: inline-block;
121
        width: 100%;
Aria Givi's avatar
Aria Givi committed
122
        color: @text-color;
123
124
125

        &:hover,
        &:focus {
126
            color: red;
127
128
        }
    }
129

130
    p {
131
132
        width: 90%;
        text-align: center;
133
134
        font-weight: bold;
        font-style: italic;
135
        font-size: large;
Karl Hasselbring's avatar
Karl Hasselbring committed
136
        background-color: @metager-orange;
137
        border-radius: .25em;
Aria Givi's avatar
Aria Givi committed
138
139
140
141
        margin: 5%;
        color: white;
        font-size: 30px;
        line-height: 35px;
142
    }
143

144
    .caret {
145
146
147
148
        position: absolute;
        left: 90%;
        margin-top: 8px;
    }
149

150
    input.sidebarCheckbox {
151
        display: none;
152

153
        &:checked {
154
            &~.metager-dropdown-content {
155
                display: initial;
Aria Givi's avatar
Aria Givi committed
156
                max-height: 1000px;
157
                padding: 0px 0px 0px 0px;
158
            }
159

160
161
162
163
            &~label>.caret {
                border-top: 0 solid;
                border-bottom: 4px solid;
                transition: border-top .1s, border-bottom .1s .1s;
164
165
            }
        }
166

167
        &:not(:checked) {
168
            &~.metager-dropdown-content {
Aria Givi's avatar
Aria Givi committed
169
                padding: 0px 0;
170
171
            }
        }
172
    }
173

174
175
176
    input#nav0:checked~& {
        border-left: 1px solid LightGray;
    }
177

178
179
180
181
    hr {
        margin: 0px;
        border-color: #e0e0e0;
    }
182
183
}

184
185
186
187
188
189
@media(max-height: 635px) {
    .sidebar .sidebar-logo {
        display: none;
    }
}

190
191
192
193
194
195
@media (max-width: @screen-mobile) {
    .sidebar {
        padding-top: 15px;
        right: -90%;
        width: 90%;
        overflow: auto;
196

197
198
199
        .sidebar-list {
            max-height: 1000px;
        }
200

201
202
203
        ul.metager-dropdown-content {
            position: inherit;
            width: 100%;
204
205
        }
    }
206

207
208
209
210
211
212
213
    .sidebar-opener {
        // Make the open and close button bigger, so it is easier to hit
        @sidebar-opener-mobile-magnification: 10px;
        margin: @sidebar-opener-mobile-magnification;
        top: (@sidebar-opener-position-top - @sidebar-opener-mobile-magnification);
        right: (@sidebar-opener-position-right - @sidebar-opener-mobile-magnification);
    }
214

215
216
217
    .sidebar-opener-placeholder {
        display: initial;
    }
Aria Givi's avatar
Aria Givi committed
218
219
}

220
221
/* Sidebar opener */

222
// Top right starting position of the sidebar icon
Dominik Hebeler's avatar
Dominik Hebeler committed
223
@sidebar-opener-position-top: 22px;
224
@sidebar-opener-position-right: 25px;
225

226
227
.sidebar-opener {
    position: fixed;
228
229
    top: @sidebar-opener-position-top;
    right: @sidebar-opener-position-right;
230
231
    margin: 0px;
    z-index: 20;
232
    font-size: 36px;
233
    line-height: 23px;
234
    border-radius: 5px;
235
    color: grey;
Dominik Hebeler's avatar
Dominik Hebeler committed
236
    background-color: transparent;
237

238
239
240
    &:after {
        content: "≡";
    }
241

242
    &:hover {
Karl Hasselbring's avatar
Karl Hasselbring committed
243
        color: @metager-orange;
244
245
246
    }
}

247
248
249
250
251
.sidebar-opener-placeholder {
    display: none;
    width: 45px;
}

252
/* Sidebar toggle checkbox */
253
#sidebarToggle {
254
255
    display: none;
}
256
257
258
259

#sidebarToggle:checked {
    &~.sidebar {
        right: 0px;
260
    }
261

262
263
264
265
    &~.sidebar-opener {
        &:after {
            content: "×";
        }
266
    }
267
}
268

269
#sidebar-img-app {
270
271
272
    height: 20px;
    margin-right: 13px;
    margin-left: 13px;
273
}
274

275
276
#sidebar-img-lock {
    height: 20px;
277
278
    margin-right: 10px;
    margin-left: 10px;
279
}
280
281
282

#sidebar-img-help {
    height: 20px;
283
    margin-right: 15px;
284
285
    margin-left: 15px;
}
286
287
288

#sidebar-img-donate {
    height: 20px;
289
290
    margin-right: 7px;
    margin-left: 9px;
291
}
292
293
294
295
296

#sidebar-img-member {
    height: 20px;
    margin-right: 8px;
    margin-left: 12px;
297
}
298

299
#sidebar-img-contact {
300
301
302
    height: 13px;
    margin-left: 10px;
    margin-right: 8px;
303
}
304

305
306
#sidebar-img-language {
    height: 20px;
307
308
    margin-right: 9px;
    margin-left: 12px;
309
}
310

311
#sidebar-img-services {
312
    height: 20px;
313
314
    margin-right: 9px;
    margin-left: 10px;
315
}
316
317

#sidebar-img-map {
318
    height: 15px;
319
320
    margin-left: 10px;
    ;
321
322
    margin-right: 9px;
}
323

324
#sidebar-img-lupe {
Kim Höfer's avatar
Kim Höfer committed
325

326
    height: 20px;
327
328
329
    margin-left: 10px;
    margin-right: 8px;
}
330

331
332
333
#sidebar-img-outlink {
    height: 20px;
    margin-left: 10px;
334

335
}
336

337
#sidebar-img-info {
338
339
340
    height: 18px;
    margin-top: -4px;
    margin-left: 7px;
341
    margin-right: 8px;
342

343
}