File tree 2 files changed +19
-13
lines changed
2 files changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,12 @@ var customSearch;
72
72
setTimeout ( function ( ) { $underline . removeClass ( 'disable-trans' ) } , 0 ) ; //get into the queue.
73
73
}
74
74
}
75
- $headerMenu . on ( 'mouseenter' , 'li' , function ( e ) {
76
- setUnderline ( $ ( e . currentTarget ) ) ;
77
- } ) ;
78
- $headerMenu . on ( 'mouseout' , function ( ) {
79
- setUnderline ( ) ;
80
- } ) ;
75
+ // $headerMenu.on('mouseenter', 'li', function (e) {
76
+ // setUnderline($(e.currentTarget));
77
+ // });
78
+ // $headerMenu.on('mouseout', function () {
79
+ // setUnderline();
80
+ // });
81
81
//set current active nav
82
82
var $active_link = null ;
83
83
if ( location . pathname === '/' || location . pathname . startsWith ( '/page/' ) ) {
Original file line number Diff line number Diff line change 74
74
font-size : @fontsize_base ;
75
75
color : fade (@theme_text_in_header ,60% );
76
76
padding : 0 8px ;
77
+ & .current {
78
+ border-bottom : 4px solid fade (@theme_base_card_bg , 80% );
79
+ }
77
80
& :hover {
78
81
color : @theme_text_in_header ;
79
- border-bottom : 4px solid @theme_text_header ;
80
- background : fade (@theme_text_header , 10% );
81
- }
82
- & .current {
83
- border-bottom : 4px solid @theme_text_header ;
82
+ border-bottom : 4px solid @theme_base_card_bg ;
83
+ background : fade (@theme_base_card_bg , 10% );
84
84
}
85
85
}
86
86
@media (max-width : @on_phone ){
215
215
.menu {
216
216
ul > li > a {
217
217
color : fade (@theme_base_tint ,60% );
218
- & :hover ,& .active {
218
+ & .current {
219
+ border-bottom : 4px solid fade (@theme_base_tint , 80% );
220
+ }
221
+ & :hover {
219
222
color : @theme_base_tint ;
223
+ border-bottom : 4px solid @theme_base_tint ;
224
+ background : fade (@theme_base_tint , 10% );
220
225
}
221
226
}
222
227
.underline {
223
- background : @theme_base_tint ;
228
+ // background: @theme_base_tint;
229
+ background : transparent ;
224
230
}
225
231
}
226
232
.switcher {
You can’t perform that action at this time.
0 commit comments