diff --git a/src/client/theme-default/components/VPContent.vue b/src/client/theme-default/components/VPContent.vue index 8c11a7404626..3744ff6dfd34 100644 --- a/src/client/theme-default/components/VPContent.vue +++ b/src/client/theme-default/components/VPContent.vue @@ -52,7 +52,7 @@ const NotFound = inject('NotFound') .VPContent { flex-grow: 1; flex-shrink: 0; - margin: 0 auto; + margin: var(--vp-layout-top-height, 0) auto 0; width: 100%; } @@ -61,13 +61,17 @@ const NotFound = inject('NotFound') max-width: 100%; } +.VPContent.has-sidebar { + margin: 0; +} + @media (min-width: 960px) { .VPContent { - padding-top: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px)); + padding-top: var(--vp-nav-height); } .VPContent.has-sidebar { - margin: 0; + margin: var(--vp-layout-top-height, 0) 0 0; padding-left: var(--vp-sidebar-width); } } diff --git a/src/client/theme-default/components/VPDoc.vue b/src/client/theme-default/components/VPDoc.vue index 89d189127266..228574d60ec9 100644 --- a/src/client/theme-default/components/VPDoc.vue +++ b/src/client/theme-default/components/VPDoc.vue @@ -120,8 +120,8 @@ provide('onContentUpdated', onContentUpdated) .aside-container { position: sticky; top: 0; - margin-top: calc((var(--vp-nav-height-desktop) + var(--vp-layout-top-height, 0px)) * -1 - 32px); - padding-top: calc(var(--vp-nav-height-desktop) + var(--vp-layout-top-height, 0px) + 32px); + margin-top: calc((var(--vp-nav-height-desktop) + var(--vp-layout-top-height, 0)) * -1 - 32px); + padding-top: calc(var(--vp-nav-height-desktop) + var(--vp-layout-top-height, 0) + 32px); height: 100vh; overflow-x: hidden; overflow-y: auto; @@ -144,7 +144,7 @@ provide('onContentUpdated', onContentUpdated) .aside-content { display: flex; flex-direction: column; - min-height: calc(100vh - (var(--vp-nav-height-desktop) + var(--vp-layout-top-height, 0px) + 32px)); + min-height: calc(100vh - (var(--vp-nav-height-desktop) + var(--vp-layout-top-height, 0) + 32px)); padding-bottom: 32px; } diff --git a/src/client/theme-default/components/VPFlyout.vue b/src/client/theme-default/components/VPFlyout.vue index cf36c8f26990..56c2303fa5a3 100644 --- a/src/client/theme-default/components/VPFlyout.vue +++ b/src/client/theme-default/components/VPFlyout.vue @@ -119,7 +119,7 @@ function onBlur() { } .option-icon { - margin-right: 0px; + margin-right: 0; width: 16px; height: 16px; fill: currentColor; diff --git a/src/client/theme-default/components/VPHero.vue b/src/client/theme-default/components/VPHero.vue index 4e764c27152f..20424a19174a 100644 --- a/src/client/theme-default/components/VPHero.vue +++ b/src/client/theme-default/components/VPHero.vue @@ -53,19 +53,19 @@ defineProps<{