vitepress 0.22.4 → 1.0.0-draft.1
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/client.d.ts +2 -3
- package/dist/client/app/components/ClientOnly.js +1 -1
- package/dist/client/app/index.js +1 -1
- package/dist/client/theme-default/Layout.vue +25 -183
- package/dist/client/theme-default/NotFound.vue +9 -8
- package/dist/client/theme-default/components/VPAlgoliaSearchBox.vue +127 -0
- package/dist/client/theme-default/components/VPBackdrop.vue +39 -0
- package/dist/client/theme-default/components/VPContent.vue +44 -0
- package/dist/client/theme-default/components/VPContentDoc.vue +173 -0
- package/dist/client/theme-default/components/VPContentDocFooter.vue +140 -0
- package/dist/client/theme-default/components/VPContentDocOutline.vue +108 -0
- package/dist/client/theme-default/components/VPFlyout.vue +149 -0
- package/dist/client/theme-default/components/VPLink.vue +37 -0
- package/dist/client/theme-default/components/VPLocalNav.vue +106 -0
- package/dist/client/theme-default/components/VPMenu.vue +79 -0
- package/dist/client/theme-default/components/VPMenuGroup.vue +35 -0
- package/dist/client/theme-default/components/VPMenuLink.vue +30 -0
- package/dist/client/theme-default/components/VPNav.vue +33 -0
- package/dist/client/theme-default/components/VPNavBar.vue +109 -0
- package/dist/client/theme-default/components/VPNavBarAppearance.vue +22 -0
- package/dist/client/theme-default/components/VPNavBarExtra.vue +107 -0
- package/dist/client/theme-default/components/VPNavBarHamburger.vue +79 -0
- package/dist/client/theme-default/components/VPNavBarMenu.vue +29 -0
- package/dist/client/theme-default/components/VPNavBarMenuGroup.vue +18 -0
- package/dist/client/theme-default/components/VPNavBarMenuLink.vue +56 -0
- package/dist/client/theme-default/components/VPNavBarSearch.vue +269 -0
- package/dist/client/theme-default/components/VPNavBarSocialLinks.vue +27 -0
- package/dist/client/theme-default/components/VPNavBarTitle.vue +44 -0
- package/dist/client/theme-default/components/VPNavBarTranslations.vue +74 -0
- package/dist/client/theme-default/components/VPNavScreen.vue +100 -0
- package/dist/client/theme-default/components/VPNavScreenAppearance.vue +30 -0
- package/dist/client/theme-default/components/VPNavScreenMenu.vue +24 -0
- package/dist/client/theme-default/components/VPNavScreenMenuGroup.vue +118 -0
- package/dist/client/theme-default/components/VPNavScreenMenuGroupLink.vue +33 -0
- package/dist/client/theme-default/components/VPNavScreenMenuGroupSection.vue +35 -0
- package/dist/client/theme-default/components/VPNavScreenMenuLink.vue +34 -0
- package/dist/client/theme-default/components/VPNavScreenSocialLinks.vue +14 -0
- package/dist/client/theme-default/components/VPNavScreenTranslations.vue +73 -0
- package/dist/client/theme-default/components/VPSidebar.vue +118 -0
- package/dist/client/theme-default/components/VPSidebarGroup.vue +44 -0
- package/dist/client/theme-default/components/VPSidebarLink.vue +57 -0
- package/dist/client/theme-default/components/VPSkipLink.vue +72 -0
- package/dist/client/theme-default/components/VPSocialLink.vue +63 -0
- package/dist/client/theme-default/components/VPSocialLinks.vue +27 -0
- package/dist/client/theme-default/components/VPSwitch.vue +66 -0
- package/dist/client/theme-default/components/VPSwitchAppearance.vue +74 -0
- package/dist/client/theme-default/components/icons/VPIconAlignJustify.vue +8 -0
- package/dist/client/theme-default/components/icons/VPIconAlignLeft.vue +8 -0
- package/dist/client/theme-default/components/icons/VPIconAlignRight.vue +8 -0
- package/dist/client/theme-default/components/icons/{ArrowLeft.vue → VPIconArrowLeft.vue} +0 -0
- package/dist/client/theme-default/components/icons/{ArrowRight.vue → VPIconArrowRight.vue} +0 -0
- package/dist/client/theme-default/components/icons/VPIconChevronDown.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconChevronLeft.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconChevronRight.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconChevronUp.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconDiscord.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconEdit.vue +6 -0
- package/dist/client/theme-default/components/icons/VPIconExternalLink.vue +13 -0
- package/dist/client/theme-default/components/icons/VPIconFacebook.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconGitHub.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconInstagram.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconLanguages.vue +9 -0
- package/dist/client/theme-default/components/icons/VPIconLinkedIn.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconMoon.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconMoreHorizontal.vue +7 -0
- package/dist/client/theme-default/components/icons/VPIconPlus.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconSlack.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconSun.vue +13 -0
- package/dist/client/theme-default/components/icons/VPIconTwitter.vue +5 -0
- package/dist/client/theme-default/components/icons/VPIconYouTube.vue +5 -0
- package/dist/client/theme-default/composables/edit-link.js +22 -0
- package/dist/client/theme-default/composables/flyout.js +40 -0
- package/dist/client/theme-default/composables/nav.js +27 -1
- package/dist/client/theme-default/composables/outline.js +130 -0
- package/dist/client/theme-default/composables/prev-next.js +18 -0
- package/dist/client/theme-default/composables/sidebar.js +57 -0
- package/dist/client/theme-default/fonts/inter-cyrillic-ext.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-cyrillic.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-greek-ext.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-greek.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-latin-ext.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-latin.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-vietnamese.woff2 +0 -0
- package/dist/client/theme-default/index.js +4 -4
- package/dist/client/theme-default/styles/base.css +200 -0
- package/dist/client/theme-default/styles/fonts.css +67 -0
- package/dist/client/theme-default/styles/utils.css +9 -0
- package/dist/client/theme-default/styles/vars.css +206 -66
- package/dist/client/theme-default/styles/vp-doc.css +419 -0
- package/dist/client/theme-default/support/sidebar.js +29 -0
- package/dist/client/theme-default/support/utils.js +43 -0
- package/dist/node/cli.js +3 -8
- package/dist/node/index.d.ts +104 -79
- package/dist/node/index.js +1 -1
- package/dist/node/{serve-3035f99b.js → serve-428d4610.js} +11418 -1415
- package/package.json +24 -20
- package/types/default-theme.d.ts +104 -79
- package/dist/client/theme-default/components/AlgoliaSearchBox.vue +0 -188
- package/dist/client/theme-default/components/BuySellAds.vue +0 -152
- package/dist/client/theme-default/components/CarbonAds.vue +0 -99
- package/dist/client/theme-default/components/EditLink.vue +0 -38
- package/dist/client/theme-default/components/Home.vue +0 -31
- package/dist/client/theme-default/components/HomeFeatures.vue +0 -143
- package/dist/client/theme-default/components/HomeFooter.vue +0 -50
- package/dist/client/theme-default/components/HomeHero.vue +0 -161
- package/dist/client/theme-default/components/LastUpdated.vue +0 -60
- package/dist/client/theme-default/components/NavBar.vue +0 -60
- package/dist/client/theme-default/components/NavBarTitle.vue +0 -41
- package/dist/client/theme-default/components/NavDropdownLink.vue +0 -135
- package/dist/client/theme-default/components/NavDropdownLinkItem.vue +0 -76
- package/dist/client/theme-default/components/NavLink.vue +0 -61
- package/dist/client/theme-default/components/NavLinks.vue +0 -52
- package/dist/client/theme-default/components/NextAndPrevLinks.vue +0 -88
- package/dist/client/theme-default/components/Page.vue +0 -53
- package/dist/client/theme-default/components/PageFooter.vue +0 -44
- package/dist/client/theme-default/components/SideBar.vue +0 -60
- package/dist/client/theme-default/components/SideBarLink.js +0 -68
- package/dist/client/theme-default/components/SideBarLinks.vue +0 -12
- package/dist/client/theme-default/components/ToggleSideBarButton.vue +0 -46
- package/dist/client/theme-default/components/icons/OutboundLink.vue +0 -31
- package/dist/client/theme-default/composables/activeSidebarLink.js +0 -99
- package/dist/client/theme-default/composables/editLink.js +0 -49
- package/dist/client/theme-default/composables/navLink.js +0 -42
- package/dist/client/theme-default/composables/nextAndPrevLinks.js +0 -37
- package/dist/client/theme-default/composables/repo.js +0 -38
- package/dist/client/theme-default/composables/sideBar.js +0 -57
- package/dist/client/theme-default/styles/code.css +0 -299
- package/dist/client/theme-default/styles/custom-blocks.css +0 -76
- package/dist/client/theme-default/styles/layout.css +0 -236
- package/dist/client/theme-default/styles/sidebar-links.css +0 -107
- package/dist/client/theme-default/support/sideBar.js +0 -46
- package/dist/client/theme-default/utils.js +0 -63
|
@@ -1,74 +1,214 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Colors Base
|
|
3
|
+
*
|
|
4
|
+
* These are the pure base color presets. Most of the time, you should not be
|
|
5
|
+
* using these colors directly in the theme but rather use "Colors Theme"
|
|
6
|
+
* instead because those are "Theme (light or dark)" dependant.
|
|
7
|
+
* -------------------------------------------------------------------------- */
|
|
8
|
+
|
|
9
|
+
:root {
|
|
10
|
+
--vp-c-white: #ffffff;
|
|
11
|
+
--vp-c-white-soft: #f9f9f9;
|
|
12
|
+
--vp-c-white-mute: #f1f1f1;
|
|
13
|
+
|
|
14
|
+
--vp-c-black: #1a1a1a;
|
|
15
|
+
--vp-c-black-pure: #000000;
|
|
16
|
+
--vp-c-black-soft: #242424;
|
|
17
|
+
--vp-c-black-mute: #2f2f2f;
|
|
18
|
+
|
|
19
|
+
--vp-c-gray: #8e8e8e;
|
|
20
|
+
--vp-c-gray-light-1: #aeaeae;
|
|
21
|
+
--vp-c-gray-light-2: #c7c7c7;
|
|
22
|
+
--vp-c-gray-light-3: #d1d1d1;
|
|
23
|
+
--vp-c-gray-light-4: #e5e5e5;
|
|
24
|
+
--vp-c-gray-light-5: #f2f2f2;
|
|
25
|
+
--vp-c-gray-dark-1: #636363;
|
|
26
|
+
--vp-c-gray-dark-2: #484848;
|
|
27
|
+
--vp-c-gray-dark-3: #3a3a3a;
|
|
28
|
+
--vp-c-gray-dark-4: #282828;
|
|
29
|
+
--vp-c-gray-dark-5: #202020;
|
|
30
|
+
|
|
31
|
+
--vp-c-divider-light-1: rgba(60, 60, 60, 0.29);
|
|
32
|
+
--vp-c-divider-light-2: rgba(60, 60, 60, 0.12);
|
|
33
|
+
--vp-c-divider-dark-1: rgba(84, 84, 84, 0.65);
|
|
34
|
+
--vp-c-divider-dark-2: rgba(84, 84, 84, 0.48);
|
|
35
|
+
|
|
36
|
+
--vp-c-text-light-1: var(--vp-c-indigo);
|
|
37
|
+
--vp-c-text-light-2: rgba(60, 60, 60, 0.70);
|
|
38
|
+
--vp-c-text-light-3: rgba(60, 60, 60, 0.33);
|
|
39
|
+
--vp-c-text-light-4: rgba(60, 60, 60, 0.18);
|
|
40
|
+
|
|
41
|
+
--vp-c-text-dark-1: rgba(255, 255, 255, 0.87);
|
|
42
|
+
--vp-c-text-dark-2: rgba(235, 235, 235, 0.60);
|
|
43
|
+
--vp-c-text-dark-3: rgba(235, 235, 235, 0.38);
|
|
44
|
+
--vp-c-text-dark-4: rgba(235, 235, 235, 0.18);
|
|
45
|
+
|
|
46
|
+
--vp-c-green: #42b883;
|
|
47
|
+
--vp-c-green-light: #42d392;
|
|
48
|
+
--vp-c-green-lighter: #35eb9a;
|
|
49
|
+
--vp-c-green-dark: #33a06f;
|
|
50
|
+
--vp-c-green-darker: #155f3e;
|
|
51
|
+
|
|
52
|
+
--vp-c-indigo: #213547;
|
|
53
|
+
--vp-c-indigo-soft: #476582;
|
|
54
|
+
--vp-c-indigo-light: #aac8e4;
|
|
55
|
+
|
|
56
|
+
--vp-c-blue: #3b8eed;
|
|
57
|
+
--vp-c-blue-light: #549ced;
|
|
58
|
+
--vp-c-blue-lighter: #50a2ff;
|
|
59
|
+
--vp-c-blue-dark: #3468a3;
|
|
60
|
+
--vp-c-blue-darker: #255489;
|
|
61
|
+
|
|
62
|
+
--vp-c-yellow: #ffc517;
|
|
63
|
+
--vp-c-yellow-light: #ffe417;
|
|
64
|
+
--vp-c-yellow-lighter: #ffff17;
|
|
65
|
+
--vp-c-yellow-dark: #e0ad15;
|
|
66
|
+
--vp-c-yellow-darker: #bc9112;
|
|
67
|
+
|
|
68
|
+
--vp-c-red: #ed3c50;
|
|
69
|
+
--vp-c-red-light: #f43771;
|
|
70
|
+
--vp-c-red-lighter: #fd1d7c;
|
|
71
|
+
--vp-c-red-dark: #cd2d3f;
|
|
72
|
+
--vp-c-red-darker: #ab2131;
|
|
73
|
+
|
|
74
|
+
--vp-c-purple: #de41e0;
|
|
75
|
+
--vp-c-purple-light: #e936eb;
|
|
76
|
+
--vp-c-purple-lighter: #f616f8;
|
|
77
|
+
--vp-c-purple-dark: #823c83;
|
|
78
|
+
--vp-c-purple-darker: #602960;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Colors Theme
|
|
83
|
+
* -------------------------------------------------------------------------- */
|
|
84
|
+
|
|
2
85
|
:root {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
--c-
|
|
8
|
-
|
|
9
|
-
--c-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
--c-divider-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
--c-text-light-
|
|
16
|
-
--c-text-light-
|
|
17
|
-
|
|
18
|
-
--c-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
--
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
--
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Z Indexes
|
|
33
|
-
*
|
|
34
|
-
* Algolia SearchBox has a z-index of 200, so make sure not to go above
|
|
35
|
-
* that value.
|
|
36
|
-
* --------------------------------------------------------------------- */
|
|
37
|
-
|
|
38
|
-
--z-index-navbar: 10;
|
|
39
|
-
--z-index-sidebar: 6;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Shadows
|
|
43
|
-
* --------------------------------------------------------------------- */
|
|
44
|
-
|
|
45
|
-
--shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
|
|
46
|
-
--shadow-2: 0 3px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.07);
|
|
47
|
-
--shadow-3: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
|
|
48
|
-
--shadow-4: 0 14px 44px rgba(0, 0, 0, 0.12), 0 3px 9px rgba(0, 0, 0, 0.12);
|
|
49
|
-
--shadow-5: 0 18px 56px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.16);
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Sizes
|
|
53
|
-
* --------------------------------------------------------------------- */
|
|
54
|
-
|
|
55
|
-
--header-height: 3.6rem;
|
|
86
|
+
--vp-c-bg: var(--vp-c-white);
|
|
87
|
+
--vp-c-bg-soft: var(--vp-c-white-soft);
|
|
88
|
+
--vp-c-bg-mute: var(--vp-c-white-mute);
|
|
89
|
+
--vp-c-bg-content: var(--vp-c-white);
|
|
90
|
+
--vp-c-bg-sidebar: var(--vp-c-white-soft);
|
|
91
|
+
|
|
92
|
+
--vp-c-divider: var(--vp-c-divider-light-1);
|
|
93
|
+
--vp-c-divider-light: var(--vp-c-divider-light-2);
|
|
94
|
+
|
|
95
|
+
--vp-c-divider-inverse: var(--vp-c-divider-dark-1);
|
|
96
|
+
--vp-c-divider-inverse-light: var(--vp-c-divider-dark-2);
|
|
97
|
+
|
|
98
|
+
--vp-c-text-1: var(--vp-c-text-light-1);
|
|
99
|
+
--vp-c-text-2: var(--vp-c-text-light-2);
|
|
100
|
+
--vp-c-text-3: var(--vp-c-text-light-3);
|
|
101
|
+
--vp-c-text-4: var(--vp-c-text-light-4);
|
|
102
|
+
|
|
103
|
+
--vp-c-text-inverse-1: var(--vp-c-text-dark-1);
|
|
104
|
+
--vp-c-text-inverse-2: var(--vp-c-text-dark-2);
|
|
105
|
+
--vp-c-text-inverse-3: var(--vp-c-text-dark-3);
|
|
106
|
+
--vp-c-text-inverse-4: var(--vp-c-text-dark-4);
|
|
107
|
+
|
|
108
|
+
--vp-c-text-code: var(--vp-c-indigo-soft);
|
|
109
|
+
|
|
110
|
+
--vp-c-brand: var(--vp-c-green);
|
|
111
|
+
--vp-c-brand-light: var(--vp-c-green-light);
|
|
112
|
+
--vp-c-brand-dark: var(--vp-c-green-dark);
|
|
56
113
|
}
|
|
57
114
|
|
|
58
|
-
|
|
115
|
+
.dark {
|
|
116
|
+
--vp-c-bg: var(--vp-c-black);
|
|
117
|
+
--vp-c-bg-soft: var(--vp-c-black-soft);
|
|
118
|
+
--vp-c-bg-mute: var(--vp-c-black-mute);
|
|
119
|
+
--vp-c-bg-content: var(--vp-c-bg-soft);
|
|
120
|
+
--vp-c-bg-sidebar: var(--vp-c-bg);
|
|
121
|
+
|
|
122
|
+
--vp-c-divider: var(--vp-c-divider-dark-1);
|
|
123
|
+
--vp-c-divider-light: var(--vp-c-divider-dark-2);
|
|
124
|
+
|
|
125
|
+
--vp-c-divider-inverse: var(--vp-c-divider-light-1);
|
|
126
|
+
--vp-c-divider-inverse-light: var(--vp-c-divider-light-2);
|
|
127
|
+
|
|
128
|
+
--vp-c-text-1: var(--vp-c-text-dark-1);
|
|
129
|
+
--vp-c-text-2: var(--vp-c-text-dark-2);
|
|
130
|
+
--vp-c-text-3: var(--vp-c-text-dark-3);
|
|
131
|
+
--vp-c-text-4: var(--vp-c-text-dark-4);
|
|
132
|
+
|
|
133
|
+
--vp-c-text-inverse-1: var(--vp-c-text-light-1);
|
|
134
|
+
--vp-c-text-inverse-2: var(--vp-c-text-light-2);
|
|
135
|
+
--vp-c-text-inverse-3: var(--vp-c-text-light-3);
|
|
136
|
+
--vp-c-text-inverse-4: var(--vp-c-text-light-4);
|
|
137
|
+
|
|
138
|
+
--vp-c-text-code: var(--vp-c-indigo-light);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Typography
|
|
143
|
+
* -------------------------------------------------------------------------- */
|
|
144
|
+
|
|
59
145
|
:root {
|
|
60
|
-
--
|
|
146
|
+
--vp-font-family-base: Inter, -apple-system,
|
|
147
|
+
BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
|
|
148
|
+
'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
149
|
+
--vp-font-family-mono: Menlo, Monaco, Consolas, 'Courier New', monospace;
|
|
150
|
+
}
|
|
61
151
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
152
|
+
/**
|
|
153
|
+
* Shadows
|
|
154
|
+
* -------------------------------------------------------------------------- */
|
|
65
155
|
|
|
66
|
-
|
|
67
|
-
--
|
|
156
|
+
:root {
|
|
157
|
+
--vp-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
|
|
158
|
+
--vp-shadow-2: 0 3px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.07);
|
|
159
|
+
--vp-shadow-3: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
|
|
160
|
+
--vp-shadow-4: 0 14px 44px rgba(0, 0, 0, 0.12), 0 3px 9px rgba(0, 0, 0, 0.12);
|
|
161
|
+
--vp-shadow-5: 0 18px 56px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.16);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Z-indexes
|
|
166
|
+
* -------------------------------------------------------------------------- */
|
|
167
|
+
|
|
168
|
+
:root {
|
|
169
|
+
--vp-z-index-local-nav: 10;
|
|
170
|
+
--vp-z-index-nav: 20;
|
|
171
|
+
--vp-z-backdrop: 30;
|
|
172
|
+
--vp-z-index-sidebar: 40;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Layouts
|
|
177
|
+
* -------------------------------------------------------------------------- */
|
|
178
|
+
|
|
179
|
+
:root {
|
|
180
|
+
--vp-layout-max-width: 1376px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Component: Nav
|
|
185
|
+
* -------------------------------------------------------------------------- */
|
|
186
|
+
|
|
187
|
+
:root {
|
|
188
|
+
--vp-nav-height-mobile: 56px;
|
|
189
|
+
--vp-nav-height-desktop: 72px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Component: Sidebar
|
|
194
|
+
* -------------------------------------------------------------------------- */
|
|
195
|
+
|
|
196
|
+
:root {
|
|
197
|
+
--vp-sidebar-width: 272px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Component: Code
|
|
202
|
+
* -------------------------------------------------------------------------- */
|
|
203
|
+
|
|
204
|
+
:root {
|
|
205
|
+
--vp-code-line-height: 24px;
|
|
206
|
+
--vp-code-font-size: 14px;
|
|
207
|
+
|
|
208
|
+
--vp-code-block-color: var(--vp-c-text-dark-1);
|
|
209
|
+
--vp-code-block-bg: #292d3e;
|
|
210
|
+
}
|
|
68
211
|
|
|
69
|
-
|
|
70
|
-
--code-
|
|
71
|
-
--code-font-size: 14px;
|
|
72
|
-
--code-inline-bg-color: rgba(27, 31, 35, 0.05);
|
|
73
|
-
--code-bg-color: #282c34;
|
|
212
|
+
.dark {
|
|
213
|
+
--vp-code-block-bg: var(--vp-c-bg-sidebar);
|
|
74
214
|
}
|
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Headings
|
|
3
|
+
* -------------------------------------------------------------------------- */
|
|
4
|
+
|
|
5
|
+
.vp-doc h1,
|
|
6
|
+
.vp-doc h2,
|
|
7
|
+
.vp-doc h3,
|
|
8
|
+
.vp-doc h4,
|
|
9
|
+
.vp-doc h5,
|
|
10
|
+
.vp-doc h6 {
|
|
11
|
+
position: relative;
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
outline: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.vp-doc h1 {
|
|
17
|
+
letter-spacing: -0.02em;
|
|
18
|
+
line-height: 40px;
|
|
19
|
+
font-size: 28px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.vp-doc h2 {
|
|
23
|
+
margin: 48px 0 0;
|
|
24
|
+
border-top: 1px solid var(--vp-c-divider-light);
|
|
25
|
+
padding-top: 24px;
|
|
26
|
+
letter-spacing: -0.02em;
|
|
27
|
+
line-height: 32px;
|
|
28
|
+
font-size: 24px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.vp-doc h3 {
|
|
32
|
+
margin: 48px 0 0;
|
|
33
|
+
letter-spacing: -0.01em;
|
|
34
|
+
line-height: 28px;
|
|
35
|
+
font-size: 20px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.vp-doc .header-anchor {
|
|
39
|
+
float: left;
|
|
40
|
+
margin-left: -0.87em;
|
|
41
|
+
padding-right: 0.23em;
|
|
42
|
+
font-weight: 500;
|
|
43
|
+
opacity: 0;
|
|
44
|
+
transition: color 0.25s, opacity 0.25s;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.vp-doc h1:hover .header-anchor,
|
|
48
|
+
.vp-doc h1 .header-anchor:focus,
|
|
49
|
+
.vp-doc h2:hover .header-anchor,
|
|
50
|
+
.vp-doc h2 .header-anchor:focus,
|
|
51
|
+
.vp-doc h3:hover .header-anchor,
|
|
52
|
+
.vp-doc h3 .header-anchor:focus,
|
|
53
|
+
.vp-doc h4:hover .header-anchor,
|
|
54
|
+
.vp-doc h4 .header-anchor:focus,
|
|
55
|
+
.vp-doc h5:hover .header-anchor,
|
|
56
|
+
.vp-doc h5 .header-anchor:focus,
|
|
57
|
+
.vp-doc h6:hover .header-anchor,
|
|
58
|
+
.vp-doc h6 .header-anchor:focus {
|
|
59
|
+
opacity: 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (min-width: 768px) {
|
|
63
|
+
.vp-doc h1 {
|
|
64
|
+
letter-spacing: -0.02em;
|
|
65
|
+
line-height: 40px;
|
|
66
|
+
font-size: 32px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Paragraph and inline elements
|
|
72
|
+
* -------------------------------------------------------------------------- */
|
|
73
|
+
|
|
74
|
+
.vp-doc p,
|
|
75
|
+
.vp-doc summary {
|
|
76
|
+
margin: 16px 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.vp-doc p {
|
|
80
|
+
line-height: 28px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.vp-doc blockquote {
|
|
84
|
+
margin: 16px 0;
|
|
85
|
+
border-left: 2px solid var(--vp-c-divider);
|
|
86
|
+
padding-left: 16px;
|
|
87
|
+
transition: border-color 0.5s;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.vp-doc blockquote > p {
|
|
91
|
+
margin: 0;
|
|
92
|
+
font-size: 16px;
|
|
93
|
+
color: var(--vp-c-text-2);
|
|
94
|
+
transition: color 0.5s;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.vp-doc a {
|
|
98
|
+
font-weight: 500;
|
|
99
|
+
color: var(--vp-c-brand);
|
|
100
|
+
text-decoration-style: dotted;
|
|
101
|
+
transition: color 0.25s;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.vp-doc a:hover {
|
|
105
|
+
color: var(--vp-c-brand-dark);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.vp-doc strong {
|
|
109
|
+
font-weight: 600;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Lists
|
|
114
|
+
* -------------------------------------------------------------------------- */
|
|
115
|
+
|
|
116
|
+
.vp-doc ul,
|
|
117
|
+
.vp-doc ol {
|
|
118
|
+
margin: 16px 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.vp-doc ul {
|
|
122
|
+
padding-left: 1.25rem;
|
|
123
|
+
list-style: disc;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Table
|
|
128
|
+
* -------------------------------------------------------------------------- */
|
|
129
|
+
|
|
130
|
+
.vp-doc table {
|
|
131
|
+
display: block;
|
|
132
|
+
border-collapse: collapse;
|
|
133
|
+
margin: 20px 0;
|
|
134
|
+
overflow-x: auto;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.vp-doc tr {
|
|
138
|
+
border-top: 1px solid var(--vp-c-divider);
|
|
139
|
+
transition: background-color 0.5s;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.vp-doc tr:nth-child(2n) {
|
|
143
|
+
background-color: var(--vp-c-bg-soft);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.dark .vp-doc tr:nth-child(2n) {
|
|
147
|
+
background-color: var(--vp-c-bg-mute);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.vp-doc th,
|
|
151
|
+
.vp-doc td {
|
|
152
|
+
border: 1px solid var(--vp-c-divider);
|
|
153
|
+
padding: 12px 16px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.vp-doc th {
|
|
157
|
+
font-size: 16px;
|
|
158
|
+
font-weight: 600;
|
|
159
|
+
background-color: var(--vp-c-white-soft);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.dark .vp-doc th {
|
|
163
|
+
background-color: var(--vp-c-black);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Decorational elements
|
|
168
|
+
* -------------------------------------------------------------------------- */
|
|
169
|
+
|
|
170
|
+
.vp-doc hr {
|
|
171
|
+
margin: 16px 0;
|
|
172
|
+
border: none;
|
|
173
|
+
border-top: 1px solid var(--vp-c-divider-light);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Code
|
|
178
|
+
* -------------------------------------------------------------------------- */
|
|
179
|
+
|
|
180
|
+
/* inline code */
|
|
181
|
+
.vp-doc :not(pre, h1, h2, h3, h4, h5, h6) > code {
|
|
182
|
+
font-size: var(--vp-code-font-size);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.vp-doc :not(pre) > code {
|
|
186
|
+
border-radius: 4px;
|
|
187
|
+
padding: 4px 6px;
|
|
188
|
+
color: var(--vp-c-text-code);
|
|
189
|
+
background-color: var(--vp-c-bg-mute);
|
|
190
|
+
transition: color 0.5s, background-color 0.5s;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.vp-doc h1 > code,
|
|
194
|
+
.vp-doc h2 > code,
|
|
195
|
+
.vp-doc h3 > code {
|
|
196
|
+
font-size: 0.9em;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@media (min-width: 768px) {
|
|
200
|
+
.vp-doc :not(pre) > code {
|
|
201
|
+
white-space: nowrap;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.vp-doc a > code {
|
|
206
|
+
color: var(--vp-c-brand-dark);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.vp-doc div[class*='language-'] {
|
|
210
|
+
position: relative;
|
|
211
|
+
margin: 20px -24px;
|
|
212
|
+
background-color: var(--vp-code-block-bg);
|
|
213
|
+
overflow-x: auto;
|
|
214
|
+
transition: background-color 0.5s;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@media (min-width: 640px) {
|
|
218
|
+
.vp-doc div[class*='language-'] {
|
|
219
|
+
border-radius: 8px;
|
|
220
|
+
margin: 20px 0;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@media (max-width: 639px) {
|
|
225
|
+
.vp-doc li div[class*='language-'] {
|
|
226
|
+
border-radius: 8px 0 0 8px;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.vp-doc div[class*='language-'] + div[class*='language-'],
|
|
231
|
+
.vp-doc div[class$='-api'] + div[class*='language-'],
|
|
232
|
+
.vp-doc div[class*='language-'] + div[class$='-api'] > div[class*='language-'] {
|
|
233
|
+
margin-top: -12px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.vp-doc [class*='language-'] pre,
|
|
237
|
+
.vp-doc [class*='language-'] code {
|
|
238
|
+
text-align: left;
|
|
239
|
+
white-space: pre;
|
|
240
|
+
word-spacing: normal;
|
|
241
|
+
word-break: normal;
|
|
242
|
+
word-wrap: normal;
|
|
243
|
+
-moz-tab-size: 4;
|
|
244
|
+
-o-tab-size: 4;
|
|
245
|
+
tab-size: 4;
|
|
246
|
+
-webkit-hyphens: none;
|
|
247
|
+
-moz-hyphens: none;
|
|
248
|
+
-ms-hyphens: none;
|
|
249
|
+
hyphens: none;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.vp-doc [class*='language-'] pre {
|
|
253
|
+
position: relative;
|
|
254
|
+
z-index: 1;
|
|
255
|
+
margin: 0;
|
|
256
|
+
padding: 16px 24px;
|
|
257
|
+
background: transparent;
|
|
258
|
+
overflow-x: auto;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.vp-doc [class*='language-'] code {
|
|
262
|
+
display: inline-block;
|
|
263
|
+
padding: 0;
|
|
264
|
+
line-height: var(--vp-code-line-height);
|
|
265
|
+
font-size: var(--vp-code-font-size);
|
|
266
|
+
color: var(--vp-code-block-color);
|
|
267
|
+
transition: color 0.5s;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.vp-doc .highlight-lines {
|
|
271
|
+
position: absolute;
|
|
272
|
+
top: 0;
|
|
273
|
+
bottom: 0;
|
|
274
|
+
left: 0;
|
|
275
|
+
padding: 13px 0 11px;
|
|
276
|
+
width: 100%;
|
|
277
|
+
font-family: var(--vp-font-family-mono);
|
|
278
|
+
line-height: var(--vp-code-line-height);
|
|
279
|
+
font-size: var(--vp-code-font-size);
|
|
280
|
+
user-select: none;
|
|
281
|
+
overflow: hidden;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.vp-doc .highlight-lines .highlighted {
|
|
285
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
286
|
+
transition: background-color 0.5s;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.dark .vp-doc .highlight-lines .highlighted {
|
|
290
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.vp-doc div[class*='language-'].line-numbers-mode {
|
|
294
|
+
padding-left: 32px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.vp-doc .line-numbers-wrapper {
|
|
298
|
+
position: absolute;
|
|
299
|
+
top: 0;
|
|
300
|
+
bottom: 0;
|
|
301
|
+
left: 0;
|
|
302
|
+
z-index: 3;
|
|
303
|
+
border-right: 1px solid var(--vp-c-divider-light);
|
|
304
|
+
padding: 13px 0 11px;
|
|
305
|
+
width: 32px;
|
|
306
|
+
text-align: center;
|
|
307
|
+
font-family: var(--vp-font-family-mono);
|
|
308
|
+
line-height: var(--vp-code-line-height);
|
|
309
|
+
font-size: var(--vp-code-font-size);
|
|
310
|
+
color: var(--vp-c-text-3);
|
|
311
|
+
transition: border-color 0.5s, color 0.5s;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.vp-doc [class*='language-']:before {
|
|
315
|
+
position: absolute;
|
|
316
|
+
top: 4px;
|
|
317
|
+
right: 10px;
|
|
318
|
+
z-index: 2;
|
|
319
|
+
font-size: 12px;
|
|
320
|
+
font-weight: 500;
|
|
321
|
+
color: var(--vp-c-text-dark-3);
|
|
322
|
+
transition: color 0.5s;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.vp-doc [class~='language-vue']:before { content: 'vue'; }
|
|
326
|
+
.vp-doc [class~='language-html']:before { content: 'html'; }
|
|
327
|
+
.vp-doc [class~='language-vue-html']:before { content: 'template'; }
|
|
328
|
+
.vp-doc [class~='language-css']:before { content: 'css'; }
|
|
329
|
+
.vp-doc [class~='language-js']:before { content: 'js'; }
|
|
330
|
+
.vp-doc [class~='language-jsx']:before { content: 'jsx'; }
|
|
331
|
+
.vp-doc [class~='language-ts']:before { content: 'ts'; }
|
|
332
|
+
.vp-doc [class~='language-tsx']:before { content: 'tsx'; }
|
|
333
|
+
.vp-doc [class~='language-json']:before { content: 'json'; }
|
|
334
|
+
.vp-doc [class~='language-sh']:before { content: 'sh'; }
|
|
335
|
+
.vp-doc [class~='language-bash']:before { content: 'sh'; }
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Code: Highlight
|
|
339
|
+
*
|
|
340
|
+
* prism.js tomorrow night eighties theme.
|
|
341
|
+
* https://github.com/chriskempson/tomorrow-theme
|
|
342
|
+
*
|
|
343
|
+
* @author Rose Pritchard
|
|
344
|
+
* -------------------------------------------------------------------------- */
|
|
345
|
+
|
|
346
|
+
.token.comment,
|
|
347
|
+
.token.block-comment,
|
|
348
|
+
.token.prolog,
|
|
349
|
+
.token.doctype,
|
|
350
|
+
.token.cdata {
|
|
351
|
+
color: #999;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.token.punctuation {
|
|
355
|
+
color: #ccc;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.token.tag,
|
|
359
|
+
.token.attr-name,
|
|
360
|
+
.token.namespace,
|
|
361
|
+
.token.deleted {
|
|
362
|
+
color: #e2777a;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.token.function-name {
|
|
366
|
+
color: #6196cc;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.token.boolean,
|
|
370
|
+
.token.number,
|
|
371
|
+
.token.function {
|
|
372
|
+
color: #f08d49;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.token.property,
|
|
376
|
+
.token.class-name,
|
|
377
|
+
.token.constant,
|
|
378
|
+
.token.symbol {
|
|
379
|
+
color: #f8c555;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.token.selector,
|
|
383
|
+
.token.important,
|
|
384
|
+
.token.atrule,
|
|
385
|
+
.token.keyword,
|
|
386
|
+
.token.builtin {
|
|
387
|
+
color: #cc99cd;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.token.string,
|
|
391
|
+
.token.char,
|
|
392
|
+
.token.attr-value,
|
|
393
|
+
.token.regex,
|
|
394
|
+
.token.variable {
|
|
395
|
+
color: #7ec699;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.token.operator,
|
|
399
|
+
.token.entity,
|
|
400
|
+
.token.url {
|
|
401
|
+
color: #67cdcc;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.token.important,
|
|
405
|
+
.token.bold {
|
|
406
|
+
font-weight: bold;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.token.italic {
|
|
410
|
+
font-style: italic;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.token.entity {
|
|
414
|
+
cursor: help;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.token.inserted {
|
|
418
|
+
color: green;
|
|
419
|
+
}
|