File tree 3 files changed +53
-10
lines changed
3 files changed +53
-10
lines changed Original file line number Diff line number Diff line change 19
19
text-align : center;
20
20
font-size : 14px ;
21
21
}
22
+
22
23
.nav-side-menu .toggle-btn {
23
24
display : none;
24
25
}
26
+
27
+ .nav-side-menu .btn {
28
+ display : block;
29
+ padding : 3px ;
30
+ width : 40px ;
31
+ }
32
+
33
+ .brand button {
34
+ margin-top : 4px ;
35
+ margin-right : 15px ;
36
+ float : right;
37
+ }
38
+
25
39
.nav-side-menu .song {
26
40
padding-left : 10px ;
27
41
}
126
140
}
127
141
.nav-side-menu .toggle-btn {
128
142
display : block;
143
+ }
144
+
145
+ .nav-side-menu .btn {
129
146
cursor : pointer;
130
- position : absolute;
131
147
right : 7vw ;
132
148
top : 15px ;
133
149
z-index : 10 !important ;
134
- padding : 3px ;
135
150
background-color : # ffffff ;
136
151
color : # 000 ;
137
- width : 40px ;
138
152
text-align : center;
139
153
}
140
154
.brand {
@@ -218,10 +232,9 @@ body {
218
232
width : 100% ;
219
233
margin-bottom : 10px ;
220
234
}
221
- .nav-side-menu .sub-menu .toggle- btn {
235
+ .nav-side-menu .sub-menu .btn {
222
236
display : block;
223
237
cursor : pointer;
224
- position : absolute;
225
238
right : 10px ;
226
239
top : 10px ;
227
240
z-index : 10 !important ;
@@ -292,10 +305,9 @@ body {
292
305
width : 100% ;
293
306
margin-bottom : 10px ;
294
307
}
295
- .sub-line .toggle- btn {
308
+ .sub-line .btn {
296
309
display : block;
297
310
cursor : pointer;
298
- position : absolute;
299
311
right : 10px ;
300
312
top : 10px ;
301
313
z-index : 10 !important ;
@@ -333,4 +345,9 @@ body {
333
345
334
346
.container {
335
347
width : 100vw ;
348
+ }
349
+
350
+ .dark-mode {
351
+ background-color : # 2e353d ;
352
+ color : # e1ffff ;
336
353
}
Original file line number Diff line number Diff line change @@ -1086,4 +1086,13 @@ function getArtifact() {
1086
1086
}
1087
1087
}
1088
1088
} )
1089
- }
1089
+ }
1090
+
1091
+ function darkMode ( ) {
1092
+ var element = document . body ;
1093
+ element . classList . toggle ( "dark-mode" ) ;
1094
+ }
1095
+
1096
+ function collapse ( ) {
1097
+ $ ( "#menu-content" ) . collapse ( 'toggle' ) ;
1098
+ }
Original file line number Diff line number Diff line change 28
28
29
29
< body >
30
30
< div class ="p-2 nav-side-menu ">
31
- < div class ="brand "> Śpiewnik HK</ div >
32
- < i class ="fa fa-bars fa-2x toggle-btn " data-toggle ="collapse " data-target ="#menu-content "> </ i >
31
+ < div class ="brand "> Śpiewnik HK
32
+ < button onclick ="collapse() " class ="toggle-btn "> < i class ="fa fa-bars fa-2x btn "> </ i > </ button >
33
+ < button onclick ="darkMode() "> < i class ="fa fa-moon-o fa-2x btn "> </ i > </ button >
34
+ </ div >
33
35
< div class ="menu-list ">
34
36
< ul id ="menu-content " class ="menu-content collapse out {{'show' if filterString else ''}} ">
35
37
< li data-toggle ="collapse " data-target ="#search ">
59
61
</ div >
60
62
</ div >
61
63
{% autoescape false %}
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
62
79
< div class ="main " style ="overflow: auto; ">
63
80
{% if song %}
64
81
< div class ="d-flex flex-column ">
You can’t perform that action at this time.
0 commit comments