fix(theme): fix incorrect footer layout (#120)

在1440px屏幕的情况下,sidebar的宽度就应该等于footer的margin-left的值,但是目前却没有处理,导致样式错乱了
This commit is contained in:
shylock-wu 2024-07-16 20:59:40 +08:00 committed by GitHub
parent c259c484e2
commit 0510e261df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,6 +87,12 @@ onMounted(() => {
.vp-footer {
padding: 24px;
}
.vp-footer.has-sidebar {
margin-left: calc(
(100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) -
32px
)
}
}
.container {