fix(docs): use native header control composition and default sizing

This commit is contained in:
maoyingjie
2026-10-24 07:39:22 +08:00
parent 2ce80b17da
commit 77acdb276e
7 changed files with 73 additions and 36 deletions
+20 -17
View File
@@ -65,11 +65,20 @@ html {
font-size: 11px;
}
.docs-nav .version {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 4px 0;
height: auto;
min-width: 0;
background: transparent;
border: 0;
color: var(--muted);
font-size: 12px;
font-size: 14px;
line-height: 20px;
white-space: nowrap;
}
.docs-nav .version svg {
flex-shrink: 0;
}
.version-panel {
display: flex;
@@ -93,6 +102,7 @@ html {
}
.docs-github {
color: var(--muted);
flex-shrink: 0;
}
.docs-nav-sections {
display: flex;
@@ -129,24 +139,17 @@ html {
}
.docs-theme-wide {
padding: 2px;
border-radius: 14px;
border-radius: 999px;
background: var(--default);
gap: 0;
flex-shrink: 0;
}
.docs-theme-wide .hv-toggle-button {
min-width: 28px;
width: 28px;
height: 26px;
border: 0;
border-radius: 12px;
padding: 4px;
background: transparent;
box-shadow: none;
color: var(--muted);
--toggle-button-bg-selected: var(--surface);
--toggle-button-bg-selected-hover: var(--surface);
--toggle-button-bg-selected-pressed: var(--surface);
--toggle-button-fg-selected: var(--foreground);
}
.docs-theme-wide .hv-toggle-button[data-selected="true"] {
background: var(--surface);
color: var(--foreground);
box-shadow: var(--surface-shadow);
}
.docs-theme-compact,
@@ -673,7 +676,7 @@ html {
.docs-sidebar {
grid-row: 1 / span 2;
}
.version {
.docs-nav .version {
display: none;
}
.docs-nav-main {