Skip to content

Commit

Permalink
header
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoxuu committed Nov 26, 2018
1 parent d671c9f commit 79c062c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
12 changes: 6 additions & 6 deletions source/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ var customSearch;
setTimeout(function () { $underline.removeClass('disable-trans') }, 0);//get into the queue.
}
}
$headerMenu.on('mouseenter', 'li', function (e) {
setUnderline($(e.currentTarget));
});
$headerMenu.on('mouseout', function () {
setUnderline();
});
// $headerMenu.on('mouseenter', 'li', function (e) {
// setUnderline($(e.currentTarget));
// });
// $headerMenu.on('mouseout', function () {
// setUnderline();
// });
//set current active nav
var $active_link = null;
if (location.pathname === '/' || location.pathname.startsWith('/page/')) {
Expand Down
20 changes: 13 additions & 7 deletions source/less/_header.less
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@
font-size: @fontsize_base;
color: fade(@theme_text_in_header,60%);
padding: 0 8px;
&.current{
border-bottom: 4px solid fade(@theme_base_card_bg, 80%);
}
&:hover{
color: @theme_text_in_header;
border-bottom: 4px solid @theme_text_header;
background: fade(@theme_text_header, 10%);
}
&.current{
border-bottom: 4px solid @theme_text_header;
border-bottom: 4px solid @theme_base_card_bg;
background: fade(@theme_base_card_bg, 10%);
}
}
@media(max-width: @on_phone){
Expand Down Expand Up @@ -215,12 +215,18 @@
.menu{
ul > li > a{
color: fade(@theme_base_tint,60%);
&:hover,&.active{
&.current{
border-bottom: 4px solid fade(@theme_base_tint, 80%);
}
&:hover{
color: @theme_base_tint;
border-bottom: 4px solid @theme_base_tint;
background: fade(@theme_base_tint, 10%);
}
}
.underline{
background: @theme_base_tint;
// background: @theme_base_tint;
background: transparent;
}
}
.switcher{
Expand Down

0 comments on commit 79c062c

Please sign in to comment.