Skip to content

Commit

Permalink
追加:在 [暗色模式] 下,为 [左侧导航主菜单选项卡] 在 指针悬浮时[hover] & 选中时[active],添加边框和线条的阴影
Browse files Browse the repository at this point in the history
-清理多余代码
  • Loading branch information
SpeedPartner committed May 16, 2023
1 parent 4df0c6d commit 27945e0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 23 deletions.
2 changes: 2 additions & 0 deletions htdocs/luci-static/argon/css/cascade.css
Expand Up @@ -683,6 +683,7 @@ footer a {
color: #fff;
background: #5e72e4;
background: var(--primary);
box-shadow: 0 0 1px #ccc;
}
.main .main-left .nav li.slide .menu:hover a,
.main .main-left .nav li.slide .menu.active a {
Expand Down Expand Up @@ -774,6 +775,7 @@ footer a {
background-color: #5e72e4;
background-color: var(--primary);
transition: all 0.2s;
box-shadow: 0 0 1px #ccc;
}
.main .main-left .nav li.slide .slide-menu li a:hover::after {
color: #000;
Expand Down
16 changes: 7 additions & 9 deletions htdocs/luci-static/argon/css/dark.css
Expand Up @@ -68,27 +68,25 @@ header::after {
color: #fff !important;
}

.main .main-left .nav .slide .slide-menu a::after,
.main .main-left .nav .slide .slide-menu .active a::after {
background-color: var(--dark-primary) !important;
}

.main .main-left .nav .slide .slide-menu li a {
color: #cccccc;
}

.main .main-left .nav .slide .slide-menu li a::after {
background-color: var(--dark-primary) !important;
box-shadow: 0 0 1px #000 !important;
}

.main .main-left .nav .slide .slide-menu li a:hover {
background: none !important;
}

.main .main-left .nav .slide .menu:hover,
.main .main-left .nav .slide .menu.active {
background-color: #483d8b !important;
background-color: var(--dark-primary) !important;
color: #fff !important;
}

.main .main-left .nav .slide .menu.active a::after {
background-color: #cccccc !important;
box-shadow: 0 0 1px #000 !important;
}

.main .main-left .nav li a {
Expand Down
2 changes: 2 additions & 0 deletions htdocs/luci-static/argon/less/cascade.less
Expand Up @@ -799,6 +799,7 @@ footer {
color: #fff;
background: #5e72e4;
background: var(--primary);
box-shadow: 0 0 1px #ccc;

a {
color: #000;
Expand Down Expand Up @@ -913,6 +914,7 @@ footer {
background-color: #5e72e4;
background-color: var(--primary);
transition: all 0.2s;
box-shadow: 0 0 1px #ccc;
}

&:hover::after {
Expand Down
30 changes: 16 additions & 14 deletions htdocs/luci-static/argon/less/dark.less
Expand Up @@ -111,10 +111,6 @@ header::after {
.slide {
.slide-menu {

a::after {
background-color: var(--dark-primary) !important;
}

.active {
a {
color: #fff !important;
Expand All @@ -128,21 +124,27 @@ header::after {
li {
a {
color: #cccccc;
}

a:hover {
background: none !important;
&:hover {
background: none !important;
}

&::after {
background-color: var(--dark-primary) !important;
box-shadow: 0 0 1px #000 !important;
}

}
}
}

.menu.active {
background-color: #483d8b !important;
background-color: var(--dark-primary) !important;
color: #fff !important;

a::after {
background-color: #cccccc !important;
.menu {
&:hover,
&.active {
background-color: #483d8b !important;
background-color: var(--dark-primary) !important;
color: #fff !important;
box-shadow: 0 0 1px #000 !important;
}
}
}
Expand Down

0 comments on commit 27945e0

Please sign in to comment.