@@ -91,5 +94,8 @@ const { isHome, hasSidebar } = useLayout()
padding-right: calc((100vw - var(--vp-layout-max-width)) / 2);
padding-left: calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width));
}
+ .VPContent.has-sidebar.collapsed {
+ padding-left: calc(100vw - var(--vp-layout-max-width)) / 2 ;
+ }
}
diff --git a/src/client/theme-default/components/VPNavBar.vue b/src/client/theme-default/components/VPNavBar.vue
index 3f6063fe..8b105b31 100644
--- a/src/client/theme-default/components/VPNavBar.vue
+++ b/src/client/theme-default/components/VPNavBar.vue
@@ -1,6 +1,6 @@
-
-
-
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
+
+
@@ -117,6 +107,9 @@ watchPostEffect(() => {
.VPNavBar:not(.has-sidebar):not(.home.top) {
background-color: var(--vp-nav-bg-color);
}
+ .VPNavBar.collapsed {
+ background-color: var(--vp-nav-bg-color);
+ }
}
.wrapper {
@@ -167,6 +160,14 @@ watchPostEffect(() => {
align-items: center;
justify-content: space-between;
}
+.VPNavBar:not(.home):not(.collapsed).has-sidebar .title{
+ border-bottom: 1px solid var(--vp-c-divider);
+ width: calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px - 20px)
+}
+.VPNavBar:not(.home).collapsed .title{
+ background-color: var(--vp-nav-bg-color);
+ border-bottom: 1px solid var(--vp-c-divider);
+}
@media (min-width: 960px) {
.VPNavBar.has-sidebar .title {
diff --git a/src/client/theme-default/components/VPNavBarTitle.vue b/src/client/theme-default/components/VPNavBarTitle.vue
index 9679f8a5..de07968f 100644
--- a/src/client/theme-default/components/VPNavBarTitle.vue
+++ b/src/client/theme-default/components/VPNavBarTitle.vue
@@ -50,7 +50,6 @@ const target = computed(() =>
.title {
display: flex;
align-items: center;
- border-bottom: 1px solid transparent;
width: 100%;
height: var(--vp-nav-height);
font-size: 16px;
@@ -63,10 +62,6 @@ const target = computed(() =>
.title {
flex-shrink: 0;
}
-
- .VPNavBarTitle.has-sidebar .title {
- border-bottom-color: var(--vp-c-divider);
- }
}
:deep(.logo) {
diff --git a/src/client/theme-default/components/VPSidebar.vue b/src/client/theme-default/components/VPSidebar.vue
index 323a07d2..817a9c9b 100644
--- a/src/client/theme-default/components/VPSidebar.vue
+++ b/src/client/theme-default/components/VPSidebar.vue
@@ -1,12 +1,12 @@