更新样式:删除通知栏条目hover效果,增加dropdown-item:active样式,覆盖默认蓝色背景色效果

This commit is contained in:
Argo-MacBookPro 2018-10-01 19:08:51 +08:00
parent cadf005013
commit da1f1731fa
2 changed files with 9 additions and 7 deletions

View File

@ -145,6 +145,11 @@ a, a:hover, a:focus {
opacity: 0.8; opacity: 0.8;
} }
.dropdown-item.active, .dropdown-item:active {
color: rgba(0, 0, 0, 0.9);
background-color: rgba(0, 0, 0, 0.05);
}
.dropdown-item i + span { .dropdown-item i + span {
margin-left: 6px; margin-left: 6px;
} }
@ -194,8 +199,8 @@ a, a:hover, a:focus {
background-color: rgba(0, 0, 0, 0.05); background-color: rgba(0, 0, 0, 0.05);
} }
.nav .dropdown-item:hover { .nav .dropdown-item.active, .nav .dropdown-item:active {
background-color: #93c9e8; color: #212529;
} }
.nav .dropdown-item > :nth-child(2) { .nav .dropdown-item > :nth-child(2) {

View File

@ -152,9 +152,6 @@ a, a:hover, a:focus {
.dropdown-item.active, .dropdown-item:active { .dropdown-item.active, .dropdown-item:active {
color: rgba(0, 0, 0, 0.9); color: rgba(0, 0, 0, 0.9);
}
.dropdown-item:hover, .dropdown-item:active, .dropdown-item.active {
background-color: rgba(0, 0, 0, 0.05); background-color: rgba(0, 0, 0, 0.05);
} }
@ -207,8 +204,8 @@ a, a:hover, a:focus {
background-color: rgba(0, 0, 0, 0.05); background-color: rgba(0, 0, 0, 0.05);
} }
.nav .dropdown-item:hover { .nav .dropdown-item.active, .nav .dropdown-item:active {
background-color: #93c9e8; color: #212529;
} }
.nav .dropdown-item > :nth-child(2) { .nav .dropdown-item > :nth-child(2) {