vitepress 2.0.0-alpha.2 → 2.0.0-alpha.21

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 (286) hide show
  1. package/README.md +34 -2
  2. package/THIRD-PARTY-NOTICES.md +1736 -0
  3. package/bin/vitepress.js +14 -0
  4. package/client.d.ts +9 -0
  5. package/dist/client/app/components/ClientOnly.d.ts +5 -0
  6. package/dist/client/app/components/ClientOnly.js +11 -10
  7. package/dist/client/app/components/Content.d.ts +17 -0
  8. package/dist/client/app/components/Content.js +25 -22
  9. package/dist/client/app/composables/codeGroups.d.ts +3 -0
  10. package/dist/client/app/composables/codeGroups.js +36 -39
  11. package/dist/client/app/composables/copyCode.d.ts +3 -0
  12. package/dist/client/app/composables/copyCode.js +59 -70
  13. package/dist/client/app/composables/head.d.ts +5 -0
  14. package/dist/client/app/composables/head.js +56 -74
  15. package/dist/client/app/composables/icon.d.ts +12 -0
  16. package/dist/client/app/composables/icon.js +56 -0
  17. package/dist/client/app/composables/preFetch.d.ts +3 -0
  18. package/dist/client/app/composables/preFetch.js +64 -96
  19. package/dist/client/app/data.d.ts +9 -0
  20. package/dist/client/app/data.js +34 -59
  21. package/dist/client/app/devtools.d.ts +7 -0
  22. package/dist/client/app/devtools.js +29 -28
  23. package/dist/client/app/index.d.ts +11 -0
  24. package/dist/client/app/index.js +106 -131
  25. package/dist/client/app/router.d.ts +49 -0
  26. package/dist/client/app/router.js +198 -239
  27. package/dist/client/app/ssr.d.ts +4 -0
  28. package/dist/client/app/ssr.js +14 -9
  29. package/dist/client/app/theme.d.ts +24 -0
  30. package/dist/client/app/theme.js +0 -1
  31. package/dist/client/app/utils.d.ts +35 -0
  32. package/dist/client/app/utils.js +77 -110
  33. package/dist/client/index.d.ts +21 -137
  34. package/dist/client/index.js +8 -9
  35. package/dist/client/shared.d.ts +88 -0
  36. package/dist/client/shared.js +265 -141
  37. package/dist/client/theme-default/Layout.d.vue.ts +79 -0
  38. package/dist/client/theme-default/Layout.vue +33 -36
  39. package/dist/client/theme-default/NotFound.d.vue.ts +3 -0
  40. package/dist/client/theme-default/NotFound.vue +33 -35
  41. package/dist/client/theme-default/components/VPAlgoliaSearchBox.d.vue.ts +11 -0
  42. package/dist/client/theme-default/components/VPAlgoliaSearchBox.vue +202 -70
  43. package/dist/client/theme-default/components/VPBackdrop.d.vue.ts +6 -0
  44. package/dist/client/theme-default/components/VPBackdrop.vue +8 -12
  45. package/dist/client/theme-default/components/VPBadge.d.vue.ts +19 -0
  46. package/dist/client/theme-default/components/VPBadge.vue +49 -26
  47. package/dist/client/theme-default/components/VPButton.d.vue.ts +25 -0
  48. package/dist/client/theme-default/components/VPButton.vue +53 -36
  49. package/dist/client/theme-default/components/VPCarbonAds.d.vue.ts +7 -0
  50. package/dist/client/theme-default/components/VPCarbonAds.vue +51 -52
  51. package/dist/client/theme-default/components/VPContent.d.vue.ts +59 -0
  52. package/dist/client/theme-default/components/VPContent.vue +27 -26
  53. package/dist/client/theme-default/components/VPDoc.d.vue.ts +33 -0
  54. package/dist/client/theme-default/components/VPDoc.vue +52 -48
  55. package/dist/client/theme-default/components/VPDocAside.d.vue.ts +23 -0
  56. package/dist/client/theme-default/components/VPDocAside.vue +7 -8
  57. package/dist/client/theme-default/components/VPDocAsideCarbonAds.d.vue.ts +7 -0
  58. package/dist/client/theme-default/components/VPDocAsideCarbonAds.vue +7 -11
  59. package/dist/client/theme-default/components/VPDocAsideOutline.d.vue.ts +3 -0
  60. package/dist/client/theme-default/components/VPDocAsideOutline.vue +22 -38
  61. package/dist/client/theme-default/components/VPDocAsideSponsors.d.vue.ts +10 -0
  62. package/dist/client/theme-default/components/VPDocAsideSponsors.vue +17 -11
  63. package/dist/client/theme-default/components/VPDocFooter.d.vue.ts +13 -0
  64. package/dist/client/theme-default/components/VPDocFooter.vue +38 -45
  65. package/dist/client/theme-default/components/VPDocFooterLastUpdated.d.vue.ts +3 -0
  66. package/dist/client/theme-default/components/VPDocFooterLastUpdated.vue +30 -29
  67. package/dist/client/theme-default/components/VPDocOutlineItem.d.vue.ts +8 -0
  68. package/dist/client/theme-default/components/VPDocOutlineItem.vue +20 -19
  69. package/dist/client/theme-default/components/VPFeature.d.vue.ts +13 -0
  70. package/dist/client/theme-default/components/VPFeature.vue +62 -36
  71. package/dist/client/theme-default/components/VPFeatures.d.vue.ts +16 -0
  72. package/dist/client/theme-default/components/VPFeatures.vue +35 -48
  73. package/dist/client/theme-default/components/VPFlyout.d.vue.ts +26 -0
  74. package/dist/client/theme-default/components/VPFlyout.vue +111 -47
  75. package/dist/client/theme-default/components/VPFooter.d.vue.ts +3 -0
  76. package/dist/client/theme-default/components/VPFooter.vue +22 -15
  77. package/dist/client/theme-default/components/VPHero.d.vue.ts +38 -0
  78. package/dist/client/theme-default/components/VPHero.vue +109 -99
  79. package/dist/client/theme-default/components/VPHome.d.vue.ts +31 -0
  80. package/dist/client/theme-default/components/VPHome.vue +15 -15
  81. package/dist/client/theme-default/components/VPHomeContent.d.vue.ts +13 -0
  82. package/dist/client/theme-default/components/VPHomeContent.vue +9 -27
  83. package/dist/client/theme-default/components/VPHomeFeatures.d.vue.ts +3 -0
  84. package/dist/client/theme-default/components/VPHomeFeatures.vue +4 -5
  85. package/dist/client/theme-default/components/VPHomeHero.d.vue.ts +23 -0
  86. package/dist/client/theme-default/components/VPHomeHero.vue +5 -5
  87. package/dist/client/theme-default/components/VPHomeSponsors.d.vue.ts +21 -0
  88. package/dist/client/theme-default/components/VPHomeSponsors.vue +42 -43
  89. package/dist/client/theme-default/components/VPIcon.d.vue.ts +8 -0
  90. package/dist/client/theme-default/components/VPIcon.vue +29 -0
  91. package/dist/client/theme-default/components/VPImage.d.vue.ts +8 -0
  92. package/dist/client/theme-default/components/VPImage.vue +20 -14
  93. package/dist/client/theme-default/components/VPLink.d.vue.ts +23 -0
  94. package/dist/client/theme-default/components/VPLink.vue +42 -23
  95. package/dist/client/theme-default/components/VPLocalNav.d.vue.ts +10 -0
  96. package/dist/client/theme-default/components/VPLocalNav.vue +69 -86
  97. package/dist/client/theme-default/components/VPLocalNavOutlineDropdown.d.vue.ts +8 -0
  98. package/dist/client/theme-default/components/VPLocalNavOutlineDropdown.vue +98 -96
  99. package/dist/client/theme-default/components/VPLocalSearchBox.d.vue.ts +7 -0
  100. package/dist/client/theme-default/components/VPLocalSearchBox.vue +391 -454
  101. package/dist/client/theme-default/components/VPMenu.d.vue.ts +23 -0
  102. package/dist/client/theme-default/components/VPMenu.vue +19 -31
  103. package/dist/client/theme-default/components/VPMenuGroup.d.vue.ts +22 -0
  104. package/dist/client/theme-default/components/VPMenuGroup.vue +72 -18
  105. package/dist/client/theme-default/components/VPMenuLink.d.vue.ts +22 -0
  106. package/dist/client/theme-default/components/VPMenuLink.vue +65 -31
  107. package/dist/client/theme-default/components/VPNav.d.vue.ts +23 -0
  108. package/dist/client/theme-default/components/VPNav.vue +18 -24
  109. package/dist/client/theme-default/components/VPNavAppearance.d.vue.ts +9 -0
  110. package/dist/client/theme-default/components/VPNavAppearance.vue +88 -0
  111. package/dist/client/theme-default/components/VPNavBar.d.vue.ts +26 -0
  112. package/dist/client/theme-default/components/VPNavBar.vue +170 -142
  113. package/dist/client/theme-default/components/VPNavBarAskAiButton.d.vue.ts +3 -0
  114. package/dist/client/theme-default/components/VPNavBarAskAiButton.vue +31 -0
  115. package/dist/client/theme-default/components/VPNavBarExtra.d.vue.ts +3 -0
  116. package/dist/client/theme-default/components/VPNavBarExtra.vue +51 -73
  117. package/dist/client/theme-default/components/VPNavBarHamburger.d.vue.ts +10 -0
  118. package/dist/client/theme-default/components/VPNavBarHamburger.vue +38 -28
  119. package/dist/client/theme-default/components/VPNavBarSearch.d.vue.ts +3 -0
  120. package/dist/client/theme-default/components/VPNavBarSearch.vue +129 -160
  121. package/dist/client/theme-default/components/VPNavBarSearchButton.d.vue.ts +6 -0
  122. package/dist/client/theme-default/components/VPNavBarSearchButton.vue +48 -182
  123. package/dist/client/theme-default/components/VPNavBarTitle.d.vue.ts +15 -0
  124. package/dist/client/theme-default/components/VPNavBarTitle.vue +39 -38
  125. package/dist/client/theme-default/components/VPNavMenu.d.vue.ts +6 -0
  126. package/dist/client/theme-default/components/VPNavMenu.vue +76 -0
  127. package/dist/client/theme-default/components/VPNavMenuGroup.d.vue.ts +11 -0
  128. package/dist/client/theme-default/components/VPNavMenuGroup.vue +140 -0
  129. package/dist/client/theme-default/components/VPNavMenuLink.d.vue.ts +8 -0
  130. package/dist/client/theme-default/components/VPNavMenuLink.vue +69 -0
  131. package/dist/client/theme-default/components/VPNavScreen.d.vue.ts +18 -0
  132. package/dist/client/theme-default/components/VPNavScreen.vue +36 -34
  133. package/dist/client/theme-default/components/VPNavSocialLinks.d.vue.ts +6 -0
  134. package/dist/client/theme-default/components/VPNavSocialLinks.vue +36 -0
  135. package/dist/client/theme-default/components/VPNavTranslations.d.vue.ts +9 -0
  136. package/dist/client/theme-default/components/VPNavTranslations.vue +170 -0
  137. package/dist/client/theme-default/components/VPPage.d.vue.ts +15 -0
  138. package/dist/client/theme-default/components/VPSidebar.d.vue.ts +18 -0
  139. package/dist/client/theme-default/components/VPSidebar.vue +40 -53
  140. package/dist/client/theme-default/components/VPSidebarGroup.d.vue.ts +7 -0
  141. package/dist/client/theme-default/components/VPSidebarGroup.vue +24 -29
  142. package/dist/client/theme-default/components/VPSidebarItem.d.vue.ts +8 -0
  143. package/dist/client/theme-default/components/VPSidebarItem.vue +60 -93
  144. package/dist/client/theme-default/components/VPSkipLink.d.vue.ts +6 -0
  145. package/dist/client/theme-default/components/VPSkipLink.vue +23 -42
  146. package/dist/client/theme-default/components/VPSocialLink.d.vue.ts +11 -0
  147. package/dist/client/theme-default/components/VPSocialLink.vue +42 -49
  148. package/dist/client/theme-default/components/VPSocialLinks.d.vue.ts +10 -0
  149. package/dist/client/theme-default/components/VPSocialLinks.vue +26 -16
  150. package/dist/client/theme-default/components/VPSponsors.d.vue.ts +18 -0
  151. package/dist/client/theme-default/components/VPSponsors.vue +34 -33
  152. package/dist/client/theme-default/components/VPSponsorsGrid.d.vue.ts +15 -0
  153. package/dist/client/theme-default/components/VPSponsorsGrid.vue +23 -26
  154. package/dist/client/theme-default/components/VPSwitch.d.vue.ts +13 -0
  155. package/dist/client/theme-default/components/VPSwitch.vue +12 -13
  156. package/dist/client/theme-default/components/VPSwitchAppearance.d.vue.ts +3 -0
  157. package/dist/client/theme-default/components/VPSwitchAppearance.vue +16 -21
  158. package/dist/client/theme-default/components/VPTeamMembers.d.vue.ts +10 -0
  159. package/dist/client/theme-default/components/VPTeamMembers.vue +59 -32
  160. package/dist/client/theme-default/components/VPTeamMembersItem.d.vue.ts +10 -0
  161. package/dist/client/theme-default/components/VPTeamMembersItem.vue +62 -58
  162. package/dist/client/theme-default/components/VPTeamPage.d.vue.ts +13 -0
  163. package/dist/client/theme-default/components/VPTeamPage.vue +14 -14
  164. package/dist/client/theme-default/components/VPTeamPageSection.d.vue.ts +17 -0
  165. package/dist/client/theme-default/components/VPTeamPageSection.vue +20 -19
  166. package/dist/client/theme-default/components/VPTeamPageTitle.d.vue.ts +15 -0
  167. package/dist/client/theme-default/components/VPTeamPageTitle.vue +22 -22
  168. package/dist/client/theme-default/composables/data.d.ts +5 -0
  169. package/dist/client/theme-default/composables/data.js +5 -2
  170. package/dist/client/theme-default/composables/edit-link.d.ts +6 -0
  171. package/dist/client/theme-default/composables/edit-link.js +17 -15
  172. package/dist/client/theme-default/composables/flyout.d.ts +10 -0
  173. package/dist/client/theme-default/composables/flyout.js +33 -32
  174. package/dist/client/theme-default/composables/langs.d.ts +44 -0
  175. package/dist/client/theme-default/composables/langs.js +48 -24
  176. package/dist/client/theme-default/composables/layout.d.ts +13 -0
  177. package/dist/client/theme-default/composables/layout.js +68 -0
  178. package/dist/client/theme-default/composables/nav-overflow.d.ts +54 -0
  179. package/dist/client/theme-default/composables/nav-overflow.js +179 -0
  180. package/dist/client/theme-default/composables/nav.d.ts +25 -0
  181. package/dist/client/theme-default/composables/nav.js +58 -29
  182. package/dist/client/theme-default/composables/outline.d.ts +8 -0
  183. package/dist/client/theme-default/composables/outline.js +144 -166
  184. package/dist/client/theme-default/composables/prev-next.d.ts +16 -0
  185. package/dist/client/theme-default/composables/prev-next.js +34 -56
  186. package/dist/client/theme-default/composables/scroll-lock.d.ts +4 -0
  187. package/dist/client/theme-default/composables/scroll-lock.js +95 -0
  188. package/dist/client/theme-default/composables/sidebar.d.ts +25 -0
  189. package/dist/client/theme-default/composables/sidebar.js +96 -133
  190. package/dist/client/theme-default/composables/sponsor-grid.d.ts +10 -0
  191. package/dist/client/theme-default/composables/sponsor-grid.js +69 -76
  192. package/dist/client/theme-default/fonts/inter-italic-cyrillic-ext.woff2 +0 -0
  193. package/dist/client/theme-default/fonts/inter-italic-cyrillic.woff2 +0 -0
  194. package/dist/client/theme-default/fonts/inter-italic-greek-ext.woff2 +0 -0
  195. package/dist/client/theme-default/fonts/inter-italic-greek.woff2 +0 -0
  196. package/dist/client/theme-default/fonts/inter-italic-latin-ext.woff2 +0 -0
  197. package/dist/client/theme-default/fonts/inter-italic-latin.woff2 +0 -0
  198. package/dist/client/theme-default/fonts/inter-italic-symbols.woff2 +0 -0
  199. package/dist/client/theme-default/fonts/inter-italic-vietnamese.woff2 +0 -0
  200. package/dist/client/theme-default/fonts/inter-roman-cyrillic-ext.woff2 +0 -0
  201. package/dist/client/theme-default/fonts/inter-roman-cyrillic.woff2 +0 -0
  202. package/dist/client/theme-default/fonts/inter-roman-greek-ext.woff2 +0 -0
  203. package/dist/client/theme-default/fonts/inter-roman-greek.woff2 +0 -0
  204. package/dist/client/theme-default/fonts/inter-roman-latin-ext.woff2 +0 -0
  205. package/dist/client/theme-default/fonts/inter-roman-latin.woff2 +0 -0
  206. package/dist/client/theme-default/fonts/inter-roman-symbols.woff2 +0 -0
  207. package/dist/client/theme-default/fonts/inter-roman-vietnamese.woff2 +0 -0
  208. package/dist/client/theme-default/index.d.ts +3 -0
  209. package/dist/client/theme-default/index.js +4 -3
  210. package/dist/client/theme-default/styles/base.css +279 -211
  211. package/dist/client/theme-default/styles/components/custom-block.css +12 -7
  212. package/dist/client/theme-default/styles/components/vp-code-group.css +13 -16
  213. package/dist/client/theme-default/styles/components/vp-code.css +10 -2
  214. package/dist/client/theme-default/styles/components/vp-doc.css +188 -142
  215. package/dist/client/theme-default/styles/components/vp-sponsor.css +48 -37
  216. package/dist/client/theme-default/styles/docsearch.css +138 -0
  217. package/dist/client/theme-default/styles/fonts.css +216 -55
  218. package/dist/client/theme-default/styles/icons.css +42 -22
  219. package/dist/client/theme-default/styles/vars.css +111 -46
  220. package/dist/client/theme-default/support/docsearch.d.ts +57 -0
  221. package/dist/client/theme-default/support/docsearch.js +145 -0
  222. package/dist/client/theme-default/support/local-search.d.ts +9 -0
  223. package/dist/client/theme-default/support/local-search.js +31 -0
  224. package/dist/client/theme-default/support/lru.d.ts +11 -0
  225. package/dist/client/theme-default/support/lru.js +30 -33
  226. package/dist/client/theme-default/support/reactivity.d.ts +4 -0
  227. package/dist/client/theme-default/support/reactivity.js +10 -0
  228. package/dist/client/theme-default/support/sidebar.d.ts +27 -0
  229. package/dist/client/theme-default/support/sidebar.js +69 -80
  230. package/dist/client/theme-default/support/translation.d.ts +6 -0
  231. package/dist/client/theme-default/support/translation.js +33 -47
  232. package/dist/client/theme-default/support/utils.d.ts +7 -0
  233. package/dist/client/theme-default/support/utils.js +39 -30
  234. package/dist/client/theme-default/without-fonts.d.ts +25 -0
  235. package/dist/client/theme-default/without-fonts.js +37 -36
  236. package/dist/node/chunk-BjrVv9r8.js +28627 -0
  237. package/dist/node/cli.d.ts +1 -0
  238. package/dist/node/cli.js +160 -423
  239. package/dist/node/index.d.ts +1761 -2476
  240. package/dist/node/index.js +1 -121
  241. package/dist/web-types.json +75 -0
  242. package/package.json +89 -98
  243. package/template/.vitepress/config.js +3 -1
  244. package/template/.vitepress/theme/style.css +3 -11
  245. package/theme.d.ts +30 -23
  246. package/types/default-theme.d.ts +109 -113
  247. package/types/docsearch.d.ts +61 -142
  248. package/types/shared.d.ts +469 -50
  249. package/dist/client/theme-default/components/VPNavBarAppearance.vue +0 -32
  250. package/dist/client/theme-default/components/VPNavBarMenu.vue +0 -40
  251. package/dist/client/theme-default/components/VPNavBarMenuGroup.vue +0 -42
  252. package/dist/client/theme-default/components/VPNavBarMenuLink.vue +0 -53
  253. package/dist/client/theme-default/components/VPNavBarSocialLinks.vue +0 -27
  254. package/dist/client/theme-default/components/VPNavBarTranslations.vue +0 -47
  255. package/dist/client/theme-default/components/VPNavScreenAppearance.vue +0 -40
  256. package/dist/client/theme-default/components/VPNavScreenMenu.vue +0 -26
  257. package/dist/client/theme-default/components/VPNavScreenMenuGroup.vue +0 -112
  258. package/dist/client/theme-default/components/VPNavScreenMenuGroupLink.vue +0 -40
  259. package/dist/client/theme-default/components/VPNavScreenMenuGroupSection.vue +0 -34
  260. package/dist/client/theme-default/components/VPNavScreenMenuLink.vue +0 -43
  261. package/dist/client/theme-default/components/VPNavScreenSocialLinks.vue +0 -14
  262. package/dist/client/theme-default/components/VPNavScreenTranslations.vue +0 -73
  263. package/dist/client/theme-default/components/icons/VPIconAlignJustify.vue +0 -8
  264. package/dist/client/theme-default/components/icons/VPIconAlignLeft.vue +0 -8
  265. package/dist/client/theme-default/components/icons/VPIconAlignRight.vue +0 -8
  266. package/dist/client/theme-default/components/icons/VPIconArrowLeft.vue +0 -7
  267. package/dist/client/theme-default/components/icons/VPIconArrowRight.vue +0 -7
  268. package/dist/client/theme-default/components/icons/VPIconChevronDown.vue +0 -5
  269. package/dist/client/theme-default/components/icons/VPIconChevronLeft.vue +0 -5
  270. package/dist/client/theme-default/components/icons/VPIconChevronRight.vue +0 -5
  271. package/dist/client/theme-default/components/icons/VPIconChevronUp.vue +0 -5
  272. package/dist/client/theme-default/components/icons/VPIconEdit.vue +0 -6
  273. package/dist/client/theme-default/components/icons/VPIconHeart.vue +0 -5
  274. package/dist/client/theme-default/components/icons/VPIconLanguages.vue +0 -9
  275. package/dist/client/theme-default/components/icons/VPIconMinus.vue +0 -5
  276. package/dist/client/theme-default/components/icons/VPIconMinusSquare.vue +0 -6
  277. package/dist/client/theme-default/components/icons/VPIconMoon.vue +0 -5
  278. package/dist/client/theme-default/components/icons/VPIconMoreHorizontal.vue +0 -7
  279. package/dist/client/theme-default/components/icons/VPIconPlus.vue +0 -5
  280. package/dist/client/theme-default/components/icons/VPIconPlusSquare.vue +0 -6
  281. package/dist/client/theme-default/components/icons/VPIconSun.vue +0 -13
  282. package/dist/client/theme-default/composables/aside.js +0 -17
  283. package/dist/client/theme-default/composables/local-nav.js +0 -18
  284. package/dist/node/chunk-C-d2RJOW.js +0 -470
  285. package/dist/node/chunk-CxQfvv8o.js +0 -49065
  286. package/dist/node/worker_shikiResolveLang.js +0 -13
