fix(theme): change the order of CSS rules of `VPFlyout` (#4225)

close #4224
pull/4237/head
北雁云依 1 year ago committed by GitHub
parent 2d0c4993ac
commit 68150a6f33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -78,6 +78,12 @@ function onBlur() {
color: var(--vp-c-brand-2); color: var(--vp-c-brand-2);
} }
.button[aria-expanded="false"] + .menu {
opacity: 0;
visibility: hidden;
transform: translateY(0);
}
.VPFlyout:hover .menu, .VPFlyout:hover .menu,
.button[aria-expanded="true"] + .menu { .button[aria-expanded="true"] + .menu {
opacity: 1; opacity: 1;
@ -85,12 +91,6 @@ function onBlur() {
transform: translateY(0); transform: translateY(0);
} }
.button[aria-expanded="false"] + .menu {
opacity: 0;
visibility: hidden;
transform: translateY(0);
}
.button { .button {
display: flex; display: flex;
align-items: center; align-items: center;

Loading…
Cancel
Save