Skip to content

Commit

Permalink
Fix .menu-item-active::after style
Browse files Browse the repository at this point in the history
* See: #850
  • Loading branch information
stevenjoezhang committed Nov 26, 2024
1 parent 5639be9 commit 58004e8
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions source/css/_schemes/Pisces/_menu.styl
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,10 @@

a {
padding: 5px 20px;
// For .menu-item-active::after
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 @@ -35,3 +22,19 @@
}
}
}

if (not hexo-config('menu_settings.badges')) {
// Only apply to the main menu
// Fix issue #850
.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 58004e8

Please sign in to comment.