@@ -1,251 +1,319 @@
1
- @media (prefers-reduced-motion: reduce) {
1
+ @layer __vitepress_base {
2
+ /* #region Tailwind Preflight */
3
+
4
+ /* Based on https://github.com/tailwindlabs/tailwindcss/blob/e48c5e80473c25fe5a27fe267fbaf4f6512424a3/packages/tailwindcss/preflight.css,
5
+ with the `--theme()` references replaced by vitepress variables, and `bolder` replaced by `600` */
6
+
2
7
  *,
8
+ ::after,
3
9
  ::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;
10
+ ::backdrop,
11
+ ::file-selector-button {
12
+ box-sizing: border-box;
13
+ margin: 0;
14
+ padding: 0;
15
+ border: 0 solid;
12
16
  }
13
- }
14
17
 
15
- *,
16
- ::before,
17
- ::after {
18
- box-sizing: border-box;
19
- }
18
+ html,
19
+ :host {
20
+ line-height: 1.5;
21
+ -webkit-text-size-adjust: 100%;
22
+ tab-size: 4;
23
+ font-family: var(--vp-font-family-base);
24
+ font-feature-settings: normal;
25
+ font-variation-settings: normal;
26
+ -webkit-tap-highlight-color: transparent;
27
+ }
20
28
 
21
- html {
22
- line-height: 1.4;
23
- font-size: 16px;
24
- -webkit-text-size-adjust: 100%;
25
- }
29
+ hr {
30
+ height: 0;
31
+ color: inherit;
32
+ border-top-width: 1px;
33
+ }
26
34
 
27
- html.dark {
28
- color-scheme: dark;
29
- }
35
+ abbr:where([title]) {
36
+ -webkit-text-decoration: underline dotted;
37
+ text-decoration: underline dotted;
38
+ }
30
39
 
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
- }
40
+ h1,
41
+ h2,
42
+ h3,
43
+ h4,
44
+ h5,
45
+ h6 {
46
+ font-size: inherit;
47
+ font-weight: inherit;
48
+ }
47
49
 
