pull/1568/merge
Em Zhan 4 years ago committed by GitHub
commit e200184054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,7 +20,6 @@ const NotFound = inject('NotFound')
id="VPContent"
:class="{
'has-sidebar': hasSidebar,
'is-home': frontmatter.layout === 'home'
}"
>
<NotFound v-if="route.component === NotFound" />
@ -58,15 +57,16 @@ const NotFound = inject('NotFound')
width: 100%;
}
.VPContent.is-home {
width: 100%;
max-width: 100%;
}
.VPContent.has-sidebar {
margin: 0;
}
@media (min-width: 768px) {
.VPContent {
width: 100vw;
}
}
@media (min-width: 960px) {
.VPContent {
padding-top: var(--vp-nav-height);

@ -30,6 +30,7 @@ const { hasSidebar } = useSidebar()
@media (min-width: 768px) {
.VPFooter {
width: 100vw;
padding: 32px;
}
}

@ -79,6 +79,10 @@ function scrollToTop() {
}
@media (min-width: 768px) {
.VPLocalNav {
width: 100vw;
}
.menu {
padding: 0 32px;
}

@ -36,6 +36,12 @@ provide('close-screen', closeScreen)
transition: background-color 0.5s;
}
@media (min-width: 768px) {
.VPNav {
width: 100vw;
}
}
@media (min-width: 960px) {
.VPNav {
position: fixed;

@ -105,8 +105,8 @@ watchPostEffect(async () => {
@media (min-width: 1440px) {
.VPSidebar {
padding-left: max(32px, calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));
width: calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px);
padding-left: max(32px, calc((100vw - (var(--vp-layout-max-width) - 64px)) / 2));
width: calc((100vw - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px);
}
}

@ -30,6 +30,7 @@ body {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-x: hidden;
}
main {

Loading…
Cancel
Save