Skip to content

Commit 79c062c

Browse files
committed
header
1 parent d671c9f commit 79c062c

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

source/js/app.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ var customSearch;
7272
setTimeout(function () { $underline.removeClass('disable-trans') }, 0);//get into the queue.
7373
}
7474
}
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+
// });
8181
//set current active nav
8282
var $active_link = null;
8383
if (location.pathname === '/' || location.pathname.startsWith('/page/')) {

source/less/_header.less

+13-7
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@
7474
font-size: @fontsize_base;
7575
color: fade(@theme_text_in_header,60%);
7676
padding: 0 8px;
77+
&.current{
78+
border-bottom: 4px solid fade(@theme_base_card_bg, 80%);
79+
}
7780
&:hover{
7881
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%);
8484
}
8585
}
8686
@media(max-width: @on_phone){
@@ -215,12 +215,18 @@
215215
.menu{
216216
ul > li > a{
217217
color: fade(@theme_base_tint,60%);
218-
&:hover,&.active{
218+
&.current{
219+
border-bottom: 4px solid fade(@theme_base_tint, 80%);
220+
}
221+
&:hover{
219222
color: @theme_base_tint;
223+
border-bottom: 4px solid @theme_base_tint;
224+
background: fade(@theme_base_tint, 10%);
220225
}
221226
}
222227
.underline{
223-
background: @theme_base_tint;
228+
// background: @theme_base_tint;
229+
background: transparent;
224230
}
225231
}
226232
.switcher{

0 commit comments

Comments
 (0)