提交 ae083e4b 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

fix: Solved that click the parent element of secondary menu to jump

上级 22a425fd
......@@ -11,7 +11,10 @@ mixin menuItem(menu)
- isSubMenu = true
div.header-nav-menu-item
a(href=menuPath ? menuPath : "#").header-nav-menu-item__a
a.header-nav-menu-item__a(
href=isSubMenu ? "javascript:;" : menuPath
class=isSubMenu ? "nopointer" : ""
)
if !theme.menu_settings.text_only && !!menuIcon
i(class=`${fa_prefix} fa-${menuIcon}`)
if !theme.menu_settings.icon_only
......
......@@ -2,6 +2,10 @@
clearfix();
}
.nopointer {
pointer-events: none;
}
// UI components
// ----------------------------------------
popover-bg-color = alpha(#000, .7);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册