48
- main {
49
- display: block;
50
- }
50
+ a {
51
+ color: inherit;
52
+ -webkit-text-decoration: inherit;
53
+ text-decoration: inherit;
54
+ }
51
55
 
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
- }
56
+ b,
57
+ strong {
58
+ font-weight: 600;
59
+ }
63
60
 
64
- p {
65
- margin: 0;
66
- }
61
+ code,
62
+ kbd,
63
+ samp,
64
+ pre {
65
+ font-family: var(--vp-font-family-mono);
66
+ font-feature-settings: normal;
67
+ font-variation-settings: normal;
68
+ font-size: 1em;
69
+ }
67
70
 
68
- strong,
69
- b {
70
- font-weight: 600;
71
- }
71
+ small {
72
+ font-size: 80%;
73
+ }
72
74
 
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
- }
75
+ sub,
76
+ sup {
77
+ font-size: 75%;
78
+ line-height: 0;
79
+ position: relative;
80
+ vertical-align: baseline;
81
+ }
99
82
 
100
- a {
101
- color: inherit;
102
- text-decoration: inherit;
103
- }
83
+ sub {
84
+ bottom: -0.25em;
85
+ }
104
86
 
105
- ol,
106
- ul {
107
- list-style: none;
108
- margin: 0;
109
- padding: 0;
110
- }
87
+ sup {
88
+ top: -0.5em;
89
+ }
111
90
 
