mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Fix .menu-item-active::after style
* See: https://github.com/next-theme/hexo-theme-next/issues/850
This commit is contained in:
parent
5639be9bff
commit
58004e8180
@ -10,12 +10,23 @@
|
||||
|
||||
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 {
|
||||
+tablet-mobile() {
|
||||
&.menu-item-search {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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: ' ';
|
||||
@ -26,12 +37,4 @@
|
||||
top: 50%;
|
||||
width: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+tablet-mobile() {
|
||||
&.menu-item-search {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user