|
|
@ -1,10 +1,12 @@
|
|
|
|
<script setup lang="ts">
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { computed } from 'vue'
|
|
|
|
import { computed } from 'vue'
|
|
|
|
import { useData } from 'vitepress'
|
|
|
|
import { useData } from 'vitepress'
|
|
|
|
|
|
|
|
import { useSidebar } from '../composables/sidebar'
|
|
|
|
import VPDocOutline from './VPDocOutline.vue'
|
|
|
|
import VPDocOutline from './VPDocOutline.vue'
|
|
|
|
import VPDocFooter from './VPDocFooter.vue'
|
|
|
|
import VPDocFooter from './VPDocFooter.vue'
|
|
|
|
|
|
|
|
|
|
|
|
const { page } = useData()
|
|
|
|
const { page } = useData()
|
|
|
|
|
|
|
|
const { hasSidebar } = useSidebar()
|
|
|
|
|
|
|
|
|
|
|
|
const pageName = computed(() => {
|
|
|
|
const pageName = computed(() => {
|
|
|
|
return page.value.relativePath.slice(0, page.value.relativePath.indexOf('/'))
|
|
|
|
return page.value.relativePath.slice(0, page.value.relativePath.indexOf('/'))
|
|
|
@ -12,7 +14,7 @@ const pageName = computed(() => {
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="VPDoc has-aside">
|
|
|
|
<div class="VPDoc" :class="{ 'has-sidebar': hasSidebar }">
|
|
|
|
<div class="container">
|
|
|
|
<div class="container">
|
|
|
|
<div class="aside">
|
|
|
|
<div class="aside">
|
|
|
|
<div class="aside-container">
|
|
|
|
<div class="aside-container">
|
|
|
@ -24,11 +26,13 @@ const pageName = computed(() => {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
<div class="content">
|
|
|
|
<main class="main">
|
|
|
|
<div class="content-container">
|
|
|
|
<Content class="vp-doc" :class="pageName" />
|
|
|
|
<main class="main">
|
|
|
|
</main>
|
|
|
|
<Content class="vp-doc" :class="pageName" />
|
|
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
|
|
<VPDocFooter />
|
|
|
|
<VPDocFooter />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -48,60 +52,63 @@ const pageName = computed(() => {
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 960px) {
|
|
|
|
@media (min-width: 960px) {
|
|
|
|
.VPDoc {
|
|
|
|
.VPDoc {
|
|
|
|
padding: 32px 64px 96px;
|
|
|
|
padding: 32px 32px 128px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 1280px) {
|
|
|
|
.VPDoc:not(.has-sidebar) .container {
|
|
|
|
.VPDoc {
|
|
|
|
display: flex;
|
|
|
|
padding: 32px 0 128px 64px;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
max-width: 992px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.VPDoc:not(.has-sidebar.has-aside) {
|
|
|
|
.VPDoc:not(.has-sidebar) .aside {
|
|
|
|
padding-left: calc((100vw - 688px) / 2);
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.VPDoc.has-aside:not(.has-sidebar) {
|
|
|
|
.VPDoc:not(.has-sidebar) .content {
|
|
|
|
padding-left: calc((100vw - 688px - 320px) / 2);
|
|
|
|
max-width: 752px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 1280px) {
|
|
|
|
|
|
|
|
.VPDoc .container {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.VPDoc:not(.has-aside) .content {
|
|
|
|
.VPDoc .aside {
|
|
|
|
min-width: 688px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 1440px) {
|
|
|
|
@media (min-width: 1440px) {
|
|
|
|
.VPDoc {
|
|
|
|
.VPDoc:not(.has-sidebar) .content {
|
|
|
|
padding: 32px 0 128px 96px;
|
|
|
|
max-width: 784px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 1280px) {
|
|
|
|
.VPDoc:not(.has-sidebar) .container {
|
|
|
|
.container {
|
|
|
|
max-width: 1104px;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.container {
|
|
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.aside {
|
|
|
|
.aside {
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
display: none;
|
|
|
|
display: none;
|
|
|
|
order: 2;
|
|
|
|
order: 2;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-grow: 1;
|
|
|
|
padding-left: 64px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
padding-right: 32px;
|
|
|
|
padding-left: 32px;
|
|
|
|
min-width: 320px;
|
|
|
|
min-width: 240px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 1280px) {
|
|
|
|
|
|
|
|
.aside {
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 1440px) {
|
|
|
|
@media (min-width: 1440px) {
|
|
|
|
.aside {
|
|
|
|
.aside {
|
|
|
|
padding-left: 96px;
|
|
|
|
padding-left: 64px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -110,7 +117,7 @@ const pageName = computed(() => {
|
|
|
|
top: var(--vp-nav-height-desktop);
|
|
|
|
top: var(--vp-nav-height-desktop);
|
|
|
|
bottom: 0;
|
|
|
|
bottom: 0;
|
|
|
|
padding-top: 32px;
|
|
|
|
padding-top: 32px;
|
|
|
|
width: 224px;
|
|
|
|
width: 208px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -141,17 +148,33 @@ const pageName = computed(() => {
|
|
|
|
.content {
|
|
|
|
.content {
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
margin: 0 auto;
|
|
|
|
margin: 0 auto;
|
|
|
|
max-width: 688px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 960px) {
|
|
|
|
|
|
|
|
.content {
|
|
|
|
|
|
|
|
padding: 0 32px;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 1280px) {
|
|
|
|
@media (min-width: 1280px) {
|
|
|
|
.content {
|
|
|
|
.content {
|
|
|
|
order: 1;
|
|
|
|
order: 1;
|
|
|
|
margin: 0;
|
|
|
|
margin: 0;
|
|
|
|
min-width: 632px;
|
|
|
|
min-width: 640px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 1440px) {
|
|
|
|
|
|
|
|
.content {
|
|
|
|
|
|
|
|
padding-left: 64px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.content-container {
|
|
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
|
|
max-width: 688px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.edit-link {
|
|
|
|
.edit-link {
|
|
|
|
margin: 0 0 32px;
|
|
|
|
margin: 0 0 32px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|