112
- blockquote {
113
- margin: 0;
114
- }
91
+ table {
92
+ text-indent: 0;
93
+ border-color: inherit;
94
+ border-collapse: collapse;
95
+ }
115
96
 
116
- pre,
117
- code,
118
- kbd,
119
- samp {
120
- font-family: var(--vp-font-family-mono);
121
- }
97
+ :-moz-focusring:where(:not(iframe)) {
98
+ outline: auto;
99
+ }
122
100
 
123
- img,
124
- svg,
125
- video,
126
- canvas,
127
- audio,
128
- iframe,
129
- embed,
130
- object {
131
- display: block;
132
- }
101
+ progress {
102
+ vertical-align: baseline;
103
+ }
133
104
 
134
- figure {
135
- margin: 0;
136
- }
105
+ summary {
106
+ display: list-item;
107
+ }
137
108
 
138
- img,
139
- video {
140
- max-width: 100%;
141
- height: auto;
142
- }
109
+ ol,
110
+ ul,
111
+ menu {
112
+ list-style: none;
113
+ }
143
114
 
144
- button,
145
- input,
146
- optgroup,
147
- select,
148
- textarea {
149
- border: 0;
150
- padding: 0;
151
- line-height: inherit;
152
- color: inherit;
153
- }
115
+ img,
116
+ svg,
117
+ video,
118
+ canvas,
119
+ audio,
120
+ iframe,
121
+ embed,
122
+ object {
123
+ display: block;
124
+ }
154
125
 
