mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 12:07:46 +08:00
docs: enhance styles for version switch and language switch for improved aesthetics and consistency
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -5,19 +5,19 @@
|
||||
align-items: center !important;
|
||||
gap: 0.45rem !important;
|
||||
margin: 0 !important;
|
||||
background: rgba(228,228,231,0.95) !important;
|
||||
border: 1px solid #bcbcc4 !important;
|
||||
border-radius: 10px !important;
|
||||
padding: 8px 12px !important;
|
||||
width: 100% !important;
|
||||
background: transparent !important;
|
||||
border: 0 !important;
|
||||
border-radius: 0 !important;
|
||||
padding: 0 !important;
|
||||
font-size: 0.9em !important;
|
||||
box-shadow: 0 8px 22px rgba(63, 63, 70, 0.18) !important;
|
||||
backdrop-filter: blur(5px) !important;
|
||||
box-shadow: none !important;
|
||||
backdrop-filter: none !important;
|
||||
transition: all 0.3s ease !important;
|
||||
}
|
||||
|
||||
.lang-switch:hover {
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
|
||||
transform: translateY(-1px) !important;
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
.lang-switch a {
|
||||
@@ -26,11 +26,11 @@
|
||||
}
|
||||
|
||||
.lang-switch .lang-other {
|
||||
color: #52525b !important;
|
||||
color: #3f3f46 !important;
|
||||
}
|
||||
|
||||
.lang-switch .lang-other:hover {
|
||||
color: #27272a !important;
|
||||
color: #18181b !important;
|
||||
}
|
||||
|
||||
.lang-switch .lang-current {
|
||||
|
||||
@@ -5,19 +5,19 @@
|
||||
align-items: center !important;
|
||||
gap: 0.45rem !important;
|
||||
margin: 0 !important;
|
||||
background: rgba(228,228,231,0.95) !important;
|
||||
border: 1px solid #bcbcc4 !important;
|
||||
border-radius: 10px !important;
|
||||
padding: 8px 12px !important;
|
||||
width: 100% !important;
|
||||
background: transparent !important;
|
||||
border: 0 !important;
|
||||
border-radius: 0 !important;
|
||||
padding: 0 !important;
|
||||
font-size: 0.9em !important;
|
||||
box-shadow: 0 8px 22px rgba(63, 63, 70, 0.18) !important;
|
||||
backdrop-filter: blur(5px) !important;
|
||||
box-shadow: none !important;
|
||||
backdrop-filter: none !important;
|
||||
transition: all 0.3s ease !important;
|
||||
}
|
||||
|
||||
.lang-switch:hover {
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
|
||||
transform: translateY(-1px) !important;
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
.lang-switch a {
|
||||
@@ -26,11 +26,11 @@
|
||||
}
|
||||
|
||||
.lang-switch .lang-other {
|
||||
color: #52525b !important;
|
||||
color: #3f3f46 !important;
|
||||
}
|
||||
|
||||
.lang-switch .lang-other:hover {
|
||||
color: #27272a !important;
|
||||
color: #18181b !important;
|
||||
}
|
||||
|
||||
.lang-switch .lang-current {
|
||||
|
||||
Reference in New Issue
Block a user