pull/1844/merge
Em Zhan 1 month ago committed by GitHub
commit 9e1be812e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -7,14 +7,14 @@ import VPHome from './VPHome.vue'
import VPPage from './VPPage.vue' import VPPage from './VPPage.vue'
const { page, frontmatter } = useData() const { page, frontmatter } = useData()
const { isHome, hasSidebar } = useLayout() const { hasSidebar } = useLayout()
</script> </script>
<template> <template>
<div <div
class="VPContent" class="VPContent"
id="VPContent" id="VPContent"
:class="{ 'has-sidebar': hasSidebar, 'is-home': isHome }" :class="{ 'has-sidebar': hasSidebar }"
> >
<slot name="not-found" v-if="page.isNotFound"><NotFound /></slot> <slot name="not-found" v-if="page.isNotFound"><NotFound /></slot>
@ -66,15 +66,16 @@ const { isHome, hasSidebar } = useLayout()
width: 100%; width: 100%;
} }
.VPContent.is-home {
width: 100%;
max-width: 100%;
}
.VPContent.has-sidebar { .VPContent.has-sidebar {
margin: 0; margin: 0;
} }
@media (min-width: 768px) {
.VPContent {
width: 100vw;
}
}
@media (min-width: 960px) { @media (min-width: 960px) {
.VPContent { .VPContent {
padding-top: var(--vp-nav-height); padding-top: var(--vp-nav-height);

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

@ -127,6 +127,10 @@ const classes = computed(() => {
} }
@media (min-width: 768px) { @media (min-width: 768px) {
.VPLocalNav {
width: 100vw;
}
.menu { .menu {
padding: 0 32px; padding: 0 32px;
} }

@ -49,6 +49,12 @@ watchEffect(() => {
transition: background-color 0.5s; transition: background-color 0.5s;
} }
@media (min-width: 768px) {
.VPNav {
width: 100vw;
}
}
@media (min-width: 960px) { @media (min-width: 960px) {
.VPNav { .VPNav {
position: fixed; position: fixed;

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

Loading…
Cancel
Save