+
-
+
@@ -45,11 +71,19 @@ const { hasSidebar } = useSidebar()
display: flex;
justify-content: space-between;
align-items: center;
+ border-top: 1px solid var(--vp-c-gutter);
border-bottom: 1px solid var(--vp-c-gutter);
padding-top: var(--vp-layout-top-height, 0px);
width: 100%;
background-color: var(--vp-local-nav-bg-color);
- transition: border-color 0.5s, background-color 0.5s;
+}
+
+.VPLocalNav.fixed {
+ position: fixed;
+}
+
+.VPLocalNav.reached-top {
+ border-top-color: transparent;
}
@media (min-width: 960px) {
diff --git a/src/client/theme-default/components/VPLocalNavOutlineDropdown.vue b/src/client/theme-default/components/VPLocalNavOutlineDropdown.vue
index 7ae9c4b9..a879699b 100644
--- a/src/client/theme-default/components/VPLocalNavOutlineDropdown.vue
+++ b/src/client/theme-default/components/VPLocalNavOutlineDropdown.vue
@@ -1,12 +1,16 @@
diff --git a/src/client/theme-default/components/VPNavBar.vue b/src/client/theme-default/components/VPNavBar.vue
index bcd7d0b4..6095de58 100644
--- a/src/client/theme-default/components/VPNavBar.vue
+++ b/src/client/theme-default/components/VPNavBar.vue
@@ -62,15 +62,10 @@ const classes = computed(() => ({
border-bottom: 1px solid transparent;
padding: 0 8px 0 24px;
height: var(--vp-nav-height);
- transition: border-color 0.5s, background-color 0.5s;
pointer-events: none;
white-space: nowrap;
}
-.VPNavBar.has-sidebar {
- border-bottom-color: var(--vp-c-gutter);
-}
-
@media (min-width: 768px) {
.VPNavBar {
padding: 0 32px;
@@ -79,7 +74,6 @@ const classes = computed(() => ({
@media (min-width: 960px) {
.VPNavBar.has-sidebar {
- border-bottom-color: transparent;
padding: 0;
}