三级菜单
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2026-01-10 17:29:09 +08:00
parent db480e09f2
commit 70d3e261b0

View File

@@ -117,14 +117,15 @@
margin-top: 20px; margin-top: 20px;
} }
/* 三级菜单项 */ /* 三级菜单项 - 提高选择器优先级 */
.nav-third-item { .nav-cont-menu .nav-third-item {
margin: 0; margin: 0;
padding: 0; padding: 0;
min-width: 0; min-width: 0;
} }
.nav-third-link { .nav-cont-menu .nav-third-grid .nav-third-link,
.nav-third-panel .nav-third-link {
display: block; display: block;
width: 100%; width: 100%;
padding: 10px 12px 10px 24px; padding: 10px 12px 10px 24px;
@@ -142,7 +143,8 @@
position: relative; position: relative;
} }
.nav-third-link::before { .nav-cont-menu .nav-third-grid .nav-third-link::before,
.nav-third-panel .nav-third-link::before {
content: ''; content: '';
position: absolute; position: absolute;
left: 8px; left: 8px;
@@ -153,14 +155,16 @@
font-weight: bold; font-weight: bold;
} }
.nav-third-link:hover { .nav-cont-menu .nav-third-grid .nav-third-link:hover,
.nav-third-panel .nav-third-link:hover {
background: #e6f7ff; background: #e6f7ff;
border-color: #91d5ff; border-color: #91d5ff;
color: #1890ff; color: #1890ff;
padding-left: 28px; padding-left: 28px;
} }
.nav-third-link:hover::before { .nav-cont-menu .nav-third-grid .nav-third-link:hover::before,
.nav-third-panel .nav-third-link:hover::before {
left: 12px; left: 12px;
} }