diff --git a/index.html b/index.html
index 7ff0ad9..4d8111b 100644
--- a/index.html
+++ b/index.html
@@ -210,8 +210,7 @@
transition: inherit;
}
- .command:hover .key,
- .command:hover .name {
+ .command:hover :where(.key, .name) {
color: var(--color-text);
}
@@ -328,12 +327,10 @@
z-index: 1;
}
- .suggestion:focus,
- .suggestion:hover {
+ .suggestion:where(:focus, :hover) {
color: var(--color-background);
}
- .suggestion::before,
.suggestion::before {
background-color: var(--color-text);
bottom: var(--space-1);
@@ -348,8 +345,7 @@
z-index: -1;
}
- .suggestion:focus::before,
- .suggestion:hover::before {
+ .suggestion:where(:focus, :hover)::before {
opacity: 1;
transform: translateY(0);
}
@@ -359,8 +355,7 @@
transition: color var(--transition-speed);
}
- .suggestion:focus .match,
- .suggestion:hover .match {
+ .suggestion:where(:focus, :hover) .match {
color: var(--color-background);
}
@@ -637,15 +632,12 @@