themekit-js 1.1.0

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.
Files changed (171) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +27 -0
  3. package/bin/themekit.js +2 -0
  4. package/client.d.ts +5 -0
  5. package/dist/client/app/components/ClientOnly.js +10 -0
  6. package/dist/client/app/components/Content.js +23 -0
  7. package/dist/client/app/composables/codeGroups.js +40 -0
  8. package/dist/client/app/composables/copyCode.js +73 -0
  9. package/dist/client/app/composables/head.js +81 -0
  10. package/dist/client/app/composables/preFetch.js +99 -0
  11. package/dist/client/app/data.js +59 -0
  12. package/dist/client/app/devtools.js +29 -0
  13. package/dist/client/app/index.js +140 -0
  14. package/dist/client/app/router.js +233 -0
  15. package/dist/client/app/ssr.js +10 -0
  16. package/dist/client/app/theme.js +1 -0
  17. package/dist/client/app/utils.js +119 -0
  18. package/dist/client/index.d.ts +1446 -0
  19. package/dist/client/index.js +9 -0
  20. package/dist/client/shared.js +139 -0
  21. package/dist/client/theme-default/Layout.vue +94 -0
  22. package/dist/client/theme-default/NotFound.vue +109 -0
  23. package/dist/client/theme-default/components/VPAlgoliaSearchBox.vue +99 -0
  24. package/dist/client/theme-default/components/VPBackdrop.vue +41 -0
  25. package/dist/client/theme-default/components/VPBadge.vue +86 -0
  26. package/dist/client/theme-default/components/VPButton.vue +123 -0
  27. package/dist/client/theme-default/components/VPCarbonAds.vue +109 -0
  28. package/dist/client/theme-default/components/VPContent.vue +98 -0
  29. package/dist/client/theme-default/components/VPDoc.vue +193 -0
  30. package/dist/client/theme-default/components/VPDocAside.vue +46 -0
  31. package/dist/client/theme-default/components/VPDocAsideCarbonAds.vue +18 -0
  32. package/dist/client/theme-default/components/VPDocAsideOutline.vue +87 -0
  33. package/dist/client/theme-default/components/VPDocAsideSponsors.vue +17 -0
  34. package/dist/client/theme-default/components/VPDocFooter.vue +145 -0
  35. package/dist/client/theme-default/components/VPDocFooterLastUpdated.vue +50 -0
  36. package/dist/client/theme-default/components/VPDocOutlineItem.vue +59 -0
  37. package/dist/client/theme-default/components/VPFeature.vue +123 -0
  38. package/dist/client/theme-default/components/VPFeatures.vue +121 -0
  39. package/dist/client/theme-default/components/VPFlyout.vue +136 -0
  40. package/dist/client/theme-default/components/VPFooter.vue +60 -0
  41. package/dist/client/theme-default/components/VPHero.vue +336 -0
  42. package/dist/client/theme-default/components/VPHome.vue +43 -0
  43. package/dist/client/theme-default/components/VPHomeContent.vue +52 -0
  44. package/dist/client/theme-default/components/VPHomeFeatures.vue +14 -0
  45. package/dist/client/theme-default/components/VPHomeHero.vue +24 -0
  46. package/dist/client/theme-default/components/VPHomeSponsors.vue +116 -0
  47. package/dist/client/theme-default/components/VPImage.vue +46 -0
  48. package/dist/client/theme-default/components/VPLink.vue +33 -0
  49. package/dist/client/theme-default/components/VPLocalNav.vue +171 -0
  50. package/dist/client/theme-default/components/VPLocalNavOutlineDropdown.vue +190 -0
  51. package/dist/client/theme-default/components/VPLocalSearchBox.vue +856 -0
  52. package/dist/client/theme-default/components/VPMenu.vue +72 -0
  53. package/dist/client/theme-default/components/VPMenuGroup.vue +47 -0
  54. package/dist/client/theme-default/components/VPMenuLink.vue +54 -0
  55. package/dist/client/theme-default/components/VPNav.vue +57 -0
  56. package/dist/client/theme-default/components/VPNavBar.vue +267 -0
  57. package/dist/client/theme-default/components/VPNavBarAppearance.vue +25 -0
  58. package/dist/client/theme-default/components/VPNavBarExtra.vue +94 -0
  59. package/dist/client/theme-default/components/VPNavBarHamburger.vue +79 -0
  60. package/dist/client/theme-default/components/VPNavBarMenu.vue +29 -0
  61. package/dist/client/theme-default/components/VPNavBarMenuGroup.vue +42 -0
  62. package/dist/client/theme-default/components/VPNavBarMenuLink.vue +53 -0
  63. package/dist/client/theme-default/components/VPNavBarSearch.vue +194 -0
  64. package/dist/client/theme-default/components/VPNavBarSearchButton.vue +208 -0
  65. package/dist/client/theme-default/components/VPNavBarSocialLinks.vue +27 -0
  66. package/dist/client/theme-default/components/VPNavBarTitle.vue +76 -0
  67. package/dist/client/theme-default/components/VPNavBarTranslations.vue +47 -0
  68. package/dist/client/theme-default/components/VPNavScreen.vue +99 -0
  69. package/dist/client/theme-default/components/VPNavScreenAppearance.vue +33 -0
  70. package/dist/client/theme-default/components/VPNavScreenMenu.vue +23 -0
  71. package/dist/client/theme-default/components/VPNavScreenMenuGroup.vue +111 -0
  72. package/dist/client/theme-default/components/VPNavScreenMenuGroupLink.vue +39 -0
  73. package/dist/client/theme-default/components/VPNavScreenMenuGroupSection.vue +34 -0
  74. package/dist/client/theme-default/components/VPNavScreenMenuLink.vue +39 -0
  75. package/dist/client/theme-default/components/VPNavScreenSocialLinks.vue +14 -0
  76. package/dist/client/theme-default/components/VPNavScreenTranslations.vue +73 -0
  77. package/dist/client/theme-default/components/VPPage.vue +7 -0
  78. package/dist/client/theme-default/components/VPSidebar.vue +137 -0
  79. package/dist/client/theme-default/components/VPSidebarItem.vue +250 -0
  80. package/dist/client/theme-default/components/VPSkipLink.vue +68 -0
  81. package/dist/client/theme-default/components/VPSocialLink.vue +50 -0
  82. package/dist/client/theme-default/components/VPSocialLinks.vue +27 -0
  83. package/dist/client/theme-default/components/VPSponsors.vue +48 -0
  84. package/dist/client/theme-default/components/VPSponsorsGrid.vue +48 -0
  85. package/dist/client/theme-default/components/VPSwitch.vue +63 -0
  86. package/dist/client/theme-default/components/VPSwitchAppearance.vue +52 -0
  87. package/dist/client/theme-default/components/VPTeamMembers.vue +66 -0
  88. package/dist/client/theme-default/components/VPTeamMembersItem.vue +225 -0
  89. package/dist/client/theme-default/components/VPTeamPage.vue +58 -0
  90. package/dist/client/theme-default/components/VPTeamPageSection.vue +77 -0
  91. package/dist/client/theme-default/components/VPTeamPageTitle.vue +63 -0
  92. package/dist/client/theme-default/components/icons/VPIconAlignJustify.vue +8 -0
  93. package/dist/client/theme-default/components/icons/VPIconAlignLeft.vue +8 -0
  94. package/dist/client/theme-default/components/icons/VPIconAlignRight.vue +8 -0
  95. package/dist/client/theme-default/components/icons/VPIconArrowLeft.vue +7 -0
  96. package/dist/client/theme-default/components/icons/VPIconArrowRight.vue +7 -0
  97. package/dist/client/theme-default/components/icons/VPIconChevronDown.vue +5 -0
  98. package/dist/client/theme-default/components/icons/VPIconChevronLeft.vue +5 -0
  99. package/dist/client/theme-default/components/icons/VPIconChevronRight.vue +5 -0
  100. package/dist/client/theme-default/components/icons/VPIconChevronUp.vue +5 -0
  101. package/dist/client/theme-default/components/icons/VPIconEdit.vue +6 -0
  102. package/dist/client/theme-default/components/icons/VPIconHeart.vue +5 -0
  103. package/dist/client/theme-default/components/icons/VPIconLanguages.vue +9 -0
  104. package/dist/client/theme-default/components/icons/VPIconMinus.vue +5 -0
  105. package/dist/client/theme-default/components/icons/VPIconMinusSquare.vue +6 -0
  106. package/dist/client/theme-default/components/icons/VPIconMoon.vue +5 -0
  107. package/dist/client/theme-default/components/icons/VPIconMoreHorizontal.vue +7 -0
  108. package/dist/client/theme-default/components/icons/VPIconPlus.vue +5 -0
  109. package/dist/client/theme-default/components/icons/VPIconPlusSquare.vue +6 -0
  110. package/dist/client/theme-default/components/icons/VPIconSun.vue +13 -0
  111. package/dist/client/theme-default/composables/aside.js +17 -0
  112. package/dist/client/theme-default/composables/data.js +2 -0
  113. package/dist/client/theme-default/composables/edit-link.js +16 -0
  114. package/dist/client/theme-default/composables/flyout.js +41 -0
  115. package/dist/client/theme-default/composables/langs.js +26 -0
  116. package/dist/client/theme-default/composables/local-nav.js +18 -0
  117. package/dist/client/theme-default/composables/nav.js +30 -0
  118. package/dist/client/theme-default/composables/outline.js +178 -0
  119. package/dist/client/theme-default/composables/prev-next.js +57 -0
  120. package/dist/client/theme-default/composables/sidebar.js +136 -0
  121. package/dist/client/theme-default/composables/sponsor-grid.js +94 -0
  122. package/dist/client/theme-default/fonts/inter-italic-cyrillic-ext.woff2 +0 -0
  123. package/dist/client/theme-default/fonts/inter-italic-cyrillic.woff2 +0 -0
  124. package/dist/client/theme-default/fonts/inter-italic-greek-ext.woff2 +0 -0
  125. package/dist/client/theme-default/fonts/inter-italic-greek.woff2 +0 -0
  126. package/dist/client/theme-default/fonts/inter-italic-latin-ext.woff2 +0 -0
  127. package/dist/client/theme-default/fonts/inter-italic-latin.woff2 +0 -0
  128. package/dist/client/theme-default/fonts/inter-italic-vietnamese.woff2 +0 -0
  129. package/dist/client/theme-default/fonts/inter-roman-cyrillic-ext.woff2 +0 -0
  130. package/dist/client/theme-default/fonts/inter-roman-cyrillic.woff2 +0 -0
  131. package/dist/client/theme-default/fonts/inter-roman-greek-ext.woff2 +0 -0
  132. package/dist/client/theme-default/fonts/inter-roman-greek.woff2 +0 -0
  133. package/dist/client/theme-default/fonts/inter-roman-latin-ext.woff2 +0 -0
  134. package/dist/client/theme-default/fonts/inter-roman-latin.woff2 +0 -0
  135. package/dist/client/theme-default/fonts/inter-roman-vietnamese.woff2 +0 -0
  136. package/dist/client/theme-default/index.js +3 -0
  137. package/dist/client/theme-default/styles/base.css +252 -0
  138. package/dist/client/theme-default/styles/components/custom-block.css +208 -0
  139. package/dist/client/theme-default/styles/components/vp-code-group.css +85 -0
  140. package/dist/client/theme-default/styles/components/vp-code.css +7 -0
  141. package/dist/client/theme-default/styles/components/vp-doc.css +570 -0
  142. package/dist/client/theme-default/styles/components/vp-sponsor.css +155 -0
  143. package/dist/client/theme-default/styles/fonts.css +157 -0
  144. package/dist/client/theme-default/styles/icons.css +123 -0
  145. package/dist/client/theme-default/styles/utils.css +9 -0
  146. package/dist/client/theme-default/styles/vars.css +563 -0
  147. package/dist/client/theme-default/support/lru.js +33 -0
  148. package/dist/client/theme-default/support/sidebar.js +89 -0
  149. package/dist/client/theme-default/support/translation.js +49 -0
  150. package/dist/client/theme-default/support/utils.js +33 -0
  151. package/dist/client/theme-default/without-fonts.js +32 -0
  152. package/dist/node/cli.js +444 -0
  153. package/dist/node/index.d.ts +4588 -0
  154. package/dist/node/index.js +198 -0
  155. package/dist/node/serve-BjvG349_.js +50301 -0
  156. package/lib/vue-demi.mjs +34 -0
  157. package/package.json +223 -0
  158. package/template/.vitepress/config.js +28 -0
  159. package/template/.vitepress/theme/Layout.vue +21 -0
  160. package/template/.vitepress/theme/index.js +29 -0
  161. package/template/.vitepress/theme/style.css +143 -0
  162. package/template/api-examples.md +49 -0
  163. package/template/index.md +28 -0
  164. package/template/markdown-examples.md +85 -0
  165. package/theme-without-fonts.d.ts +2 -0
  166. package/theme.d.ts +30 -0
  167. package/types/default-theme.d.ts +533 -0
  168. package/types/docsearch.d.ts +144 -0
  169. package/types/index.d.ts +3 -0
  170. package/types/local-search.d.ts +33 -0
  171. package/types/shared.d.ts +199 -0
