Skip to content

Commit

Permalink
Fix .menu-item-active::after
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed May 9, 2024
1 parent 6742735 commit 07acb27
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions source/css/_schemes/Pisces/_menu.styl
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,23 @@

a {
padding: 5px 20px;
position: relative;
transition-property: background-color;
menu-item-row();

if (not hexo-config('menu_settings.badges')) {
&.menu-item-active::after {
background: $grey;
border-radius: 50%;
content: ' ';
height: 6px;
margin-top: -3px;
position: absolute;
right: 15px;
top: 50%;
width: 6px;
}
}
}

+tablet-mobile() {
Expand All @@ -20,17 +35,3 @@
}
}
}

if (not hexo-config('menu_settings.badges')) {
.main-menu .menu-item-active::after {
background: $grey;
border-radius: 50%;
content: ' ';
height: 6px;
margin-top: -3px;
position: absolute;
right: 15px;
top: 50%;
width: 6px;
}
}

0 comments on commit 07acb27

Please sign in to comment.