diff --git a/src/theme/components/VPDoc.vue b/src/theme/components/VPDoc.vue index 2315dd6..22db612 100644 --- a/src/theme/components/VPDoc.vue +++ b/src/theme/components/VPDoc.vue @@ -2,11 +2,11 @@ import { useRoute } from 'vitepress' import { computed } from 'vue' import { useData } from '../composables/data' +import { useEditLink } from '../composables/edit-link' import { useSidebar } from '../composables/sidebar' import VPDocAside from './VPDocAside.vue' import VPDocFooter from './VPDocFooter.vue' import VPDocFooterLastUpdated from './VPDocFooterLastUpdated.vue' -import { useEditLink } from '../composables/edit-link' import VPLink from './VPLink.vue' const { theme, page, frontmatter } = useData() @@ -22,7 +22,6 @@ const hasLastUpdated = computed(() => { const route = useRoute() const { hasSidebar, hasAside, leftAside } = useSidebar() - const pageName = computed(() => route.path.replace(/[./]+/g, '_').replace(/_html$/, '') ) @@ -35,7 +34,7 @@ const pageName = computed(() => >
-
+
- - + + + d="M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25c.081-.286.235-.547.445-.758l8.61-8.61Zm.176 4.823L9.75 4.81l-6.286 6.287a.253.253 0 0 0-.064.108l-.558 1.953 1.953-.558a.253.253 0 0 0 .108-.064Zm1.238-3.763a.25.25 0 0 0-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 0 0 0-.354Z" + >
@@ -144,7 +162,7 @@ const pageName = computed(() => } } -@media (min-width: 1280px) { +@media (min-width: 1460px) { .VPDoc .container { display: flex; justify-content: center; @@ -189,7 +207,10 @@ const pageName = computed(() => .aside-container { position: fixed; top: 0; - padding-top: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 10px); + padding-top: calc( + var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + + var(--vp-doc-top-height, 0px) + 10px + ); width: 224px; height: 100vh; overflow-x: hidden; @@ -204,18 +225,20 @@ const pageName = computed(() => .aside-content { display: flex; flex-direction: column; - min-height: calc(100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px)); + min-height: calc( + 100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) + ); padding-bottom: 32px; } - .content { position: relative; margin: 0 auto; width: 100%; border: 1px solid var(--vp-c-border); border-radius: 4px; - background-color: var(--vp-c-bg) + background-color: var(--vp-c-bg); + max-width: 768px; } .main { @@ -250,7 +273,6 @@ const pageName = computed(() => max-width: 100%; } - @media (min-width: 640px) { .content-file { display: flex; @@ -302,8 +324,8 @@ const pageName = computed(() => } .no-hover { - background-color: transparent!important; - border-color: transparent!important; + background-color: transparent !important; + border-color: transparent !important; } .content-box-icon { diff --git a/src/theme/components/VPLocalNav.vue b/src/theme/components/VPLocalNav.vue index fac6e79..fe8d967 100644 --- a/src/theme/components/VPLocalNav.vue +++ b/src/theme/components/VPLocalNav.vue @@ -54,7 +54,9 @@ const classes = computed(() => {