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

close #4224
pull/3795/merge
北雁云依 5 days 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);
}
.button[aria-expanded="false"] + .menu {
opacity: 0;
visibility: hidden;
transform: translateY(0);
}
.VPFlyout:hover .menu,
.button[aria-expanded="true"] + .menu {
opacity: 1;
@ -85,12 +91,6 @@ function onBlur() {
transform: translateY(0);
}
.button[aria-expanded="false"] + .menu {
opacity: 0;
visibility: hidden;
transform: translateY(0);
}
.button {
display: flex;
align-items: center;

Loading…
Cancel
Save