155
- button {
156
- padding: 0;
157
- font-family: inherit;
158
- background-color: transparent;
159
- background-image: none;
160
- }
126
+ img,
127
+ video {
128
+ max-width: 100%;
129
+ height: auto;
130
+ }
161
131
 
162
- button:enabled,
163
- [role='button']:enabled {
164
- cursor: pointer;
165
- }
132
+ button,
133
+ input,
134
+ select,
135
+ optgroup,
136
+ textarea,
137
+ ::file-selector-button {
138
+ font: inherit;
139
+ font-feature-settings: inherit;
140
+ font-variation-settings: inherit;
141
+ letter-spacing: inherit;
142
+ color: inherit;
143
+ border-radius: 0;
144
+ background-color: transparent;
145
+ opacity: 1;
146
+ }
166
147
 
167
- button:focus,
168
- button:focus-visible {
169
- outline: 1px dotted;
170
- outline: 4px auto -webkit-focus-ring-color;
171
- }
148
+ :where(select:is([multiple], [size])) optgroup {
149
+ font-weight: 600;
150
+ }
172
151
 
173
- button:focus:not(:focus-visible) {
174
- outline: none !important;
175
- }
152
+ :where(select:is([multiple], [size])) optgroup option {
153
+ padding-inline-start: 1.25rem;
154
+ }
176
155
 
