docs: enhance styles for version switch and language switch for improved aesthetics and consistency

This commit is contained in:
ob-yalian
2026-04-24 16:25:36 +08:00
parent eaca1d8102
commit 97c9a81ca2
3 changed files with 39 additions and 35 deletions
+19 -15
View File
@@ -6,24 +6,27 @@
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
gap: 0.55rem;
padding: 0.85rem 0.95rem;
border: 1px solid rgba(82, 82, 91, 0.42);
border-radius: 18px;
background: rgba(195, 195, 201, 0.96);
box-shadow: 0 18px 38px rgba(24, 24, 27, 0.26);
backdrop-filter: blur(14px);
max-width: calc(100vw - 48px);
}
.docs-floating-switches__item {
width: 100%;
max-width: min(220px, calc(100vw - 48px));
}
.docs-version-switch {
display: grid;
gap: 0.45rem;
gap: 0.5rem;
min-width: 192px;
padding: 0.9rem 1rem;
border: 1px solid rgba(82, 82, 91, 0.28);
border-radius: 14px;
background: rgba(228, 228, 231, 0.96);
box-shadow: 0 18px 38px rgba(63, 63, 70, 0.18);
backdrop-filter: blur(14px);
padding: 0.75rem 0 0;
border-top: 1px solid rgba(82, 82, 91, 0.28);
}
.docs-version-switch__header {
@@ -31,7 +34,7 @@
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #52525b;
color: #3f3f46;
}
.docs-version-switch__control {
@@ -55,17 +58,17 @@
width: 100%;
min-height: 2.4rem;
padding: 0 0.85rem;
border: 1px solid #bcbcc4;
border: 1px solid #8a8a93;
border-radius: 10px;
background: #d4d4d8;
color: #27272a;
background: #b1b1b9;
color: #18181b;
font-size: 0.95rem;
font-weight: 600;
}
.docs-version-switch__select:focus {
outline: 2px solid rgba(82, 82, 91, 0.24);
border-color: #52525b;
outline: 2px solid rgba(63, 63, 70, 0.32);
border-color: #3f3f46;
}
@media (max-width: 768px) {
@@ -73,6 +76,7 @@
left: 12px;
bottom: 12px;
gap: 0.55rem;
padding: 0.75rem 0.85rem;
max-width: calc(100vw - 24px);
}
@@ -82,7 +86,7 @@
.docs-version-switch {
min-width: 156px;
padding: 0.75rem 0.85rem;
padding-top: 0.65rem;
}
.docs-version-switch__header {