fix(docs): keep section tab typography stable on hover

This commit is contained in:
maoyingjie
2026-10-28 00:11:22 +08:00
parent d616df3159
commit b49e3a9b42
+5 -2
View File
@@ -127,7 +127,9 @@ html {
gap: 12px; gap: 12px;
height: 100%; height: 100%;
} }
.docs-nav-sections nav .hv-link { /* 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"]) {
text-decoration: none; text-decoration: none;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@@ -718,7 +720,8 @@ html {
.docs-nav-sections nav { .docs-nav-sections nav {
gap: 20px; gap: 20px;
} }
.docs-nav-sections nav .hv-link { .docs-nav-sections nav .hv-link,
.docs-nav-sections nav .hv-link:is(:hover, [data-hovered="true"]) {
font-size: 13px; font-size: 13px;
padding-bottom: 6px; padding-bottom: 6px;
} }