how to set the multiple selected background color #3514
whysowt326
started this conversation in
General
Replies: 3 comments 6 replies
-
How about:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
all right , just one problem , my active is purple, and hover is little green , i want to set the selected ones to be purple . tab-item.highlighted tab-item-substance { |
Beta Was this translation helpful? Give feedback.
5 replies
-
tab-item.highlighted tab-item-substance {
background: #1E90FF; !important
}
tab-item.active .background {
background-color: #1E90FF ;
}
tab-item tab-item-substance:hover {
background: #55AB6C !important;
opacity: 1;
}
More.Wang
Mike Irvin ***@***.***> 于2024年3月31日周日 23:52写道:
… I see what you are saying ... the challenge is that CSS gives preference
to items that are more specific when determining which to apply. So if you
had a style on ".highlighted" and then another to ".highlighted.hover", the
second would always be applied when true over the first.
If they are at the same level, then the order in which they are in the CSS
file determines which is applied unless forced by "!important" ... the last
to be listed would be applied if "!important" isn't there.
Can you show your CSS you are applying for "highlighted", "active", and
"hover"?
—
Reply to this email directly, view it on GitHub
<#3514 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDHS2HRSUTZ6HSFB6PBJGDLY3AWKJAVCNFSM6AAAAABFQPE6UCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSNRVGYYDK>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
maybe
tab-item.selected.tab {
background-color: red;
}
but it does not work
Beta Was this translation helpful? Give feedback.
All reactions