@vuepress/theme-default 2.0.0-rc.8 → 2.0.0-rc.80
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/lib/client/components/VPAutoLink.vue +32 -0
- package/lib/client/components/VPDarkIcon.vue +8 -0
- package/lib/client/components/VPDropdownTransition.vue +43 -0
- package/lib/client/components/VPEditIcon.vue +12 -0
- package/lib/client/components/VPFadeSlideYTransition.vue +43 -0
- package/lib/client/components/VPHome.vue +38 -0
- package/lib/client/components/VPHomeFeatures.vue +65 -0
- package/lib/client/components/{HomeFooter.vue → VPHomeFooter.vue} +16 -3
- package/lib/client/components/VPHomeHero.vue +185 -0
- package/lib/client/components/VPLightIcon.vue +28 -0
- package/lib/client/components/VPNavbar.vue +134 -0
- package/lib/client/components/{NavbarBrand.vue → VPNavbarBrand.vue} +41 -16
- package/lib/client/components/VPNavbarDropdown.vue +331 -0
- package/lib/client/components/VPNavbarItems.vue +111 -0
- package/lib/client/components/VPPage.vue +69 -0
- package/lib/client/components/VPPageMeta.vue +134 -0
- package/lib/client/components/VPPageNav.vue +125 -0
- package/lib/client/components/VPSidebar.vue +113 -0
- package/lib/client/components/VPSidebarItem.vue +186 -0
- package/lib/client/components/{SidebarItems.vue → VPSidebarItems.vue} +27 -7
- package/lib/client/components/VPToggleColorModeButton.vue +55 -0
- package/lib/client/components/VPToggleSidebarButton.vue +92 -0
- package/lib/client/components/global/Badge.vue +84 -18
- package/lib/client/components/global/index.d.ts +1 -3
- package/lib/client/components/global/index.js +1 -3
- package/lib/client/composables/index.d.ts +9 -1
- package/lib/client/composables/index.js +9 -1
- package/lib/client/composables/useContributors.d.ts +3 -0
- package/lib/client/composables/useContributors.js +11 -0
- package/lib/client/composables/useDarkMode.d.ts +0 -1
- package/lib/client/composables/useDarkMode.js +19 -16
- package/lib/client/composables/useData.d.ts +13 -0
- package/lib/client/composables/useData.js +15 -0
- package/lib/client/composables/useEditLink.d.ts +3 -0
- package/lib/client/composables/useEditLink.js +28 -0
- package/lib/client/composables/useHeaders.d.ts +9 -0
- package/lib/client/composables/useHeaders.js +38 -0
- package/lib/client/composables/useLastUpdated.d.ts +2 -0
- package/lib/client/composables/useLastUpdated.js +14 -0
- package/lib/client/composables/useNavbarConfig.d.ts +3 -0
- package/lib/client/composables/useNavbarConfig.js +29 -0
- package/lib/client/composables/useNavbarRepo.d.ts +6 -0
- package/lib/client/composables/useNavbarRepo.js +38 -0
- package/lib/client/composables/useNavbarSelectLanguage.d.ts +6 -0
- package/lib/client/composables/useNavbarSelectLanguage.js +55 -0
- package/lib/client/composables/useNavigate.d.ts +1 -0
- package/lib/client/composables/useNavigate.js +22 -0
- package/lib/client/composables/useRelatedLinks.d.ts +8 -0
- package/lib/client/composables/useRelatedLinks.js +90 -0
- package/lib/client/composables/useScrollPromise.js +3 -1
- package/lib/client/composables/useSidebarItems.d.ts +21 -21
- package/lib/client/composables/useSidebarItems.js +96 -86
- package/lib/client/composables/useUpdateDeviceStatus.d.ts +1 -1
- package/lib/client/composables/useUpdateDeviceStatus.js +10 -5
- package/lib/client/config.d.ts +3 -2
- package/lib/client/config.js +8 -23
- package/lib/client/index.d.ts +2 -1
- package/lib/client/index.js +0 -1
- package/lib/client/layouts/Layout.vue +127 -54
- package/lib/client/layouts/NotFound.vue +25 -11
- package/lib/client/shim.d.ts +6 -5
- package/lib/client/styles/_mixins.scss +4 -4
- package/lib/client/styles/_variables.module.scss +1 -1
- package/lib/client/styles/_variables.scss +2 -1
- package/lib/client/styles/arrow.scss +18 -24
- package/lib/client/styles/code-group.scss +35 -30
- package/lib/client/styles/content/code.scss +23 -0
- package/lib/client/styles/content/index.scss +3 -0
- package/lib/client/styles/content/normalize.scss +39 -0
- package/lib/client/styles/{toc.scss → content/toc.scss} +1 -1
- package/lib/client/styles/external-link-icon.scss +36 -0
- package/lib/client/styles/index.scss +3 -13
- package/lib/client/styles/layout.scss +5 -197
- package/lib/client/styles/normalize.scss +1 -194
- package/lib/client/styles/plugins.scss +28 -0
- package/lib/client/styles/vars-dark.scss +20 -58
- package/lib/client/styles/vars.scss +54 -129
- package/lib/client/typings.d.ts +13 -0
- package/lib/client/typings.js +1 -0
- package/lib/client/utils/index.d.ts +2 -2
- package/lib/client/utils/index.js +2 -2
- package/lib/client/utils/isActiveSidebarItem.d.ts +3 -3
- package/lib/client/utils/isActiveSidebarItem.js +1 -1
- package/lib/client/utils/resolveAutoLink.d.ts +9 -0
- package/lib/client/utils/resolveAutoLink.js +17 -0
- package/lib/client/utils/resolveEditLink.d.ts +3 -3
- package/lib/client/utils/resolveEditLink.js +3 -3
- package/lib/client/utils/resolvePrefix.d.ts +1 -0
- package/lib/client/utils/resolvePrefix.js +4 -0
- package/lib/client/utils/resolveRepoType.d.ts +1 -1
- package/lib/client/utils/resolveRepoType.js +4 -4
- package/lib/node/defaultTheme.d.ts +2 -1
- package/lib/node/defaultTheme.js +50 -56
- package/lib/node/index.d.ts +2 -3
- package/lib/node/index.js +0 -3
- package/lib/node/typings.d.ts +58 -0
- package/lib/node/typings.js +1 -0
- package/lib/node/utils/assignDefaultLocaleOptions.js +3 -7
- package/lib/node/utils/index.d.ts +1 -1
- package/lib/node/utils/index.js +1 -1
- package/lib/node/utils/resolveMarkdownHintLocales.d.ts +9 -0
- package/lib/node/utils/resolveMarkdownHintLocales.js +19 -0
- package/lib/shared/index.d.ts +5 -3
- package/lib/shared/index.js +1 -3
- package/lib/shared/nav.d.ts +19 -30
- package/lib/shared/navbar.d.ts +21 -0
- package/lib/shared/navbar.js +1 -0
- package/lib/shared/options.d.ts +36 -65
- package/lib/shared/page.d.ts +9 -6
- package/lib/shared/sidebar.d.ts +26 -0
- package/lib/shared/sidebar.js +1 -0
- package/package.json +29 -27
- package/templates/build.html +16 -10
- package/lib/client/components/AutoLink.vue +0 -113
- package/lib/client/components/DropdownTransition.vue +0 -25
- package/lib/client/components/Home.vue +0 -15
- package/lib/client/components/HomeContent.vue +0 -5
- package/lib/client/components/HomeFeatures.vue +0 -22
- package/lib/client/components/HomeHero.vue +0 -97
- package/lib/client/components/Navbar.vue +0 -79
- package/lib/client/components/NavbarDropdown.vue +0 -126
- package/lib/client/components/NavbarItems.vue +0 -199
- package/lib/client/components/Page.vue +0 -31
- package/lib/client/components/PageMeta.vue +0 -124
- package/lib/client/components/PageNav.vue +0 -122
- package/lib/client/components/Sidebar.vue +0 -18
- package/lib/client/components/SidebarItem.vue +0 -87
- package/lib/client/components/ToggleColorModeButton.vue +0 -57
- package/lib/client/components/ToggleSidebarButton.vue +0 -24
- package/lib/client/components/global/CodeGroup.d.ts +0 -6
- package/lib/client/components/global/CodeGroup.js +0 -120
- package/lib/client/components/global/CodeGroupItem.vue +0 -27
- package/lib/client/composables/useThemeData.d.ts +0 -4
- package/lib/client/composables/useThemeData.js +0 -3
- package/lib/client/styles/badge.scss +0 -36
- package/lib/client/styles/code.scss +0 -263
- package/lib/client/styles/custom-container.scss +0 -142
- package/lib/client/styles/home.scss +0 -168
- package/lib/client/styles/navbar-dropdown.scss +0 -183
- package/lib/client/styles/navbar.scss +0 -197
- package/lib/client/styles/page.scss +0 -87
- package/lib/client/styles/sidebar.scss +0 -134
- package/lib/client/styles/transitions.scss +0 -22
- package/lib/client/utils/getNavLink.d.ts +0 -15
- package/lib/client/utils/getNavLink.js +0 -18
- package/lib/client/utils/getResolveRouteWithRedirect.d.ts +0 -5
- package/lib/client/utils/getResolveRouteWithRedirect.js +0 -22
- package/lib/node/utils/resolveContainerPluginOptions.d.ts +0 -8
- package/lib/node/utils/resolveContainerPluginOptions.js +0 -17
|
@@ -1,203 +1,11 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import '_variables';
|
|
1
|
+
@use 'variables' as *;
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
padding-left: var(--sidebar-width);
|
|
3
|
+
:root {
|
|
4
|
+
scroll-behavior: smooth;
|
|
7
5
|
}
|
|
8
6
|
|
|
9
|
-
.
|
|
10
|
-
|
|
11
|
-
z-index: 20;
|
|
12
|
-
top: 0;
|
|
13
|
-
left: 0;
|
|
14
|
-
right: 0;
|
|
15
|
-
height: var(--navbar-height);
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
border-bottom: 1px solid var(--c-border);
|
|
18
|
-
background-color: var(--c-bg-navbar);
|
|
19
|
-
transition:
|
|
20
|
-
background-color var(--t-color),
|
|
21
|
-
border-color var(--t-color);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.sidebar {
|
|
25
|
-
font-size: 16px;
|
|
26
|
-
width: var(--sidebar-width);
|
|
27
|
-
position: fixed;
|
|
28
|
-
z-index: 10;
|
|
29
|
-
margin: 0;
|
|
30
|
-
top: var(--navbar-height);
|
|
31
|
-
left: 0;
|
|
32
|
-
bottom: 0;
|
|
33
|
-
box-sizing: border-box;
|
|
34
|
-
border-right: 1px solid var(--c-border);
|
|
35
|
-
overflow-y: auto;
|
|
36
|
-
scrollbar-width: thin;
|
|
37
|
-
scrollbar-color: var(--c-brand) var(--c-border);
|
|
38
|
-
background-color: var(--c-bg-sidebar);
|
|
39
|
-
transition:
|
|
40
|
-
transform var(--t-transform),
|
|
41
|
-
background-color var(--t-color),
|
|
42
|
-
border-color var(--t-color);
|
|
43
|
-
&::-webkit-scrollbar {
|
|
44
|
-
width: 7px;
|
|
45
|
-
}
|
|
46
|
-
&::-webkit-scrollbar-track {
|
|
47
|
-
background-color: var(--c-border);
|
|
48
|
-
}
|
|
49
|
-
&::-webkit-scrollbar-thumb {
|
|
50
|
-
background-color: var(--c-brand);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.sidebar-mask {
|
|
55
|
-
position: fixed;
|
|
56
|
-
z-index: 9;
|
|
57
|
-
top: 0;
|
|
58
|
-
left: 0;
|
|
59
|
-
width: 100vw;
|
|
60
|
-
height: 100vh;
|
|
61
|
-
display: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.theme-container {
|
|
65
|
-
&.sidebar-open {
|
|
66
|
-
.sidebar-mask {
|
|
67
|
-
display: block;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.navbar > .toggle-sidebar-button .icon {
|
|
71
|
-
span {
|
|
72
|
-
&:nth-child(1) {
|
|
73
|
-
transform: rotate(45deg) translate3d(5.5px, 5.5px, 0);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&:nth-child(2) {
|
|
77
|
-
transform: scale3d(0, 1, 1);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&:nth-child(3) {
|
|
81
|
-
transform: rotate(-45deg) translate3d(6px, -6px, 0);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&:nth-child(1),
|
|
85
|
-
&:nth-child(3) {
|
|
86
|
-
transform-origin: center;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&.no-navbar {
|
|
93
|
-
.theme-default-content {
|
|
94
|
-
h1,
|
|
95
|
-
h2,
|
|
96
|
-
h3,
|
|
97
|
-
h4,
|
|
98
|
-
h5,
|
|
99
|
-
h6 {
|
|
100
|
-
margin-top: 1.5rem;
|
|
101
|
-
padding-top: 0;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.page {
|
|
106
|
-
padding-top: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.sidebar {
|
|
110
|
-
top: 0;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
.theme-container.no-sidebar {
|
|
115
|
-
.sidebar {
|
|
7
|
+
.vp-hide-mobile {
|
|
8
|
+
@media screen and (max-width: $MQMobile) {
|
|
116
9
|
display: none;
|
|
117
|
-
|
|
118
|
-
@media (max-width: $MQMobile) {
|
|
119
|
-
display: block;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.page {
|
|
124
|
-
padding-left: 0;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.theme-default-content {
|
|
129
|
-
a:not(.header-anchor):hover {
|
|
130
|
-
text-decoration: underline;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
img {
|
|
134
|
-
max-width: 100%;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
h1,
|
|
138
|
-
h2,
|
|
139
|
-
h3,
|
|
140
|
-
h4,
|
|
141
|
-
h5,
|
|
142
|
-
h6 {
|
|
143
|
-
margin-top: calc(0.5rem - var(--navbar-height));
|
|
144
|
-
padding-top: calc(1rem + var(--navbar-height));
|
|
145
|
-
margin-bottom: 0;
|
|
146
|
-
|
|
147
|
-
&:first-child {
|
|
148
|
-
margin-bottom: 1rem;
|
|
149
|
-
|
|
150
|
-
+ p,
|
|
151
|
-
+ pre,
|
|
152
|
-
+ .custom-container {
|
|
153
|
-
margin-top: 2rem;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// narrow desktop / iPad
|
|
160
|
-
@media (max-width: $MQNarrow) {
|
|
161
|
-
.sidebar {
|
|
162
|
-
font-size: 15px;
|
|
163
|
-
width: var(--sidebar-width-mobile);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.page {
|
|
167
|
-
padding-left: var(--sidebar-width-mobile);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
// wide mobile
|
|
172
|
-
@media (max-width: $MQMobile) {
|
|
173
|
-
.sidebar {
|
|
174
|
-
top: 0;
|
|
175
|
-
padding-top: var(--navbar-height);
|
|
176
|
-
transform: translateX(-100%);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.page {
|
|
180
|
-
padding-left: 0;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.theme-container {
|
|
184
|
-
&.sidebar-open {
|
|
185
|
-
.sidebar {
|
|
186
|
-
transform: translateX(0);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
&.no-navbar {
|
|
191
|
-
.sidebar {
|
|
192
|
-
padding-top: 0;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// narrow mobile
|
|
199
|
-
@media (max-width: $MQMobileNarrow) {
|
|
200
|
-
h1 {
|
|
201
|
-
font-size: 1.9rem;
|
|
202
10
|
}
|
|
203
11
|
}
|
|
@@ -1,200 +1,7 @@
|
|
|
1
|
-
html,
|
|
2
|
-
body {
|
|
3
|
-
padding: 0;
|
|
4
|
-
margin: 0;
|
|
5
|
-
background-color: var(--c-bg);
|
|
6
|
-
transition: background-color var(--t-color);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
html.dark {
|
|
10
|
-
color-scheme: dark;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
html {
|
|
14
|
-
font-size: 16px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
1
|
body {
|
|
18
2
|
font-family: var(--font-family);
|
|
19
|
-
-webkit-font-smoothing: antialiased;
|
|
20
|
-
-moz-osx-font-smoothing: grayscale;
|
|
21
|
-
font-size: 1rem;
|
|
22
|
-
color: var(--c-text);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
a {
|
|
26
|
-
font-weight: 500;
|
|
27
|
-
color: var(--c-text-accent);
|
|
28
|
-
text-decoration: none;
|
|
29
|
-
overflow-wrap: break-word;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
p a code {
|
|
33
|
-
font-weight: 400;
|
|
34
|
-
color: var(--c-text-accent);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
kbd {
|
|
38
|
-
font-family: var(--font-family-code);
|
|
39
|
-
color: var(--c-text);
|
|
40
|
-
background: var(--c-bg-lighter);
|
|
41
|
-
border: solid 0.15rem var(--c-border-dark);
|
|
42
|
-
border-bottom: solid 0.25rem var(--c-border-dark);
|
|
43
|
-
border-radius: 0.15rem;
|
|
44
|
-
padding: 0 0.15em;
|
|
45
3
|
}
|
|
46
4
|
|
|
47
5
|
code {
|
|
48
|
-
font-family: var(--font-family
|
|
49
|
-
color: var(--c-text-lighter);
|
|
50
|
-
padding: 0.25rem 0.5rem;
|
|
51
|
-
margin: 0;
|
|
52
|
-
font-size: 0.85em;
|
|
53
|
-
background-color: var(--c-bg-light);
|
|
54
|
-
border-radius: 3px;
|
|
55
|
-
overflow-wrap: break-word;
|
|
56
|
-
transition: background-color var(--t-color);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
blockquote {
|
|
60
|
-
font-size: 1rem;
|
|
61
|
-
color: var(--c-text-quote);
|
|
62
|
-
border-left: 0.2rem solid var(--c-border-dark);
|
|
63
|
-
margin: 1rem 0;
|
|
64
|
-
padding: 0.25rem 0 0.25rem 1rem;
|
|
65
|
-
overflow-wrap: break-word;
|
|
66
|
-
|
|
67
|
-
& > p {
|
|
68
|
-
margin: 0;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
ul,
|
|
73
|
-
ol {
|
|
74
|
-
padding-left: 1.2em;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
strong {
|
|
78
|
-
font-weight: 600;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
h1,
|
|
82
|
-
h2,
|
|
83
|
-
h3,
|
|
84
|
-
h4,
|
|
85
|
-
h5,
|
|
86
|
-
h6 {
|
|
87
|
-
font-weight: 600;
|
|
88
|
-
line-height: 1.25;
|
|
89
|
-
overflow-wrap: break-word;
|
|
90
|
-
|
|
91
|
-
&:focus-visible {
|
|
92
|
-
outline: none;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.header-anchor {
|
|
96
|
-
color: inherit;
|
|
97
|
-
text-decoration: none;
|
|
98
|
-
position: relative;
|
|
99
|
-
|
|
100
|
-
&:hover::before {
|
|
101
|
-
font-size: 0.8em;
|
|
102
|
-
content: '¶';
|
|
103
|
-
position: absolute;
|
|
104
|
-
left: -0.75em;
|
|
105
|
-
color: var(--c-brand);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&:focus-visible {
|
|
109
|
-
outline: none;
|
|
110
|
-
|
|
111
|
-
&::before {
|
|
112
|
-
content: '¶';
|
|
113
|
-
position: absolute;
|
|
114
|
-
left: -0.75em;
|
|
115
|
-
color: var(--c-brand);
|
|
116
|
-
outline: auto;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
h1 {
|
|
123
|
-
font-size: 2.2rem;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
h2 {
|
|
127
|
-
font-size: 1.65rem;
|
|
128
|
-
padding-bottom: 0.3rem;
|
|
129
|
-
border-bottom: 1px solid var(--c-border);
|
|
130
|
-
transition: border-color var(--t-color);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
h3 {
|
|
134
|
-
font-size: 1.35rem;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
h4 {
|
|
138
|
-
font-size: 1.15rem;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
h5 {
|
|
142
|
-
font-size: 1.05rem;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
h6 {
|
|
146
|
-
font-size: 1rem;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
a {
|
|
150
|
-
@media print {
|
|
151
|
-
&[href^="http://"],
|
|
152
|
-
&[href^="https://"]
|
|
153
|
-
{
|
|
154
|
-
&::after {
|
|
155
|
-
content: ' (' attr(href) ') ';
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
p,
|
|
162
|
-
ul,
|
|
163
|
-
ol {
|
|
164
|
-
line-height: 1.7;
|
|
165
|
-
overflow-wrap: break-word;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
hr {
|
|
169
|
-
border: 0;
|
|
170
|
-
border-top: 1px solid var(--c-border);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
table {
|
|
174
|
-
border-collapse: collapse;
|
|
175
|
-
margin: 1rem 0;
|
|
176
|
-
display: block;
|
|
177
|
-
overflow-x: auto;
|
|
178
|
-
transition: border-color var(--t-color);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
tr {
|
|
182
|
-
border-top: 1px solid var(--c-border-dark);
|
|
183
|
-
transition: border-color var(--t-color);
|
|
184
|
-
|
|
185
|
-
&:nth-child(2n) {
|
|
186
|
-
background-color: var(--c-bg-light);
|
|
187
|
-
transition: background-color var(--t-color);
|
|
188
|
-
|
|
189
|
-
code {
|
|
190
|
-
background-color: var(--c-bg-dark);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
th,
|
|
196
|
-
td {
|
|
197
|
-
padding: 0.6em 1em;
|
|
198
|
-
border: 1px solid var(--c-border-dark);
|
|
199
|
-
transition: border-color var(--t-color);
|
|
6
|
+
font-family: var(--code-font-family);
|
|
200
7
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@use 'mixins';
|
|
2
|
+
@use 'variables' as *;
|
|
3
|
+
|
|
4
|
+
// plugin-comment
|
|
5
|
+
.vp-comment {
|
|
6
|
+
@include mixins.content-wrapper;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.vp-navbar {
|
|
10
|
+
// plugin-docsearch
|
|
11
|
+
/* stylelint-disable-next-line selector-class-pattern */
|
|
12
|
+
.DocSearch {
|
|
13
|
+
transition: background-color var(--vp-t-color);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// plugin-search
|
|
17
|
+
.search-box {
|
|
18
|
+
vertical-align: top;
|
|
19
|
+
flex: 0 0 auto;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// plugin-markdown-hint
|
|
24
|
+
.hint-container {
|
|
25
|
+
@media screen and (max-width: $MQMobile) {
|
|
26
|
+
margin-inline: -0.75rem;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -1,68 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
[data-theme='dark'] {
|
|
2
2
|
// brand colors
|
|
3
|
-
--c-
|
|
4
|
-
--c-
|
|
3
|
+
--vp-c-accent: #3dd68c;
|
|
4
|
+
--vp-c-accent-bg: #3aa675;
|
|
5
|
+
--vp-c-accent-hover: #349469;
|
|
6
|
+
--vp-c-accent-soft: rgb(16 185 129 / 16%);
|
|
5
7
|
|
|
6
8
|
// background colors
|
|
7
|
-
--c-bg: #
|
|
8
|
-
--c-bg-
|
|
9
|
-
--c-bg-
|
|
10
|
-
--c-bg-dark: #343b44;
|
|
11
|
-
--c-bg-darker: #37404c;
|
|
9
|
+
--vp-c-bg: #1b1b1f;
|
|
10
|
+
--vp-c-bg-alt: #161618;
|
|
11
|
+
--vp-c-bg-elv: #202127;
|
|
12
12
|
|
|
13
13
|
// text colors
|
|
14
|
-
--c-text:
|
|
15
|
-
--c-text-
|
|
16
|
-
--c-text-
|
|
17
|
-
--c-text-lightest: #8094a8;
|
|
14
|
+
--vp-c-text: rgb(235 235 245 / 86%);
|
|
15
|
+
--vp-c-text-mute: rgb(235 235 245 / 60%);
|
|
16
|
+
--vp-c-text-subtle: rgb(235 235 245 / 38%);
|
|
18
17
|
|
|
19
18
|
// border colors
|
|
20
|
-
--c-
|
|
21
|
-
--c-border
|
|
19
|
+
--vp-c-gutter: #000;
|
|
20
|
+
--vp-c-border: #3c3f44;
|
|
21
|
+
--vp-c-border-hard: #45484e;
|
|
22
22
|
|
|
23
|
-
//
|
|
24
|
-
--c-
|
|
25
|
-
--c-warning: #e0ad15;
|
|
26
|
-
--c-warning-bg: #2d2f2d;
|
|
27
|
-
--c-warning-bg-light: #423e2a;
|
|
28
|
-
--c-warning-bg-lighter: #44442f;
|
|
29
|
-
--c-warning-border-dark: #957c35;
|
|
30
|
-
--c-warning-details-bg: #39392d;
|
|
31
|
-
--c-warning-title: #fdca31;
|
|
32
|
-
--c-warning-text: #d8d96d;
|
|
33
|
-
--c-warning-text-accent: #ffbf00;
|
|
34
|
-
--c-warning-text-light: #ddb84b;
|
|
35
|
-
--c-warning-text-quote: #ccab49;
|
|
36
|
-
--c-danger: #fc1e38;
|
|
37
|
-
--c-danger-bg: #39232c;
|
|
38
|
-
--c-danger-bg-light: #4b2b35;
|
|
39
|
-
--c-danger-bg-lighter: #553040;
|
|
40
|
-
--c-danger-border-dark: #a25151;
|
|
41
|
-
--c-danger-details-bg: #482936;
|
|
42
|
-
--c-danger-title: #fc2d3b;
|
|
43
|
-
--c-danger-text: #ea9ca0;
|
|
44
|
-
--c-danger-text-accent: #fd3636;
|
|
45
|
-
--c-danger-text-light: #d9777c;
|
|
46
|
-
--c-danger-text-quote: #d56b6b;
|
|
47
|
-
--c-details-bg: #323843;
|
|
23
|
+
// shadow color
|
|
24
|
+
--vp-c-shadow: rgb(0 0 0 / 30%);
|
|
48
25
|
|
|
49
|
-
//
|
|
50
|
-
--c-
|
|
51
|
-
--c-
|
|
52
|
-
--c-
|
|
53
|
-
--c-badge-danger-text: #401416;
|
|
54
|
-
|
|
55
|
-
// code blocks vars
|
|
56
|
-
--code-hl-bg-color: #363b46;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// plugin-docsearch
|
|
60
|
-
html.dark .DocSearch {
|
|
61
|
-
--docsearch-logo-color: var(--c-text);
|
|
62
|
-
--docsearch-modal-shadow: inset 1px 1px 0 0 #2c2e40, 0 3px 8px 0 #000309;
|
|
63
|
-
--docsearch-key-shadow: inset 0 -2px 0 0 #282d55, inset 0 0 1px 1px #51577d,
|
|
64
|
-
0 2px 2px 0 rgba(3, 4, 9, 0.3);
|
|
65
|
-
--docsearch-key-gradient: linear-gradient(-225deg, #444950, #1c1e21);
|
|
66
|
-
--docsearch-footer-shadow: inset 0 1px 0 0 rgba(73, 76, 106, 0.5),
|
|
67
|
-
0 -4px 8px 0 rgba(0, 0, 0, 0.2);
|
|
26
|
+
// control colors
|
|
27
|
+
--vp-c-control: rgb(101 117 133 / 12%);
|
|
28
|
+
--vp-c-control-hover: rgb(101 117 133 / 18%);
|
|
29
|
+
--vp-c-control-disabled: #363636;
|
|
68
30
|
}
|