vitepress 1.0.0-draft.3 → 1.0.0-draft.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/bin/vitepress.js +1 -1
- package/dist/client/app/composables/head.js +2 -2
- package/dist/client/app/data.js +2 -4
- package/dist/client/app/index.js +1 -5
- package/dist/client/index.d.ts +123 -134
- package/dist/client/index.js +1 -2
- package/dist/client/shared.js +21 -0
- package/dist/client/theme-default/Layout.vue +7 -0
- package/dist/client/theme-default/NotFound.vue +74 -14
- package/dist/client/theme-default/components/VPBox.vue +2 -6
- package/dist/client/theme-default/components/VPButton.vue +0 -1
- package/dist/client/theme-default/components/VPCarbonAds.vue +90 -0
- package/dist/client/theme-default/components/VPContent.vue +14 -10
- package/dist/client/theme-default/components/VPDoc.vue +73 -58
- package/dist/client/theme-default/components/VPDocAside.vue +34 -0
- package/dist/client/theme-default/components/VPDocAsideCarbonAds.vue +13 -0
- package/dist/client/theme-default/components/{VPDocOutline.vue → VPDocAsideOutline.vue} +14 -3
- package/dist/client/theme-default/components/VPDocAsideSponsors.vue +32 -0
- package/dist/client/theme-default/components/VPDocFooter.vue +1 -1
- package/dist/client/theme-default/components/VPFlyout.vue +2 -3
- package/dist/client/theme-default/components/VPFooter.vue +1 -1
- package/dist/client/theme-default/components/VPHero.vue +170 -29
- package/dist/client/theme-default/components/VPHomeFeatures.vue +1 -0
- package/dist/client/theme-default/components/VPHomeHero.vue +1 -0
- package/dist/client/theme-default/components/VPHomeSponsors.vue +3 -3
- package/dist/client/theme-default/components/VPLink.vue +2 -1
- package/dist/client/theme-default/components/VPLocalNav.vue +1 -1
- package/dist/client/theme-default/components/VPMenu.vue +9 -14
- package/dist/client/theme-default/components/VPMenuLink.vue +10 -4
- package/dist/client/theme-default/components/VPNav.vue +18 -1
- package/dist/client/theme-default/components/VPNavBar.vue +20 -8
- package/dist/client/theme-default/components/VPNavBarExtra.vue +20 -45
- package/dist/client/theme-default/components/VPNavBarMenuGroup.vue +2 -8
- package/dist/client/theme-default/components/VPNavBarMenuLink.vue +3 -3
- package/dist/client/theme-default/components/VPNavBarSearch.vue +6 -6
- package/dist/client/theme-default/components/VPNavBarTitle.vue +4 -2
- package/dist/client/theme-default/components/VPNavBarTranslations.vue +10 -39
- package/dist/client/theme-default/components/VPNavScreenMenuGroup.vue +1 -2
- package/dist/client/theme-default/components/VPNavScreenMenuGroupSection.vue +1 -1
- package/dist/client/theme-default/components/VPSidebar.vue +12 -6
- package/dist/client/theme-default/components/VPSidebarGroup.vue +80 -17
- package/dist/client/theme-default/components/VPSidebarLink.vue +2 -9
- package/dist/client/theme-default/components/VPSocialLink.vue +2 -2
- package/dist/client/theme-default/components/VPSocialLinks.vue +1 -1
- package/dist/client/theme-default/components/VPSponsors.vue +15 -40
- package/dist/client/theme-default/components/VPSponsorsGrid.vue +2 -2
- package/dist/client/theme-default/components/icons/VPIconMinus.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconMinusSquare.vue +6 -0
- package/dist/client/theme-default/components/icons/VPIconPlusSquare.vue +6 -0
- package/dist/client/theme-default/composables/aside.js +17 -0
- package/dist/client/theme-default/composables/copy-code.js +33 -0
- package/dist/client/theme-default/composables/outline.js +14 -4
- package/dist/client/theme-default/composables/sponsor-grid.js +8 -6
- package/dist/client/theme-default/index.js +4 -2
- package/dist/client/theme-default/styles/base.css +13 -1
- package/dist/client/theme-default/styles/components/custom-block.css +90 -0
- package/dist/client/theme-default/styles/{vp-doc.css → components/vp-doc.css} +152 -115
- package/dist/client/theme-default/styles/{vp-sponsor.css → components/vp-sponsor.css} +51 -7
- package/dist/client/theme-default/styles/vars.css +109 -58
- package/dist/node/cli.js +32 -31
- package/dist/node/index.d.ts +371 -361
- package/dist/node/index.js +22 -37
- package/dist/node/serve-9c85885c.js +64795 -0
- package/dist/node-cjs/cli.cjs +304 -0
- package/dist/node-cjs/index.cjs +38 -0
- package/dist/{node/serve-b5dc02b2.js → node-cjs/serve-a73b4871.cjs} +27405 -28602
- package/package.json +47 -40
- package/theme.d.ts +7 -2
- package/types/default-theme.d.ts +15 -2
- package/types/shared.d.ts +3 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { useRoute, useData } from 'vitepress'
|
|
3
|
+
import { useCopyCode } from '../composables/copy-code'
|
|
3
4
|
import { useSidebar } from '../composables/sidebar'
|
|
4
5
|
import NotFound from '../NotFound.vue'
|
|
5
6
|
import VPPage from './VPPage.vue'
|
|
@@ -9,6 +10,8 @@ import VPDoc from './VPDoc.vue'
|
|
|
9
10
|
const route = useRoute()
|
|
10
11
|
const { frontmatter } = useData()
|
|
11
12
|
const { hasSidebar } = useSidebar()
|
|
13
|
+
|
|
14
|
+
useCopyCode()
|
|
12
15
|
</script>
|
|
13
16
|
|
|
14
17
|
<template>
|
|
@@ -31,15 +34,23 @@ const { hasSidebar } = useSidebar()
|
|
|
31
34
|
<template #home-features-after><slot name="home-features-after" /></template>
|
|
32
35
|
</VPHome>
|
|
33
36
|
|
|
34
|
-
<VPDoc v-else
|
|
37
|
+
<VPDoc v-else>
|
|
38
|
+
<template #aside-top><slot name="aside-top" /></template>
|
|
39
|
+
<template #aside-outline-before><slot name="aside-outline-before" /></template>
|
|
40
|
+
<template #aside-outline-after><slot name="aside-outline-after" /></template>
|
|
41
|
+
<template #aside-ads-before><slot name="aside-ads-before" /></template>
|
|
42
|
+
<template #aside-ads-after><slot name="aside-ads-after" /></template>
|
|
43
|
+
<template #aside-bottom><slot name="aside-bottom" /></template>
|
|
44
|
+
</VPDoc>
|
|
35
45
|
</div>
|
|
36
46
|
</template>
|
|
37
47
|
|
|
38
48
|
<style scoped>
|
|
39
49
|
.VPContent {
|
|
40
50
|
flex-grow: 1;
|
|
51
|
+
flex-shrink: 0;
|
|
41
52
|
margin: 0 auto;
|
|
42
|
-
|
|
53
|
+
width: 100%;
|
|
43
54
|
}
|
|
44
55
|
|
|
45
56
|
.VPContent.is-home {
|
|
@@ -47,12 +58,6 @@ const { hasSidebar } = useSidebar()
|
|
|
47
58
|
max-width: 100%;
|
|
48
59
|
}
|
|
49
60
|
|
|
50
|
-
@media (max-width: 768px) {
|
|
51
|
-
.VPContent {
|
|
52
|
-
overflow-x: hidden;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
61
|
@media (min-width: 960px) {
|
|
57
62
|
.VPContent {
|
|
58
63
|
padding-top: var(--vp-nav-height);
|
|
@@ -61,14 +66,13 @@ const { hasSidebar } = useSidebar()
|
|
|
61
66
|
.VPContent.has-sidebar {
|
|
62
67
|
margin: 0;
|
|
63
68
|
padding-left: var(--vp-sidebar-width);
|
|
64
|
-
max-width: 100%;
|
|
65
69
|
}
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
@media (min-width: 1440px) {
|
|
69
73
|
.VPContent.has-sidebar {
|
|
70
74
|
padding-right: calc((100vw - var(--vp-layout-max-width)) / 2);
|
|
71
|
-
padding-left: calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width)
|
|
75
|
+
padding-left: calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width));
|
|
72
76
|
}
|
|
73
77
|
}
|
|
74
78
|
</style>
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
import { useData } from 'vitepress'
|
|
4
|
-
import
|
|
4
|
+
import { useSidebar } from '../composables/sidebar'
|
|
5
|
+
import VPDocAside from './VPDocAside.vue'
|
|
5
6
|
import VPDocFooter from './VPDocFooter.vue'
|
|
6
7
|
|
|
7
8
|
const { page } = useData()
|
|
9
|
+
const { hasSidebar } = useSidebar()
|
|
8
10
|
|
|
9
11
|
const pageName = computed(() => {
|
|
10
12
|
return page.value.relativePath.slice(0, page.value.relativePath.indexOf('/'))
|
|
@@ -12,23 +14,32 @@ const pageName = computed(() => {
|
|
|
12
14
|
</script>
|
|
13
15
|
|
|
14
16
|
<template>
|
|
15
|
-
<div class="VPDoc has-
|
|
17
|
+
<div class="VPDoc" :class="{ 'has-sidebar': hasSidebar }">
|
|
16
18
|
<div class="container">
|
|
17
19
|
<div class="aside">
|
|
20
|
+
<div class="aside-curtain" />
|
|
18
21
|
<div class="aside-container">
|
|
19
|
-
<div class="aside-curtain" />
|
|
20
22
|
<div class="aside-content">
|
|
21
|
-
<
|
|
23
|
+
<VPDocAside>
|
|
24
|
+
<template #aside-top><slot name="aside-top" /></template>
|
|
25
|
+
<template #aside-bottom><slot name="aside-bottom" /></template>
|
|
26
|
+
<template #aside-outline-before><slot name="aside-outline-before" /></template>
|
|
27
|
+
<template #aside-outline-after><slot name="aside-outline-after" /></template>
|
|
28
|
+
<template #aside-ads-before><slot name="aside-ads-before" /></template>
|
|
29
|
+
<template #aside-ads-after><slot name="aside-ads-after" /></template>
|
|
30
|
+
</VPDocAside>
|
|
22
31
|
</div>
|
|
23
32
|
</div>
|
|
24
33
|
</div>
|
|
25
34
|
|
|
26
35
|
<div class="content">
|
|
27
|
-
<
|
|
28
|
-
<
|
|
29
|
-
|
|
36
|
+
<div class="content-container">
|
|
37
|
+
<main class="main">
|
|
38
|
+
<Content class="vp-doc" :class="pageName" />
|
|
39
|
+
</main>
|
|
30
40
|
|
|
31
|
-
|
|
41
|
+
<VPDocFooter />
|
|
42
|
+
</div>
|
|
32
43
|
</div>
|
|
33
44
|
</div>
|
|
34
45
|
</div>
|
|
@@ -37,6 +48,7 @@ const pageName = computed(() => {
|
|
|
37
48
|
<style scoped>
|
|
38
49
|
.VPDoc {
|
|
39
50
|
padding: 32px 24px 96px;
|
|
51
|
+
width: 100%;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
@media (min-width: 768px) {
|
|
@@ -47,90 +59,82 @@ const pageName = computed(() => {
|
|
|
47
59
|
|
|
48
60
|
@media (min-width: 960px) {
|
|
49
61
|
.VPDoc {
|
|
50
|
-
padding: 32px
|
|
62
|
+
padding: 32px 32px 32px;
|
|
51
63
|
}
|
|
52
|
-
}
|
|
53
64
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
65
|
+
.VPDoc:not(.has-sidebar) .container {
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
max-width: 992px;
|
|
57
69
|
}
|
|
58
70
|
|
|
59
|
-
.VPDoc:not(.has-sidebar.
|
|
60
|
-
|
|
71
|
+
.VPDoc:not(.has-sidebar) .aside {
|
|
72
|
+
display: block;
|
|
61
73
|
}
|
|
62
74
|
|
|
63
|
-
.VPDoc
|
|
64
|
-
|
|
75
|
+
.VPDoc:not(.has-sidebar) .content {
|
|
76
|
+
max-width: 752px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@media (min-width: 1280px) {
|
|
81
|
+
.VPDoc .container {
|
|
82
|
+
display: flex;
|
|
83
|
+
justify-content: center;
|
|
65
84
|
}
|
|
66
85
|
|
|
67
|
-
.VPDoc
|
|
68
|
-
|
|
86
|
+
.VPDoc .aside {
|
|
87
|
+
display: block;
|
|
69
88
|
}
|
|
70
89
|
}
|
|
71
90
|
|
|
72
91
|
@media (min-width: 1440px) {
|
|
73
|
-
.VPDoc {
|
|
74
|
-
|
|
92
|
+
.VPDoc:not(.has-sidebar) .content {
|
|
93
|
+
max-width: 784px;
|
|
75
94
|
}
|
|
76
|
-
}
|
|
77
95
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
display: flex;
|
|
96
|
+
.VPDoc:not(.has-sidebar) .container {
|
|
97
|
+
max-width: 1104px;
|
|
81
98
|
}
|
|
82
99
|
}
|
|
83
100
|
|
|
101
|
+
.container {
|
|
102
|
+
margin: 0 auto;
|
|
103
|
+
width: 100%;
|
|
104
|
+
}
|
|
105
|
+
|
|
84
106
|
.aside {
|
|
85
107
|
position: relative;
|
|
86
108
|
display: none;
|
|
87
109
|
order: 2;
|
|
88
|
-
flex-shrink: 0;
|
|
89
110
|
flex-grow: 1;
|
|
90
|
-
padding-left:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@media (min-width: 1280px) {
|
|
96
|
-
.aside {
|
|
97
|
-
display: block;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@media (min-width: 1440px) {
|
|
102
|
-
.aside {
|
|
103
|
-
padding-left: 96px;
|
|
104
|
-
}
|
|
111
|
+
padding-left: 32px;
|
|
112
|
+
width: 100%;
|
|
113
|
+
max-width: 256px;
|
|
105
114
|
}
|
|
106
115
|
|
|
107
116
|
.aside-container {
|
|
108
|
-
position:
|
|
109
|
-
top:
|
|
110
|
-
|
|
111
|
-
padding-top: 32px;
|
|
112
|
-
|
|
117
|
+
position: sticky;
|
|
118
|
+
top: 0;
|
|
119
|
+
margin-top: calc(var(--vp-nav-height-desktop) * -1 - 32px);
|
|
120
|
+
padding-top: calc(var(--vp-nav-height-desktop) + 32px);
|
|
121
|
+
max-height: 100vh;
|
|
113
122
|
overflow-x: hidden;
|
|
114
123
|
overflow-y: auto;
|
|
124
|
+
scrollbar-width: none;
|
|
115
125
|
}
|
|
116
126
|
|
|
117
127
|
.aside-container::-webkit-scrollbar {
|
|
118
128
|
display: none;
|
|
119
129
|
}
|
|
120
130
|
|
|
121
|
-
@media (min-width: 1440px) {
|
|
122
|
-
.aside-container {
|
|
123
|
-
width: 256px;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
131
|
.aside-curtain {
|
|
128
132
|
position: fixed;
|
|
129
|
-
|
|
133
|
+
bottom: 0;
|
|
130
134
|
z-index: 10;
|
|
131
|
-
width:
|
|
132
|
-
height:
|
|
133
|
-
background: linear-gradient(var(--vp-c-bg
|
|
135
|
+
width: 224px;
|
|
136
|
+
height: 88px;
|
|
137
|
+
background: linear-gradient(transparent, var(--vp-c-bg) 70%);
|
|
134
138
|
}
|
|
135
139
|
|
|
136
140
|
.aside-content {
|
|
@@ -140,17 +144,28 @@ const pageName = computed(() => {
|
|
|
140
144
|
.content {
|
|
141
145
|
position: relative;
|
|
142
146
|
margin: 0 auto;
|
|
143
|
-
|
|
147
|
+
width: 100%;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@media (min-width: 960px) {
|
|
151
|
+
.content {
|
|
152
|
+
padding: 0 32px 96px;
|
|
153
|
+
}
|
|
144
154
|
}
|
|
145
155
|
|
|
146
156
|
@media (min-width: 1280px) {
|
|
147
157
|
.content {
|
|
148
158
|
order: 1;
|
|
149
159
|
margin: 0;
|
|
150
|
-
min-width:
|
|
160
|
+
min-width: 640px;
|
|
151
161
|
}
|
|
152
162
|
}
|
|
153
163
|
|
|
164
|
+
.content-container {
|
|
165
|
+
margin: 0 auto;
|
|
166
|
+
max-width: 688px;
|
|
167
|
+
}
|
|
168
|
+
|
|
154
169
|
.edit-link {
|
|
155
170
|
margin: 0 0 32px;
|
|
156
171
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useData } from 'vitepress'
|
|
3
|
+
import VPDocAsideOutline from './VPDocAsideOutline.vue'
|
|
4
|
+
import VPDocAsideCarbonAds from './VPDocAsideCarbonAds.vue'
|
|
5
|
+
|
|
6
|
+
const { page, theme } = useData()
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<div class="VPDocAside">
|
|
11
|
+
<slot name="aside-top" />
|
|
12
|
+
|
|
13
|
+
<slot name="aside-outline-before" />
|
|
14
|
+
<VPDocAsideOutline v-if="page.headers.length" />
|
|
15
|
+
<slot name="aside-outline-after" />
|
|
16
|
+
|
|
17
|
+
<slot name="aside-ads-before" />
|
|
18
|
+
<VPDocAsideCarbonAds v-if="theme.carbonAds" />
|
|
19
|
+
<slot name="aside-ads-after" />
|
|
20
|
+
|
|
21
|
+
<slot name="aside-bottom" />
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<style scoped>
|
|
26
|
+
.VPDocAside :deep(.VPDocAsideOutline + .VPDocAsideSponsors),
|
|
27
|
+
.VPDocAside :deep(.VPDocAsideOutline + .VPDocAsideCarbonAds) {
|
|
28
|
+
margin-top: 24px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.VPDocAside :deep(.VPDocAsideSponsors + .VPDocAsideCarbonAds) {
|
|
32
|
+
margin-top: 16px;
|
|
33
|
+
}
|
|
34
|
+
</style>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { defineAsyncComponent } from 'vue'
|
|
3
|
+
|
|
4
|
+
const VPCarbonAds = __ALGOLIA__
|
|
5
|
+
? defineAsyncComponent(() => import('./VPCarbonAds.vue'))
|
|
6
|
+
: () => null
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<div class="VPDocAsideCarbonAds">
|
|
11
|
+
<VPCarbonAds />
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref, computed } from 'vue'
|
|
3
3
|
import { useData } from 'vitepress'
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
resolveHeaders,
|
|
6
|
+
useOutline,
|
|
7
|
+
useActiveAnchor
|
|
8
|
+
} from '../composables/outline'
|
|
5
9
|
|
|
6
10
|
const { page, frontmatter } = useData()
|
|
7
11
|
|
|
12
|
+
const { hasOutline } = useOutline()
|
|
13
|
+
|
|
8
14
|
const container = ref()
|
|
9
15
|
const marker = ref()
|
|
10
16
|
|
|
@@ -22,7 +28,7 @@ function handleClick({ target: el }: Event) {
|
|
|
22
28
|
</script>
|
|
23
29
|
|
|
24
30
|
<template>
|
|
25
|
-
<div class="
|
|
31
|
+
<div class="VPDocAsideOutline" :class="{ 'has-outline': hasOutline }" ref="container">
|
|
26
32
|
<div class="outline-marker" ref="marker" />
|
|
27
33
|
|
|
28
34
|
<div class="outline-title">On this page</div>
|
|
@@ -54,14 +60,19 @@ function handleClick({ target: el }: Event) {
|
|
|
54
60
|
</template>
|
|
55
61
|
|
|
56
62
|
<style scoped>
|
|
57
|
-
.
|
|
63
|
+
.VPDocAsideOutline {
|
|
58
64
|
position: relative;
|
|
65
|
+
display: none;
|
|
59
66
|
border-left: 1px solid var(--vp-c-divider-light);
|
|
60
67
|
padding-left: 16px;
|
|
61
68
|
font-size: 13px;
|
|
62
69
|
font-weight: 500;
|
|
63
70
|
}
|
|
64
71
|
|
|
72
|
+
.VPDocAsideOutline.has-outline {
|
|
73
|
+
display: block;
|
|
74
|
+
}
|
|
75
|
+
|
|
65
76
|
.outline-marker {
|
|
66
77
|
position: absolute;
|
|
67
78
|
top: 32px;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import VPSponsors from './VPSponsors.vue'
|
|
3
|
+
|
|
4
|
+
export interface Sponsors {
|
|
5
|
+
tier?: string
|
|
6
|
+
size?: 'xmini' | 'mini' | 'small'
|
|
7
|
+
items: Sponsor[]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface Sponsor {
|
|
11
|
+
name: string
|
|
12
|
+
img: string
|
|
13
|
+
url: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
defineProps<{
|
|
17
|
+
tier?: string
|
|
18
|
+
size?: 'xmini' | 'mini' | 'small'
|
|
19
|
+
data: Sponsors[] | Sponsor[]
|
|
20
|
+
}>()
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<div class="VPDocAsideSponsors">
|
|
25
|
+
<VPSponsors
|
|
26
|
+
mode="aside"
|
|
27
|
+
:tier="tier"
|
|
28
|
+
:size="size"
|
|
29
|
+
:data="data"
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import { ref } from 'vue'
|
|
3
|
-
import { DefaultTheme } from 'vitepress'
|
|
4
3
|
import { useFlyout } from '../composables/flyout'
|
|
5
4
|
import VPIconChevronDown from './icons/VPIconChevronDown.vue'
|
|
6
5
|
import VPIconMoreHorizontal from './icons/VPIconMoreHorizontal.vue'
|
|
7
6
|
import VPMenu from './VPMenu.vue'
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
defineProps<{
|
|
10
9
|
icon?: any
|
|
11
10
|
button?: string
|
|
12
11
|
label?: string
|
|
@@ -141,7 +140,7 @@ function onBlur() {
|
|
|
141
140
|
transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
|
|
142
141
|
}
|
|
143
142
|
|
|
144
|
-
@media (min-width:
|
|
143
|
+
@media (min-width: 960px) {
|
|
145
144
|
.menu {
|
|
146
145
|
top: calc(var(--vp-nav-height-desktop) / 2 + 20px);
|
|
147
146
|
}
|
|
@@ -21,7 +21,7 @@ const { hasSidebar } = useSidebar()
|
|
|
21
21
|
z-index: var(--vp-z-index-footer);
|
|
22
22
|
border-top: 1px solid var(--vp-c-divider-light);
|
|
23
23
|
padding: 32px 24px;
|
|
24
|
-
background-color: var(--vp-c-bg
|
|
24
|
+
background-color: var(--vp-c-bg);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.VPFooter.has-sidebar {
|