1
1
html {
2
2
font-family : "Open Sans" , sans-serif;
3
3
color : # 333 ;
4
- overflow-x : hidden;
5
4
}
6
5
body {
7
6
margin : 0 ;
@@ -144,8 +143,12 @@ table thead td {
144
143
.content img {
145
144
max-width : 100% ;
146
145
}
147
- .menu-bar {
148
- position : relative;
146
+ # menu-bar {
147
+ position : sticky;
148
+ top : 0 ;
149
+ z-index : 101 ;
150
+ }
151
+ # menu-bar > # menu-bar-sticky-container {
149
152
display : -webkit-box;
150
153
display : -moz-box;
151
154
display : -webkit-flex;
@@ -158,9 +161,14 @@ table thead td {
158
161
-webkit-flex-wrap : wrap;
159
162
-ms-flex-wrap : wrap;
160
163
flex-wrap : wrap;
161
- }
162
- .menu-bar i ,
163
- .menu-bar .icon-button {
164
+ -webkit-transition : -webkit-transform 0.5s , border-bottom-color 0.5s ;
165
+ -moz-transition : -moz-transform 0.5s , border-bottom-color 0.5s ;
166
+ -o-transition : -o-transform 0.5s , border-bottom-color 0.5s ;
167
+ -ms-transition : -ms-transform 0.5s , border-bottom-color 0.5s ;
168
+ transition : transform 0.5s , border-bottom-color 0.5s ;
169
+ }
170
+ # menu-bar i ,
171
+ # menu-bar .icon-button {
164
172
position : relative;
165
173
margin : 0 10px ;
166
174
z-index : 10 ;
@@ -171,10 +179,17 @@ table thead td {
171
179
-ms-transition : color 0.5s ;
172
180
transition : color 0.5s ;
173
181
}
174
- . menu-bar i : hover ,
175
- . menu-bar .icon-button : hover {
182
+ # menu-bar i : hover ,
183
+ # menu-bar .icon-button : hover {
176
184
cursor : pointer;
177
185
}
186
+ html : not (.sidebar-visible ) # menu-bar : not (: hover ).folded > # menu-bar-sticky-container {
187
+ -webkit-transform : translateY (-60px );
188
+ -moz-transform : translateY (-60px );
189
+ -o-transform : translateY (-60px );
190
+ -ms-transform : translateY (-60px );
191
+ transform : translateY (-60px );
192
+ }
178
193
.menu-title {
179
194
display : inline-block;
180
195
font-weight : 200 ;
@@ -193,19 +208,6 @@ table thead td {
193
208
overflow : hidden;
194
209
-o-text-overflow : ellipsis;
195
210
text-overflow : ellipsis;
196
- opacity : 0 ;
197
- -ms-filter : "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)" ;
198
- filter : alpha (opacity=0);
199
- -webkit-transition : opacity 0.5s ease-in-out;
200
- -moz-transition : opacity 0.5s ease-in-out;
201
- -o-transition : opacity 0.5s ease-in-out;
202
- -ms-transition : opacity 0.5s ease-in-out;
203
- transition : opacity 0.5s ease-in-out;
204
- }
205
- .menu-bar : hover .menu-title {
206
- opacity : 1 ;
207
- -ms-filter : none;
208
- filter : none;
209
211
}
210
212
.nav-chapters {
211
213
font-size : 2.5em ;
@@ -321,6 +323,18 @@ table thead td {
321
323
.light .content .header : visited : hover {
322
324
text-decoration : none;
323
325
}
326
+ .light .menu-bar {
327
+ margin : auto -15px ;
328
+ }
329
+ .light .menu-bar > # menu-bar-sticky-container {
330
+ background-color : # fff ;
331
+ border-bottom-color : # fff ;
332
+ border-bottom-width : 1px ;
333
+ border-bottom-style : solid;
334
+ }
335
+ .light .menu-bar .bordered > # menu-bar-sticky-container {
336
+ border-bottom-color : # f2f2f2 ;
337
+ }
324
338
.light .sidebar {
325
339
background-color : # fafafa ;
326
340
color : # 364149 ;
@@ -463,6 +477,18 @@ table thead td {
463
477
.coal .content .header : visited : hover {
464
478
text-decoration : none;
465
479
}
480
+ .coal .menu-bar {
481
+ margin : auto -15px ;
482
+ }
483
+ .coal .menu-bar > # menu-bar-sticky-container {
484
+ background-color : # 141617 ;
485
+ border-bottom-color : # 141617 ;
486
+ border-bottom-width : 1px ;
487
+ border-bottom-style : solid;
488
+ }
489
+ .coal .menu-bar .bordered > # menu-bar-sticky-container {
490
+ border-bottom-color : # 1f2223 ;
491
+ }
466
492
.coal .sidebar {
467
493
background-color : # 292c2f ;
468
494
color : # a1adb8 ;
@@ -605,6 +631,18 @@ table thead td {
605
631
.navy .content .header : visited : hover {
606
632
text-decoration : none;
607
633
}
634
+ .navy .menu-bar {
635
+ margin : auto -15px ;
636
+ }
637
+ .navy .menu-bar > # menu-bar-sticky-container {
638
+ background-color : # 161923 ;
639
+ border-bottom-color : # 161923 ;
640
+ border-bottom-width : 1px ;
641
+ border-bottom-style : solid;
642
+ }
643
+ .navy .menu-bar .bordered > # menu-bar-sticky-container {
644
+ border-bottom-color : # 1f2331 ;
645
+ }
608
646
.navy .sidebar {
609
647
background-color : # 282d3f ;
610
648
color : # c8c9db ;
@@ -747,6 +785,18 @@ table thead td {
747
785
.rust .content .header : visited : hover {
748
786
text-decoration : none;
749
787
}
788
+ .rust .menu-bar {
789
+ margin : auto -15px ;
790
+ }
791
+ .rust .menu-bar > # menu-bar-sticky-container {
792
+ background-color : # e1e1db ;
793
+ border-bottom-color : # e1e1db ;
794
+ border-bottom-width : 1px ;
795
+ border-bottom-style : solid;
796
+ }
797
+ .rust .menu-bar .bordered > # menu-bar-sticky-container {
798
+ border-bottom-color : # d7d7cf ;
799
+ }
750
800
.rust .sidebar {
751
801
background-color : # 3b2e2a ;
752
802
color : # c8c9db ;
@@ -889,6 +939,18 @@ table thead td {
889
939
.ayu .content .header : visited : hover {
890
940
text-decoration : none;
891
941
}
942
+ .ayu .menu-bar {
943
+ margin : auto -15px ;
944
+ }
945
+ .ayu .menu-bar > # menu-bar-sticky-container {
946
+ background-color : # 0f1419 ;
947
+ border-bottom-color : # 0f1419 ;
948
+ border-bottom-width : 1px ;
949
+ border-bottom-style : solid;
950
+ }
951
+ .ayu .menu-bar .bordered > # menu-bar-sticky-container {
952
+ border-bottom-color : # 182028 ;
953
+ }
892
954
.ayu .sidebar {
893
955
background-color : # 14191f ;
894
956
color : # c8c9db ;
0 commit comments