fix(docs): match reference navigation and search hover colors
This commit is contained in:
@@ -127,9 +127,7 @@ html {
|
||||
gap: 12px;
|
||||
height: 100%;
|
||||
}
|
||||
/* Section tabs keep their text treatment on hover; selection controls color. */
|
||||
.docs-nav-sections nav .hv-link,
|
||||
.docs-nav-sections nav .hv-link:is(:hover, [data-hovered="true"]) {
|
||||
.docs-nav-sections nav .hv-link {
|
||||
text-decoration: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -146,6 +144,11 @@ html {
|
||||
border-color: var(--accent);
|
||||
color: var(--foreground);
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.docs-nav-sections nav .hv-link:is(:hover, [data-hovered="true"]) {
|
||||
color: var(--foreground);
|
||||
}
|
||||
}
|
||||
.docs-theme-wide {
|
||||
padding: 2px;
|
||||
border-radius: 999px;
|
||||
@@ -474,6 +477,7 @@ html {
|
||||
margin-left: auto;
|
||||
}
|
||||
.search-trigger .hv-kbd {
|
||||
color: inherit;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
font-size: 14px;
|
||||
@@ -485,6 +489,11 @@ html {
|
||||
box-shadow: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.search-trigger:is(:hover, [data-hovered="true"]) {
|
||||
color: var(--foreground);
|
||||
}
|
||||
}
|
||||
.dark .search-trigger {
|
||||
background: color-mix(
|
||||
in oklab,
|
||||
@@ -720,8 +729,7 @@ html {
|
||||
.docs-nav-sections nav {
|
||||
gap: 20px;
|
||||
}
|
||||
.docs-nav-sections nav .hv-link,
|
||||
.docs-nav-sections nav .hv-link:is(:hover, [data-hovered="true"]) {
|
||||
.docs-nav-sections nav .hv-link {
|
||||
font-size: 13px;
|
||||
padding-bottom: 6px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user