177
- input:focus,
178
- textarea:focus,
179
- select:focus {
180
- outline: none;
181
- }
156
+ ::file-selector-button {
157
+ margin-inline-end: 0.25rem;
158
+ }
182
159
 
183
- table {
184
- border-collapse: collapse;
185
- }
160
+ ::placeholder {
161
+ opacity: 1;
162
+ }
186
163
 
187
- input {
188
- background-color: transparent;
189
- }
164
+ @supports (not (-webkit-appearance: -apple-pay-button)) or
165
+ (contain-intrinsic-size: 1px) {
166
+ ::placeholder {
167
+ color: color-mix(in oklab, currentcolor 50%, transparent);
168
+ }
169
+ }
190
170
 
191
- input:-ms-input-placeholder,
192
- textarea:-ms-input-placeholder {
193
- color: var(--vp-c-text-3);
194
- }
171
+ textarea {
172
+ resize: vertical;
173
+ }
195
174
 
196
- input::-ms-input-placeholder,
197
- textarea::-ms-input-placeholder {
198
- color: var(--vp-c-text-3);
199
- }
175
+ ::-webkit-search-decoration {
176
+ -webkit-appearance: none;
177
+ }
200
178
 
201
- input::placeholder,
202
- textarea::placeholder {
203
- color: var(--vp-c-text-3);
204
- }
179
+ ::-webkit-date-and-time-value {
180
+ min-height: 1lh;
181
+ text-align: inherit;
182
+ }
205
183
 