@@ -0,0 +1,252 @@
1
+ @media (prefers-reduced-motion: reduce) {
2
+ *,
3
+ ::before,
4
+ ::after {
5
+ animation-delay: -1ms !important;
6
+ animation-duration: 1ms !important;
7
+ animation-iteration-count: 1 !important;
8
+ background-attachment: initial !important;
9
+ scroll-behavior: auto !important;
10
+ transition-duration: 0s !important;
11
+ transition-delay: 0s !important;
12
+ }
13
+ }
14
+
15
+ *,
16
+ ::before,
17
+ ::after {
18
+ box-sizing: border-box;
19
+ }
20
+
21
+ html {
22
+ line-height: 1.4;
23
+ font-size: 16px;
24
+ -webkit-text-size-adjust: 100%;
25
+ }
26
+
27
+ html.dark {
28
+ color-scheme: dark;
29
+ }
30
+
31
+ body {
32
+ margin: 0;
33
+ width: 100%;
34
+ min-width: 320px;
35
+ min-height: 100vh;
36
+ line-height: 24px;
37
+ font-family: var(--vp-font-family-base);
38
+ font-size: 16px;
39
+ font-weight: 400;
40
+ color: var(--vp-c-text-1);
41
+ background-color: var(--vp-c-bg);
42
+ font-synthesis: style;
43
+ text-rendering: optimizeLegibility;
44
+ -webkit-font-smoothing: antialiased;
45
+ -moz-osx-font-smoothing: grayscale;
46
+ }
47
+
48
+ main {
49
+ display: block;
50
+ }
51
+
52
+ h1,
53
+ h2,
54
+ h3,
55
+ h4,
56
+ h5,
57
+ h6 {
58
+ margin: 0;
59
+ line-height: 24px;
60
+ font-size: 16px;
61
+ font-weight: 400;
62
+ }
63
+
64
+ p {
65
+ margin: 0;
66
+ }
67
+
68
+ strong,
69
+ b {
70
+ font-weight: 600;
71
+ }
72
+
73
+ /**
74
+ * Avoid 300ms click delay on touch devices that support the `touch-action`
75
+ * CSS property.
76
+ *
77
+ * In particular, unlike most other browsers, IE11+Edge on Windows 10 on
78
+ * touch devices and IE Mobile 10-11 DON'T remove the click delay when
79
+ * `<meta name="viewport" content="width=device-width">` is present.
80
+ * However, they DO support removing the click delay via
81
+ * `touch-action: manipulation`.
82
+ *
83
+ * See:
84
+ * - http://v4-alpha.getbootstrap.com/content/reboot/#click-delay-optimization-for-touch
85
+ * - http://caniuse.com/#feat=css-touch-action
86
+ * - http://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay
87
+ */
88
+ a,
89
+ area,
90
+ button,
91
+ [role='button'],
92
+ input,
93
+ label,
94
+ select,
95
+ summary,
96
+ textarea {
97
+ touch-action: manipulation;
98
+ }
99
+
100
+ a {
101
+ color: inherit;
102
+ text-decoration: inherit;
103
+ }
104
+
105
+ ol,
106
+ ul {
107
+ list-style: none;
108
+ margin: 0;
109
+ padding: 0;
110
+ }
111
+
112
+ blockquote {
113
+ margin: 0;
114
+ }
115
+
116
+ pre,
117
+ code,
118
+ kbd,
119
+ samp {
120
+ font-family: var(--vp-font-family-mono);
121
+ }
122
+
123
+ img,
124
+ svg,
125
+ video,
126
+ canvas,
127
+ audio,
128
+ iframe,
129
+ embed,
130
+ object {
131
+ display: block;
132
+ }
133
+
134
+ figure {
135
+ margin: 0;
136
+ }
137
+
138
+ img,
139
+ video {
140
+ max-width: 100%;
141
+ height: auto;
142
+ }
143
+
144
+ button,
145
+ input,
146
+ optgroup,
147
+ select,
148
+ textarea {
149
+ border: 0;
150
+ padding: 0;
151
+ line-height: inherit;
152
+ color: inherit;
153
+ }
154
+
155
+ button {
156
+ padding: 0;
157
+ font-family: inherit;
158
+ background-color: transparent;
159
+ background-image: none;
160
+ }
161
+
162
+ button:enabled,
163
+ [role='button']:enabled {
164
+ cursor: pointer;
165
+ }
166
+
167
+ button:focus,
168
+ button:focus-visible {
169
+ outline: 1px dotted;
170
+ outline: 4px auto -webkit-focus-ring-color;
171
+ }
172
+
173
+ button:focus:not(:focus-visible) {
174
+ outline: none !important;
175
+ }
176
+
177
+ input:focus,
178
+ textarea:focus,
179
+ select:focus {
180
+ outline: none;
181
+ }
182
+
183
+ table {
184
+ border-collapse: collapse;
185
+ }
186
+
187
+ input {
188
+ background-color: transparent;
189
+ }
190
+
191
+ input:-ms-input-placeholder,
192
+ textarea:-ms-input-placeholder {
193
+ color: var(--vp-c-text-3);
194
+ }
195
+
196
+ input::-ms-input-placeholder,
197
+ textarea::-ms-input-placeholder {
198
+ color: var(--vp-c-text-3);
199
+ }
200
+
201
+ input::placeholder,
202
+ textarea::placeholder {
203
+ color: var(--vp-c-text-3);
204
+ }
205
+
206
+ input::-webkit-outer-spin-button,
207
+ input::-webkit-inner-spin-button {
208
+ -webkit-appearance: none;
209
+ margin: 0;
210
+ }
211
+
212
+ input[type='number'] {
213
+ -moz-appearance: textfield;
214
+ }
215
+
216
+ textarea {
217
+ resize: vertical;
218
+ }
219
+
220
+ select {
221
+ -webkit-appearance: none;
222
+ }
223
+
224
+ fieldset {
225
+ margin: 0;
226
+ padding: 0;
227
+ }
228
+
229
+ h1,
230
+ h2,
231
+ h3,
232
+ h4,
233
+ h5,
234
+ h6,
235
+ li,
236
+ p {
237
+ overflow-wrap: break-word;
238
+ }
239
+
240
+ vite-error-overlay {
241
+ z-index: 9999;
242
+ }
243
+
244
+ mjx-container {
245
+ display: inline-block;
246
+ margin: auto 2px -2px;
247
+ }
248
+
249
+ mjx-container > svg {
250
+ display: inline-block;
251
+ margin: auto;
252
+ }
@@ -0,0 +1,208 @@
1
+ .custom-block {
2
+ border: 1px solid transparent;
3
+ border-radius: 8px;
4
+ padding: 16px 16px 8px;
5
+ line-height: 24px;
6
+ font-size: var(--vp-custom-block-font-size);
7
+ color: var(--vp-c-text-2);
8
+ }
9
+
10
+ .custom-block.info {
11
+ border-color: var(--vp-custom-block-info-border);
12
+ color: var(--vp-custom-block-info-text);
13
+ background-color: var(--vp-custom-block-info-bg);
14
+ }
15
+
16
+ .custom-block.info a,
17
+ .custom-block.info code {
18
+ color: var(--vp-c-brand-1);
19
+ }
20
+
21
+ .custom-block.info a:hover,
22
+ .custom-block.info a:hover > code {
23
+ color: var(--vp-c-brand-2);
24
+ }
25
+
26
+ .custom-block.info code {
27
+ background-color: var(--vp-custom-block-info-code-bg);
28
+ }
29
+
30
+ .custom-block.note {
31
+ border-color: var(--vp-custom-block-note-border);
32
+ color: var(--vp-custom-block-note-text);
33
+ background-color: var(--vp-custom-block-note-bg);
34
+ }
35
+
36
+ .custom-block.note a,
37
+ .custom-block.note code {
38
+ color: var(--vp-c-brand-1);
39
+ }
40
+
41
+ .custom-block.note a:hover,
42
+ .custom-block.note a:hover > code {
43
+ color: var(--vp-c-brand-2);
44
+ }
45
+
46
+ .custom-block.note code {
47
+ background-color: var(--vp-custom-block-note-code-bg);
48
+ }
49
+
50
+ .custom-block.tip {
51
+ border-color: var(--vp-custom-block-tip-border);
52
+ color: var(--vp-custom-block-tip-text);
53
+ background-color: var(--vp-custom-block-tip-bg);
54
+ }
55
+
56
+ .custom-block.tip a,
57
+ .custom-block.tip code {
58
+ color: var(--vp-c-tip-1);
59
+ }
60
+
61
+ .custom-block.tip a:hover,
62
+ .custom-block.tip a:hover > code {
63
+ color: var(--vp-c-tip-2);
64
+ }
65
+
66
+ .custom-block.tip code {
67
+ background-color: var(--vp-custom-block-tip-code-bg);
68
+ }
69
+
70
+ .custom-block.important {
71
+ border-color: var(--vp-custom-block-important-border);
72
+ color: var(--vp-custom-block-important-text);
73
+ background-color: var(--vp-custom-block-important-bg);
74
+ }
75
+
76
+ .custom-block.important a,
77
+ .custom-block.important code {
78
+ color: var(--vp-c-important-1);
79
+ }
80
+
81
+ .custom-block.important a:hover,
82
+ .custom-block.important a:hover > code {
83
+ color: var(--vp-c-important-2);
84
+ }
85
+
86
+ .custom-block.important code {
87
+ background-color: var(--vp-custom-block-important-code-bg);
88
+ }
89
+
90
+ .custom-block.warning {
91
+ border-color: var(--vp-custom-block-warning-border);
92
+ color: var(--vp-custom-block-warning-text);
93
+ background-color: var(--vp-custom-block-warning-bg);
94
+ }
95
+
96
+ .custom-block.warning a,
97
+ .custom-block.warning code {
98
+ color: var(--vp-c-warning-1);
99
+ }
100
+
101
+ .custom-block.warning a:hover,
102
+ .custom-block.warning a:hover > code {
103
+ color: var(--vp-c-warning-2);
104
+ }
105
+
106
+ .custom-block.warning code {
107
+ background-color: var(--vp-custom-block-warning-code-bg);
108
+ }
109
+
110
+ .custom-block.danger {
111
+ border-color: var(--vp-custom-block-danger-border);
112
+ color: var(--vp-custom-block-danger-text);
113
+ background-color: var(--vp-custom-block-danger-bg);
114
+ }
115
+
116
+ .custom-block.danger a,
117
+ .custom-block.danger code {
118
+ color: var(--vp-c-danger-1);
119
+ }
120
+
121
+ .custom-block.danger a:hover,
122
+ .custom-block.danger a:hover > code {
123
+ color: var(--vp-c-danger-2);
124
+ }
125
+
126
+ .custom-block.danger code {
127
+ background-color: var(--vp-custom-block-danger-code-bg);
128
+ }
129
+
130
+ .custom-block.caution {
131
+ border-color: var(--vp-custom-block-caution-border);
132
+ color: var(--vp-custom-block-caution-text);
133
+ background-color: var(--vp-custom-block-caution-bg);
134
+ }
135
+
136
+ .custom-block.caution a,
137
+ .custom-block.caution code {
138
+ color: var(--vp-c-caution-1);
139
+ }
140
+
141
+ .custom-block.caution a:hover,
142
+ .custom-block.caution a:hover > code {
143
+ color: var(--vp-c-caution-2);
144
+ }
145
+
146
+ .custom-block.caution code {
147
+ background-color: var(--vp-custom-block-caution-code-bg);
148
+ }
149
+
150
+ .custom-block.details {
151
+ border-color: var(--vp-custom-block-details-border);
152
+ color: var(--vp-custom-block-details-text);
153
+ background-color: var(--vp-custom-block-details-bg);
154
+ }
155
+
156
+ .custom-block.details a {
157
+ color: var(--vp-c-brand-1);
158
+ }
159
+
160
+ .custom-block.details a:hover,
161
+ .custom-block.details a:hover > code {
162
+ color: var(--vp-c-brand-2);
163
+ }
164
+
165
+ .custom-block.details code {
166
+ background-color: var(--vp-custom-block-details-code-bg);
167
+ }
168
+
169
+ .custom-block-title {
170
+ font-weight: 600;
171
+ }
172
+
173
+ .custom-block p + p {
174
+ margin: 8px 0;
175
+ }
176
+
177
+ .custom-block.details summary {
178
+ margin: 0 0 8px;
179
+ font-weight: 700;
180
+ cursor: pointer;
181
+ user-select: none;
182
+ }
183
+
184
+ .custom-block.details summary + p {
185
+ margin: 8px 0;
186
+ }
187
+
188
+ .custom-block a {
189
+ color: inherit;
190
+ font-weight: 600;
191
+ text-decoration: underline;
192
+ text-underline-offset: 2px;
193
+ transition: opacity 0.25s;
194
+ }
195
+
196
+ .custom-block a:hover {
197
+ opacity: 0.75;
198
+ }
199
+
200
+ .custom-block code {
201
+ font-size: var(--vp-custom-block-code-font-size);
202
+ }
203
+
204
+ .custom-block.custom-block th,
205
+ .custom-block.custom-block blockquote > p {
206
+ font-size: var(--vp-custom-block-font-size);
207
+ color: inherit;
208
+ }
@@ -0,0 +1,85 @@
1
+ .vp-code-group {
2
+ margin-top: 16px;
3
+ }
4
+
5
+ .vp-code-group .tabs {
6
+ position: relative;
7
+ display: flex;
8
+ margin-right: -24px;
9
+ margin-left: -24px;
10
+ padding: 0 12px;
11
+ background-color: var(--vp-code-tab-bg);
12
+ overflow-x: auto;
13
+ overflow-y: hidden;
14
+ box-shadow: inset 0 -1px var(--vp-code-tab-divider);
15
+ }
16
+
17
+ @media (min-width: 640px) {
18
+ .vp-code-group .tabs {
19
+ margin-right: 0;
20
+ margin-left: 0;
21
+ border-radius: 8px 8px 0 0;
22
+ }
23
+ }
24
+
25
+ .vp-code-group .tabs input {
26
+ position: fixed;
27
+ opacity: 0;
28
+ pointer-events: none;
29
+ }
30
+
31
+ .vp-code-group .tabs label {
32
+ position: relative;
33
+ display: inline-block;
34
+ border-bottom: 1px solid transparent;
35
+ padding: 0 12px;
36
+ line-height: 48px;
37
+ font-size: 14px;
38
+ font-weight: 500;
39
+ color: var(--vp-code-tab-text-color);
40
+ white-space: nowrap;
41
+ cursor: pointer;
42
+ transition: color 0.25s;
43
+ }
44
+
45
+ .vp-code-group .tabs label::after {
46
+ position: absolute;
47
+ right: 8px;
48
+ bottom: -1px;
49
+ left: 8px;
50
+ z-index: 1;
51
+ height: 2px;
52
+ border-radius: 2px;
53
+ content: '';
54
+ background-color: transparent;
55
+ transition: background-color 0.25s;
56
+ }
57
+
58
+ .vp-code-group label:hover {
59
+ color: var(--vp-code-tab-hover-text-color);
60
+ }
61
+
62
+ .vp-code-group input:checked + label {
63
+ color: var(--vp-code-tab-active-text-color);
64
+ }
65
+
66
+ .vp-code-group input:checked + label::after {
67
+ background-color: var(--vp-code-tab-active-bar-color);
68
+ }
69
+
70
+ .vp-code-group div[class*='language-'],
71
+ .vp-block {
72
+ display: none;
73
+ margin-top: 0 !important;
74
+ border-top-left-radius: 0 !important;
75
+ border-top-right-radius: 0 !important;
76
+ }
77
+
78
+ .vp-code-group div[class*='language-'].active,
79
+ .vp-block.active {
80
+ display: block;
81
+ }
82
+
83
+ .vp-block {
84
+ padding: 20px 24px;
85
+ }
@@ -0,0 +1,7 @@
1
+ .dark .vp-code span {
2
+ color: var(--shiki-dark, inherit);
3
+ }
4
+
5
+ html:not(.dark) .vp-code span {
6
+ color: var(--shiki-light, inherit);
7
+ }