diff --git a/src/client/theme-default/components/VPDocAsideOutline.vue b/src/client/theme-default/components/VPDocAsideOutline.vue index efaadc095275..82252ab0e325 100644 --- a/src/client/theme-default/components/VPDocAsideOutline.vue +++ b/src/client/theme-default/components/VPDocAsideOutline.vue @@ -13,6 +13,11 @@ const marker = ref() const { headers, hasLocalNav } = useLayout() useActiveAnchor(container, marker) + +function scrollToTop() { + window.scrollTo({ top: 0, left: 0, behavior: 'smooth' }) +} + @@ -56,6 +66,12 @@ useActiveAnchor(container, marker) font-weight: 500; } +.back-to-top-button { + line-height: 32px; + font-weight: 500; + font-size: 14px; +} + .outline-marker { position: absolute; top: 32px;