206
- input::-webkit-outer-spin-button,
207
- input::-webkit-inner-spin-button {
208
- -webkit-appearance: none;
209
- margin: 0;
210
- }
184
+ ::-webkit-datetime-edit {
185
+ display: inline-flex;
186
+ }
211
187
 
212
- input[type='number'] {
213
- -moz-appearance: textfield;
214
- }
188
+ ::-webkit-datetime-edit-fields-wrapper {
189
+ padding: 0;
190
+ }
215
191
 
216
- textarea {
217
- resize: vertical;
218
- }
192
+ ::-webkit-datetime-edit,
193
+ ::-webkit-datetime-edit-year-field,
194
+ ::-webkit-datetime-edit-month-field,
195
+ ::-webkit-datetime-edit-day-field,
196
+ ::-webkit-datetime-edit-hour-field,
197
+ ::-webkit-datetime-edit-minute-field,
198
+ ::-webkit-datetime-edit-second-field,
199
+ ::-webkit-datetime-edit-millisecond-field,
200
+ ::-webkit-datetime-edit-meridiem-field {
201
+ padding-block: 0;
202
+ }
219
203
 
220
- select {
221
- -webkit-appearance: none;
222
- }
204
+ ::-webkit-calendar-picker-indicator {
205
+ line-height: 1;
206
+ }
223
207
 
224
- fieldset {
225
- margin: 0;
226
- padding: 0;
227
- }
208
+ :-moz-ui-invalid {
209
+ box-shadow: none;
210
+ }
228
211
 
229
- h1,
230
- h2,
231
- h3,
232
- h4,
233
- h5,
234
- h6,
235
- li,
236
- p {
237
- overflow-wrap: break-word;
238
- }
212
+ button,
213
+ input:where([type='button'], [type='reset'], [type='submit']),
214
+ ::file-selector-button {
215
+ appearance: button;
216
+ }
239
217
 
240
- vite-error-overlay {
241
- z-index: 9999;
242
- }
218
+ ::-webkit-inner-spin-button,
219
+ ::-webkit-outer-spin-button {
220
+ height: auto;
221
+ }
243
222
 
244
- mjx-container {
245
- overflow-x: auto;
246
- }
223
+ [hidden]:where(:not([hidden='until-found'])) {
224
+ display: none !important;
225
+ }
226
+
227
+ /* #endregion */
228
+
229
+ /* #region VitePress Overrides */
230
+
231
+ /* https://web.dev/articles/prefers-reduced-motion#bonus_forcing_reduced_motion_on_all_websites */
232
+ @media (prefers-reduced-motion: reduce) {
233
+ *,
234
+ ::before,
235
+ ::after {
236
+ animation-delay: -1ms !important;
237
+ animation-duration: 1ms !important;
238
+ animation-iteration-count: 1 !important;
239
+ background-attachment: initial !important;
240
+ scroll-behavior: auto !important;
241
+ transition-duration: 0s !important;
242
+ transition-delay: 0s !important;
243
+ }
244
+ }
245
+
246
+ :root {
247
+ &:is(.dark) {
248
+ color-scheme: dark;
249
+ }
250
+ &:not(.dark) {
251
+ color-scheme: light;
252
+ }
253
+ }
254
+
255
+ body {
256
+ color: var(--vp-c-text-1);
257
+ background-color: var(--vp-c-bg);
258
+ text-rendering: optimizeLegibility;
259
+ -webkit-font-smoothing: antialiased;
260
+ -moz-osx-font-smoothing: grayscale;
261
+ text-autospace: normal;
262
+ text-spacing-trim: normal;
263
+ }
264
+
265
+ pre,
266
+ code,
267
+ kbd,
268
+ samp {
269
+ text-autospace: no-autospace;
270
+ }
271
+
272
+ button:enabled,
273
+ [role='button']:enabled {
274
+ cursor: pointer;
275
+ }
276
+
277
+ button:focus,
278
+ input:focus,
279
+ textarea:focus,
280
+ select:focus {
281
+ outline: none;
282
+ }
283
+
284
+ button:focus-visible {
285
+ outline: 1px dotted;
286
+ outline: 4px auto -webkit-focus-ring-color;
287
+ }
288
+
289
+ input::placeholder,
290
+ textarea::placeholder {
291
+ color: var(--vp-c-text-3);
292
+ }
293
+
294
+ h1,
295
+ h2,
296
+ h3,
297
+ h4,
298
+ h5,
299
+ h6,
300
+ li,
301
+ p {
302
+ overflow-wrap: break-word;
303
+ }
304
+
305
+ vite-error-overlay {
306
+ z-index: 9999;
307
+ }
308
+
309
+ mjx-container {
310
+ overflow-x: auto;
311
+ }
312
+
313
+ mjx-container > svg {
314
+ display: inline-block;
315
+ margin: auto;
316
+ }
247
317
 
