feat: enhance back-to-top button styling in VPDocAsideOutline component

pull/4522/head
Hichem Fantar 8 months ago
parent 30e8c5feab
commit 3a99e66077

@ -50,7 +50,7 @@ function scrollToTop() {
<VPDocOutlineItem :headers="headers" :root="true" /> <VPDocOutlineItem :headers="headers" :root="true" />
<button @click="scrollToTop"> <button @click="scrollToTop" class="back-to-top-button">
<span>{{ theme.returnToTopLabel || 'Return to top' }}</span> <span>{{ theme.returnToTopLabel || 'Return to top' }}</span>
</button> </button>
@ -75,6 +75,10 @@ function scrollToTop() {
font-weight: 500; font-weight: 500;
} }
.back-to-top-button {
line-height: 32px;
}
.outline-marker { .outline-marker {
position: absolute; position: absolute;
top: 32px; top: 32px;

Loading…
Cancel
Save