248
- mjx-container > svg {
249
- display: inline-block;
250
- margin: auto;
318
+ /* #endregion */
251
319
  }
@@ -1,12 +1,17 @@
1
1
  .custom-block {
2
2
  border: 1px solid transparent;
3
- border-radius: 8px;
4
- padding: 16px 16px 8px;
5
- line-height: 24px;
3
+ border-radius: 0.5rem;
4
+ padding: 0.5rem 1rem;
5
+ line-height: 1.7142857;
6
6
  font-size: var(--vp-custom-block-font-size);
7
7
  color: var(--vp-c-text-2);
8
8
  }
9
9
 
10
+ /* containers rendered with `{no-title}` keep the reduced padding */
11
+ .custom-block:has(> .custom-block-title, > summary) {
12
+ padding-top: 1rem;
13
+ }
14
+
10
15
  .custom-block.info {
11
16
  border-color: var(--vp-custom-block-info-border);
12
17
  color: var(--vp-custom-block-info-text);
@@ -171,25 +176,25 @@
171
176
  }
172
177
 
173
178
  .custom-block p + p {
174
- margin: 8px 0;
179
+ margin: 0.5rem 0;
175
180
  }
176
181
 
177
182
  .custom-block.details summary {
178
- margin: 0 0 8px;
183
+ margin: 0 0 0.5rem;
179
184
  font-weight: 700;
180
185
  cursor: pointer;
181
186
  user-select: none;
182
187
  }
183
188
 
184
189
  .custom-block.details summary + p {
185
- margin: 8px 0;
190
+ margin: 0.5rem 0;
186
191
  }
187
192
 
188
193
  .custom-block a {
189
194
  color: inherit;
190
195
  font-weight: 600;
191
196
  text-decoration: underline;
192
- text-underline-offset: 2px;
197
+ text-underline-offset: 0.125rem;
193
198
  transition: opacity 0.25s;
194
199
  }
195
200
 
@@ -1,24 +1,22 @@
1
1
  .vp-code-group {
2
- margin-top: 16px;
2
+ margin-top: 1rem;
3
3
  }
4
4
 
5
5
  .vp-code-group .tabs {
6
6
  position: relative;
7
7
  display: flex;
8
- margin-right: -24px;
9
- margin-left: -24px;
10
- padding: 0 12px;
8
+ margin-inline: -1.5rem;
9
+ padding: 0 0.75rem;
11
10
  background-color: var(--vp-code-tab-bg);
12
11
  overflow-x: auto;
13
12
  overflow-y: hidden;
14
13
  box-shadow: inset 0 -1px var(--vp-code-tab-divider);
15
14
  }
16
15
 
17
- @media (min-width: 640px) {
16
+ @media (min-width: 40rem) {
18
17
  .vp-code-group .tabs {
19
- margin-right: 0;
20
- margin-left: 0;
21
- border-radius: 8px 8px 0 0;
18
+ margin-inline: 0;
19
+ border-radius: 0.5rem 0.5rem 0 0;
22
20
  }
23
21
  }
24
22
 
@@ -32,9 +30,9 @@
32
30
  position: relative;
33
31
  display: inline-block;
34
32
  border-bottom: 1px solid transparent;
35
- padding: 0 12px;
36
- line-height: 48px;
37
- font-size: 14px;
33
+ padding: 0 0.75rem;
34
+ line-height: 3.4285714;
35
+ font-size: 0.875rem;
38
36
  font-weight: 500;
39
37
  color: var(--vp-code-tab-text-color);
40
38
  white-space: nowrap;
@@ -44,9 +42,8 @@
44
42
 
45
43
  .vp-code-group .tabs label::after {
46
44
  position: absolute;
47
- right: 8px;
45
+ inset-inline: 0.5rem;
48
46
  bottom: -1px;
49
- left: 8px;
50
47
  z-index: 1;
51
48
  height: 2px;
52
49
  border-radius: 2px;
@@ -71,8 +68,8 @@
71
68
  .vp-block {
72
69
  display: none;
73
70
  margin-top: 0 !important;
74
- border-top-left-radius: 0 !important;
75
- border-top-right-radius: 0 !important;
71
+ border-start-start-radius: 0 !important;
72
+ border-start-end-radius: 0 !important;
76
73
  }
77
74
 
78
75
  .vp-code-group div[class*='language-'].active,
@@ -81,5 +78,5 @@
81
78
  }
82
79
 
83
80
  .vp-block {
84
- padding: 20px 24px;
81
+ padding: 1.25rem 1.5rem;
85
82
  }
@@ -1,7 +1,15 @@
1
- .dark .vp-code span {
1
+ .dark .shiki span {
2
2
  color: var(--shiki-dark, inherit);
3
+ text-decoration: var(--shiki-dark-text-decoration, inherit);
4
+ font-weight: var(--shiki-dark-font-weight, inherit);
3
5
  }
4
6
 
5
- html:not(.dark) .vp-code span {
7
+ html:not(.dark) .shiki span {
6
8
  color: var(--shiki-light, inherit);
9
+ text-decoration: var(--shiki-light-text-decoration, inherit);
10
+ font-weight: var(--shiki-light-font-weight, inherit);
11
+ }
12
+
13
+ .shiki span {
14
+ unicode-bidi: isolate;
7
15
  }