@md-plugins/quasar-app-extension-q-press 0.1.0-beta.2 → 0.1.0-beta.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 (253) hide show
  1. package/README.md +20 -15
  2. package/dist/index.js +41 -7
  3. package/dist/install.js +7 -5
  4. package/dist/q-press-globals.d.ts +49 -0
  5. package/dist/templates/init/src/_q-press/api/components/MarkdownCode.json +2 -2
  6. package/dist/templates/init/src/_q-press/api/components/MarkdownCodepen.json +6 -9
  7. package/dist/templates/init/src/_q-press/api/components/MarkdownExample.json +27 -2
  8. package/dist/templates/init/src/_q-press/components/MarkdownApi.vue +129 -84
  9. package/dist/templates/init/src/_q-press/components/MarkdownCardLink.vue +1 -1
  10. package/dist/templates/init/src/_q-press/components/MarkdownCardTitle.vue +1 -1
  11. package/dist/templates/init/src/_q-press/components/MarkdownCode.vue +71 -3
  12. package/dist/templates/init/src/_q-press/components/MarkdownCodepen.vue +316 -59
  13. package/dist/templates/init/src/_q-press/components/MarkdownCopyButton.vue +1 -1
  14. package/dist/templates/init/src/_q-press/components/MarkdownExample.vue +54 -19
  15. package/dist/templates/init/src/_q-press/components/MarkdownLink.vue +5 -5
  16. package/dist/templates/init/src/_q-press/components/MarkdownMermaid.vue +123 -0
  17. package/dist/templates/init/src/_q-press/components/MarkdownTree.vue +2 -2
  18. package/dist/templates/init/src/_q-press/components/markdown-utils.ts +27 -3
  19. package/dist/templates/init/src/_q-press/css/app.scss +38 -26
  20. package/dist/templates/init/src/_q-press/css/code-theme.scss +634 -0
  21. package/dist/templates/init/src/_q-press/css/themes/default.scss +1 -1
  22. package/dist/templates/init/src/_q-press/css/themes/evergreen.scss +69 -0
  23. package/dist/templates/init/src/_q-press/css/themes/mystic.scss +1 -1
  24. package/dist/templates/init/src/_q-press/css/themes/newspaper.scss +1 -1
  25. package/dist/templates/init/src/_q-press/css/themes/sunrise.scss +1 -1
  26. package/dist/templates/init/src/_q-press/css/themes/tawny.scss +1 -1
  27. package/dist/templates/init/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
  28. package/dist/templates/init/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
  29. package/dist/templates/init/src/_q-press/layouts/MarkdownHeader.vue +1 -1
  30. package/dist/templates/init/src/_q-press/layouts/MarkdownLayout.vue +2 -2
  31. package/dist/templates/init/src/_q-press/layouts/MarkdownPage.vue +4 -3
  32. package/dist/templates/init/src/_q-press/layouts/MarkdownSearch.vue +1 -1
  33. package/dist/templates/init/src/_q-press/stores/markdown.ts +1 -2
  34. package/dist/templates/init/src/components/LandingPage/LandingPage.vue +15 -1
  35. package/dist/templates/init/src/components/QPressThemeGallery.vue +336 -0
  36. package/dist/templates/init/src/components/page-parts/releases/GitHubReleases.vue +121 -0
  37. package/dist/templates/init/src/components/page-parts/releases/PackageReleases.vue +191 -0
  38. package/dist/templates/init/src/components/page-parts/releases/md-table-parser.ts +52 -0
  39. package/dist/templates/init/src/components/page-parts/releases/sanitize.ts +132 -0
  40. package/dist/templates/init/src/markdown/__elements.md +8 -8
  41. package/dist/templates/init/src/markdown/__elements2.md +4 -4
  42. package/dist/templates/init/src/markdown/faq/best-practices.md +27 -0
  43. package/dist/templates/init/src/markdown/faq/general.md +27 -0
  44. package/dist/templates/init/src/markdown/faq/troubleshooting.md +27 -0
  45. package/dist/templates/init/src/markdown/getting-started/introduction.md +7 -5
  46. package/dist/templates/init/src/markdown/md-plugins/blockquote/overview.md +3 -1
  47. package/dist/templates/init/src/markdown/md-plugins/codeblocks/advanced.md +19 -15
  48. package/dist/templates/init/src/markdown/md-plugins/codeblocks/overview.md +45 -8
  49. package/dist/templates/init/src/markdown/md-plugins/containers/overview.md +3 -1
  50. package/dist/templates/init/src/markdown/md-plugins/frontmatter/overview.md +3 -1
  51. package/dist/templates/init/src/markdown/md-plugins/headers/overview.md +3 -1
  52. package/dist/templates/init/src/markdown/md-plugins/image/overview.md +3 -1
  53. package/dist/templates/init/src/markdown/md-plugins/imports/overview.md +3 -1
  54. package/dist/templates/init/src/markdown/md-plugins/inline-code/overview.md +3 -1
  55. package/dist/templates/init/src/markdown/md-plugins/link/advanced.md +2 -2
  56. package/dist/templates/init/src/markdown/md-plugins/link/overview.md +6 -4
  57. package/dist/templates/init/src/markdown/md-plugins/mermaid/advanced.md +69 -0
  58. package/dist/templates/init/src/markdown/md-plugins/mermaid/overview.md +73 -0
  59. package/dist/templates/init/src/markdown/md-plugins/shared/overview.md +28 -13
  60. package/dist/templates/init/src/markdown/md-plugins/table/overview.md +3 -1
  61. package/dist/templates/init/src/markdown/md-plugins/title/overview.md +3 -1
  62. package/dist/templates/init/src/markdown/other/contact.md +37 -0
  63. package/dist/templates/init/src/markdown/other/contributing/bugs-and-feature-requests.md +33 -0
  64. package/dist/templates/init/src/markdown/other/contributing/call-to-action.md +25 -0
  65. package/dist/templates/init/src/markdown/other/contributing/documentation.md +31 -0
  66. package/dist/templates/init/src/markdown/other/contributing/overview.md +41 -0
  67. package/dist/templates/init/src/markdown/other/contributing/packages.md +28 -0
  68. package/dist/templates/init/src/markdown/other/contributing/sponsor.md +23 -0
  69. package/dist/templates/init/src/markdown/other/faq.md +179 -0
  70. package/dist/templates/init/src/markdown/other/releases.md +11 -0
  71. package/dist/templates/init/src/markdown/other/upgrade-guide.md +165 -0
  72. package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/advanced.md +11 -3
  73. package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/components.md +25 -29
  74. package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/overview.md +20 -20
  75. package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/site-config.md +17 -3
  76. package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/themes.md +101 -9
  77. package/dist/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/advanced.md +158 -0
  78. package/dist/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/overview.md +1 -1
  79. package/dist/templates/init/src/markdown/vite-plugins/vite-examples-plugin/advanced.md +8 -3
  80. package/dist/templates/init/src/markdown/vite-plugins/vite-examples-plugin/overview.md +19 -5
  81. package/dist/templates/init/src/markdown/vite-plugins/vite-md-plugin/advanced.md +84 -54
  82. package/dist/templates/init/src/markdown/vite-plugins/vite-md-plugin/overview.md +19 -3
  83. package/dist/templates/init/src/siteConfig/index.ts +52 -23
  84. package/dist/templates/update/src/_q-press/api/components/MarkdownCode.json +2 -2
  85. package/dist/templates/update/src/_q-press/api/components/MarkdownCodepen.json +6 -9
  86. package/dist/templates/update/src/_q-press/api/components/MarkdownExample.json +27 -2
  87. package/dist/templates/update/src/_q-press/components/MarkdownApi.vue +129 -84
  88. package/dist/templates/update/src/_q-press/components/MarkdownCardLink.vue +1 -1
  89. package/dist/templates/update/src/_q-press/components/MarkdownCardTitle.vue +1 -1
  90. package/dist/templates/update/src/_q-press/components/MarkdownCode.vue +71 -3
  91. package/dist/templates/update/src/_q-press/components/MarkdownCodepen.vue +316 -59
  92. package/dist/templates/update/src/_q-press/components/MarkdownCopyButton.vue +1 -1
  93. package/dist/templates/update/src/_q-press/components/MarkdownExample.vue +54 -19
  94. package/dist/templates/update/src/_q-press/components/MarkdownLink.vue +5 -5
  95. package/dist/templates/update/src/_q-press/components/MarkdownMermaid.vue +123 -0
  96. package/dist/templates/update/src/_q-press/components/MarkdownTree.vue +2 -2
  97. package/dist/templates/update/src/_q-press/components/markdown-utils.ts +27 -3
  98. package/dist/templates/update/src/_q-press/css/app.scss +38 -26
  99. package/dist/templates/update/src/_q-press/css/code-theme.scss +634 -0
  100. package/dist/templates/update/src/_q-press/css/themes/default.scss +1 -1
  101. package/dist/templates/update/src/_q-press/css/themes/evergreen.scss +69 -0
  102. package/dist/templates/update/src/_q-press/css/themes/mystic.scss +1 -1
  103. package/dist/templates/update/src/_q-press/css/themes/newspaper.scss +1 -1
  104. package/dist/templates/update/src/_q-press/css/themes/sunrise.scss +1 -1
  105. package/dist/templates/update/src/_q-press/css/themes/tawny.scss +1 -1
  106. package/dist/templates/update/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
  107. package/dist/templates/update/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
  108. package/dist/templates/update/src/_q-press/layouts/MarkdownHeader.vue +1 -1
  109. package/dist/templates/update/src/_q-press/layouts/MarkdownLayout.vue +2 -2
  110. package/dist/templates/update/src/_q-press/layouts/MarkdownPage.vue +4 -3
  111. package/dist/templates/update/src/_q-press/layouts/MarkdownSearch.vue +1 -1
  112. package/dist/templates/update/src/_q-press/stores/markdown.ts +1 -2
  113. package/package.json +22 -21
  114. package/src/index.ts +80 -11
  115. package/src/install.ts +10 -9
  116. package/src/q-press-globals.d.ts +49 -0
  117. package/src/templates/init/src/_q-press/api/components/MarkdownCode.json +2 -2
  118. package/src/templates/init/src/_q-press/api/components/MarkdownCodepen.json +6 -9
  119. package/src/templates/init/src/_q-press/api/components/MarkdownExample.json +27 -2
  120. package/src/templates/init/src/_q-press/components/MarkdownApi.vue +129 -84
  121. package/src/templates/init/src/_q-press/components/MarkdownCardLink.vue +1 -1
  122. package/src/templates/init/src/_q-press/components/MarkdownCardTitle.vue +1 -1
  123. package/src/templates/init/src/_q-press/components/MarkdownCode.vue +71 -3
  124. package/src/templates/init/src/_q-press/components/MarkdownCodepen.vue +316 -59
  125. package/src/templates/init/src/_q-press/components/MarkdownCopyButton.vue +1 -1
  126. package/src/templates/init/src/_q-press/components/MarkdownExample.vue +54 -19
  127. package/src/templates/init/src/_q-press/components/MarkdownLink.vue +5 -5
  128. package/src/templates/init/src/_q-press/components/MarkdownMermaid.vue +123 -0
  129. package/src/templates/init/src/_q-press/components/MarkdownTree.vue +2 -2
  130. package/src/templates/init/src/_q-press/components/markdown-utils.ts +27 -3
  131. package/src/templates/init/src/_q-press/css/app.scss +38 -26
  132. package/src/templates/init/src/_q-press/css/code-theme.scss +634 -0
  133. package/src/templates/init/src/_q-press/css/themes/default.scss +1 -1
  134. package/src/templates/init/src/_q-press/css/themes/evergreen.scss +69 -0
  135. package/src/templates/init/src/_q-press/css/themes/mystic.scss +1 -1
  136. package/src/templates/init/src/_q-press/css/themes/newspaper.scss +1 -1
  137. package/src/templates/init/src/_q-press/css/themes/sunrise.scss +1 -1
  138. package/src/templates/init/src/_q-press/css/themes/tawny.scss +1 -1
  139. package/src/templates/init/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
  140. package/src/templates/init/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
  141. package/src/templates/init/src/_q-press/layouts/MarkdownHeader.vue +1 -1
  142. package/src/templates/init/src/_q-press/layouts/MarkdownLayout.vue +2 -2
  143. package/src/templates/init/src/_q-press/layouts/MarkdownPage.vue +4 -3
  144. package/src/templates/init/src/_q-press/layouts/MarkdownSearch.vue +1 -1
  145. package/src/templates/init/src/_q-press/stores/markdown.ts +1 -2
  146. package/src/templates/init/src/components/LandingPage/LandingPage.vue +15 -1
  147. package/src/templates/init/src/components/QPressThemeGallery.vue +336 -0
  148. package/src/templates/init/src/components/page-parts/releases/GitHubReleases.vue +121 -0
  149. package/src/templates/init/src/components/page-parts/releases/PackageReleases.vue +191 -0
  150. package/src/templates/init/src/components/page-parts/releases/md-table-parser.ts +52 -0
  151. package/src/templates/init/src/components/page-parts/releases/sanitize.ts +132 -0
  152. package/src/templates/init/src/markdown/__elements.md +8 -8
  153. package/src/templates/init/src/markdown/__elements2.md +4 -4
  154. package/src/templates/init/src/markdown/faq/best-practices.md +27 -0
  155. package/src/templates/init/src/markdown/faq/general.md +27 -0
  156. package/src/templates/init/src/markdown/faq/troubleshooting.md +27 -0
  157. package/src/templates/init/src/markdown/getting-started/introduction.md +7 -5
  158. package/src/templates/init/src/markdown/md-plugins/blockquote/overview.md +3 -1
  159. package/src/templates/init/src/markdown/md-plugins/codeblocks/advanced.md +19 -15
  160. package/src/templates/init/src/markdown/md-plugins/codeblocks/overview.md +45 -8
  161. package/src/templates/init/src/markdown/md-plugins/containers/overview.md +3 -1
  162. package/src/templates/init/src/markdown/md-plugins/frontmatter/overview.md +3 -1
  163. package/src/templates/init/src/markdown/md-plugins/headers/overview.md +3 -1
  164. package/src/templates/init/src/markdown/md-plugins/image/overview.md +3 -1
  165. package/src/templates/init/src/markdown/md-plugins/imports/overview.md +3 -1
  166. package/src/templates/init/src/markdown/md-plugins/inline-code/overview.md +3 -1
  167. package/src/templates/init/src/markdown/md-plugins/link/advanced.md +2 -2
  168. package/src/templates/init/src/markdown/md-plugins/link/overview.md +6 -4
  169. package/src/templates/init/src/markdown/md-plugins/mermaid/advanced.md +69 -0
  170. package/src/templates/init/src/markdown/md-plugins/mermaid/overview.md +73 -0
  171. package/src/templates/init/src/markdown/md-plugins/shared/overview.md +28 -13
  172. package/src/templates/init/src/markdown/md-plugins/table/overview.md +3 -1
  173. package/src/templates/init/src/markdown/md-plugins/title/overview.md +3 -1
  174. package/src/templates/init/src/markdown/other/contact.md +37 -0
  175. package/src/templates/init/src/markdown/other/contributing/bugs-and-feature-requests.md +33 -0
  176. package/src/templates/init/src/markdown/other/contributing/call-to-action.md +25 -0
  177. package/src/templates/init/src/markdown/other/contributing/documentation.md +31 -0
  178. package/src/templates/init/src/markdown/other/contributing/overview.md +41 -0
  179. package/src/templates/init/src/markdown/other/contributing/packages.md +28 -0
  180. package/src/templates/init/src/markdown/other/contributing/sponsor.md +23 -0
  181. package/src/templates/init/src/markdown/other/faq.md +179 -0
  182. package/src/templates/init/src/markdown/other/releases.md +11 -0
  183. package/src/templates/init/src/markdown/other/upgrade-guide.md +165 -0
  184. package/src/templates/init/src/markdown/quasar-app-extensions/qpress/advanced.md +11 -3
  185. package/src/templates/init/src/markdown/quasar-app-extensions/qpress/components.md +25 -29
  186. package/src/templates/init/src/markdown/quasar-app-extensions/qpress/overview.md +20 -20
  187. package/src/templates/init/src/markdown/quasar-app-extensions/qpress/site-config.md +17 -3
  188. package/src/templates/init/src/markdown/quasar-app-extensions/qpress/themes.md +101 -9
  189. package/src/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/advanced.md +158 -0
  190. package/src/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/overview.md +1 -1
  191. package/src/templates/init/src/markdown/vite-plugins/vite-examples-plugin/advanced.md +8 -3
  192. package/src/templates/init/src/markdown/vite-plugins/vite-examples-plugin/overview.md +19 -5
  193. package/src/templates/init/src/markdown/vite-plugins/vite-md-plugin/advanced.md +84 -54
  194. package/src/templates/init/src/markdown/vite-plugins/vite-md-plugin/overview.md +19 -3
  195. package/src/templates/init/src/siteConfig/index.ts +52 -23
  196. package/src/templates/update/src/_q-press/api/components/MarkdownCode.json +2 -2
  197. package/src/templates/update/src/_q-press/api/components/MarkdownCodepen.json +6 -9
  198. package/src/templates/update/src/_q-press/api/components/MarkdownExample.json +27 -2
  199. package/src/templates/update/src/_q-press/components/MarkdownApi.vue +129 -84
  200. package/src/templates/update/src/_q-press/components/MarkdownCardLink.vue +1 -1
  201. package/src/templates/update/src/_q-press/components/MarkdownCardTitle.vue +1 -1
  202. package/src/templates/update/src/_q-press/components/MarkdownCode.vue +71 -3
  203. package/src/templates/update/src/_q-press/components/MarkdownCodepen.vue +316 -59
  204. package/src/templates/update/src/_q-press/components/MarkdownCopyButton.vue +1 -1
  205. package/src/templates/update/src/_q-press/components/MarkdownExample.vue +54 -19
  206. package/src/templates/update/src/_q-press/components/MarkdownLink.vue +5 -5
  207. package/src/templates/update/src/_q-press/components/MarkdownMermaid.vue +123 -0
  208. package/src/templates/update/src/_q-press/components/MarkdownTree.vue +2 -2
  209. package/src/templates/update/src/_q-press/components/markdown-utils.ts +27 -3
  210. package/src/templates/update/src/_q-press/css/app.scss +38 -26
  211. package/src/templates/update/src/_q-press/css/code-theme.scss +634 -0
  212. package/src/templates/update/src/_q-press/css/themes/default.scss +1 -1
  213. package/src/templates/update/src/_q-press/css/themes/evergreen.scss +69 -0
  214. package/src/templates/update/src/_q-press/css/themes/mystic.scss +1 -1
  215. package/src/templates/update/src/_q-press/css/themes/newspaper.scss +1 -1
  216. package/src/templates/update/src/_q-press/css/themes/sunrise.scss +1 -1
  217. package/src/templates/update/src/_q-press/css/themes/tawny.scss +1 -1
  218. package/src/templates/update/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
  219. package/src/templates/update/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
  220. package/src/templates/update/src/_q-press/layouts/MarkdownHeader.vue +1 -1
  221. package/src/templates/update/src/_q-press/layouts/MarkdownLayout.vue +2 -2
  222. package/src/templates/update/src/_q-press/layouts/MarkdownPage.vue +4 -3
  223. package/src/templates/update/src/_q-press/layouts/MarkdownSearch.vue +1 -1
  224. package/src/templates/update/src/_q-press/stores/markdown.ts +1 -2
  225. package/tsconfig.json +1 -1
  226. package/dist/templates/init/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
  227. package/dist/templates/init/src/_q-press/components/MarkdownCodePrism.ts +0 -36
  228. package/dist/templates/init/src/_q-press/css/prism-theme.scss +0 -298
  229. package/dist/templates/init/src/markdown/guides/contributing.md +0 -101
  230. package/dist/templates/init/src/markdown/guides/faq.md +0 -115
  231. package/dist/templates/init/src/markdown/guides/release-notes.md +0 -0
  232. package/dist/templates/init/src/markdown/guides/style-guide.md +0 -0
  233. package/dist/templates/init/src/markdown/guides/upgrade-guide.md +0 -92
  234. package/dist/templates/init/src/markdown/other/release-notes.md +0 -8
  235. package/dist/templates/init/src/q-press.globals.d.ts +0 -36
  236. package/dist/templates/update/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
  237. package/dist/templates/update/src/_q-press/components/MarkdownCodePrism.ts +0 -36
  238. package/dist/templates/update/src/_q-press/css/prism-theme.scss +0 -298
  239. package/dist/templates/update/src/q-press.globals.d.ts +0 -36
  240. package/src/templates/init/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
  241. package/src/templates/init/src/_q-press/components/MarkdownCodePrism.ts +0 -36
  242. package/src/templates/init/src/_q-press/css/prism-theme.scss +0 -298
  243. package/src/templates/init/src/markdown/guides/contributing.md +0 -101
  244. package/src/templates/init/src/markdown/guides/faq.md +0 -115
  245. package/src/templates/init/src/markdown/guides/release-notes.md +0 -0
  246. package/src/templates/init/src/markdown/guides/style-guide.md +0 -0
  247. package/src/templates/init/src/markdown/guides/upgrade-guide.md +0 -92
  248. package/src/templates/init/src/markdown/other/release-notes.md +0 -8
  249. package/src/templates/init/src/q-press.globals.d.ts +0 -36
  250. package/src/templates/update/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
  251. package/src/templates/update/src/_q-press/components/MarkdownCodePrism.ts +0 -36
  252. package/src/templates/update/src/_q-press/css/prism-theme.scss +0 -298
  253. package/src/templates/update/src/q-press.globals.d.ts +0 -36
@@ -0,0 +1,634 @@
1
+ .markdown-code {
2
+ margin: 0;
3
+ position: relative;
4
+ overflow: auto;
5
+ border-radius: inherit;
6
+
7
+ &.twoslash {
8
+ overflow: visible;
9
+ }
10
+
11
+ code {
12
+ display: block;
13
+ padding: 16px;
14
+ width: fit-content;
15
+ min-width: 100%;
16
+
17
+ font-size: ($font-size - 2px);
18
+ font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
19
+ line-height: 1.5em;
20
+ tab-size: 2;
21
+ text-align: left;
22
+ white-space: pre;
23
+ word-spacing: normal;
24
+ word-break: normal;
25
+ word-wrap: normal;
26
+ hyphens: none;
27
+
28
+ color: inherit;
29
+ background-color: inherit;
30
+ border-radius: inherit;
31
+ }
32
+
33
+ &--copying {
34
+ .c-lpref,
35
+ .c-line,
36
+ .line.diff.remove {
37
+ display: none;
38
+ }
39
+ }
40
+
41
+ .line {
42
+ position: relative;
43
+ display: inline-block;
44
+ width: 100%;
45
+ margin: 0;
46
+ line-height: inherit;
47
+ text-align: left;
48
+ }
49
+
50
+ &:has(.twoslash-query-persisted) > code {
51
+ padding-bottom: calc(16px + 2.2em);
52
+ }
53
+ }
54
+
55
+ .c-line {
56
+ position: relative;
57
+ display: block;
58
+ width: 100%;
59
+ height: 0;
60
+ &:before {
61
+ content: ' ';
62
+ position: absolute;
63
+ pointer-events: none;
64
+ top: 1px;
65
+ left: -16px;
66
+ right: -16px;
67
+ height: 1.5em;
68
+ }
69
+ }
70
+
71
+ .c-lpref {
72
+ position: sticky;
73
+ pointer-events: none;
74
+ user-select: none;
75
+ left: 8px;
76
+ padding: 0 16px 0 8px;
77
+ margin: -16px 0 -16px -8px;
78
+ &:before {
79
+ border-right: 1px solid;
80
+ content: '';
81
+ position: absolute;
82
+ pointer-events: none;
83
+ top: -1px;
84
+ left: -8px;
85
+ right: 8px;
86
+ bottom: -2px;
87
+ z-index: -1;
88
+ height: 1.5em;
89
+ }
90
+ }
91
+
92
+ .line-add:before,
93
+ .token.inserted-sign:before {
94
+ background: rgba($positive, 0.4);
95
+ }
96
+
97
+ .token.deleted-sign,
98
+ .token.inserted-sign {
99
+ position: relative;
100
+ display: block;
101
+ width: 100%;
102
+
103
+ &:before {
104
+ content: '';
105
+ position: absolute;
106
+ pointer-events: none;
107
+ top: 0;
108
+ left: -16px;
109
+ right: -16px;
110
+ bottom: 0;
111
+ }
112
+ }
113
+
114
+ .token.prefix {
115
+ margin-right: 8px;
116
+ }
117
+
118
+ .twoslash {
119
+ --twoslash-border-color: rgba(128, 128, 128, 0.5);
120
+ --twoslash-underline-color: currentColor;
121
+ --twoslash-highlighted-border: rgba(195, 125, 13, 0.35);
122
+ --twoslash-highlighted-bg: rgba(195, 125, 13, 0.14);
123
+ --twoslash-popup-bg: #f8f8f8;
124
+ --twoslash-popup-color: inherit;
125
+ --twoslash-popup-shadow: rgba(0, 0, 0, 0.16) 0 8px 24px;
126
+ --twoslash-docs-color: #69727d;
127
+ --twoslash-docs-font: $typography-font-family;
128
+ --twoslash-code-font: inherit;
129
+ --twoslash-code-font-size: 1em;
130
+ --twoslash-matched-color: inherit;
131
+ --twoslash-unmatched-color: #7d8b99;
132
+ --twoslash-cursor-color: rgba(128, 128, 128, 0.5);
133
+ --twoslash-error-color: #d45656;
134
+ --twoslash-error-bg: rgba(212, 86, 86, 0.16);
135
+ --twoslash-warn-color: #c37d0d;
136
+ --twoslash-warn-bg: rgba(195, 125, 13, 0.16);
137
+ --twoslash-tag-color: #3772cf;
138
+ --twoslash-tag-bg: rgba(55, 114, 207, 0.16);
139
+ --twoslash-tag-warn-color: var(--twoslash-warn-color);
140
+ --twoslash-tag-warn-bg: var(--twoslash-warn-bg);
141
+ --twoslash-tag-annotate-color: #1ba673;
142
+ --twoslash-tag-annotate-bg: rgba(27, 166, 115, 0.16);
143
+
144
+ .twoslash-hover {
145
+ border-bottom: 1px dotted transparent;
146
+ position: relative;
147
+ transition: border-color 0.3s ease;
148
+ }
149
+
150
+ &:hover .twoslash-hover {
151
+ border-color: var(--twoslash-underline-color);
152
+ }
153
+
154
+ .twoslash-popup-container {
155
+ position: absolute;
156
+ z-index: 10;
157
+ display: inline-flex;
158
+ flex-direction: column;
159
+ min-width: max-content;
160
+ max-width: min(80vw, 560px);
161
+ color: var(--twoslash-popup-color);
162
+ background: var(--twoslash-popup-bg);
163
+ border: 1px solid var(--twoslash-border-color);
164
+ border-radius: 6px;
165
+ box-shadow: var(--twoslash-popup-shadow);
166
+ opacity: 0;
167
+ pointer-events: none;
168
+ text-align: left;
169
+ transform: translateY(1.1em);
170
+ transition: opacity 0.3s ease;
171
+ user-select: none;
172
+ }
173
+
174
+ .twoslash-query-persisted .twoslash-popup-container {
175
+ z-index: 9;
176
+ transform: translateY(1.5em);
177
+ }
178
+
179
+ .twoslash-query-persisted {
180
+ display: inline-block;
181
+ }
182
+
183
+ .twoslash-hover:hover .twoslash-popup-container,
184
+ .twoslash-error-hover:hover .twoslash-popup-container,
185
+ .twoslash-query-persisted .twoslash-popup-container,
186
+ .twoslash-query-line .twoslash-popup-container {
187
+ opacity: 1;
188
+ pointer-events: auto;
189
+ }
190
+
191
+ .twoslash-popup-container:hover {
192
+ user-select: auto;
193
+ }
194
+
195
+ .twoslash-popup-arrow {
196
+ position: absolute;
197
+ top: -4px;
198
+ left: 1em;
199
+ width: 6px;
200
+ height: 6px;
201
+ pointer-events: none;
202
+ background: var(--twoslash-popup-bg);
203
+ border-top: 1px solid var(--twoslash-border-color);
204
+ border-right: 1px solid var(--twoslash-border-color);
205
+ transform: rotate(-45deg);
206
+ }
207
+
208
+ .twoslash-popup-code,
209
+ .twoslash-popup-error,
210
+ .twoslash-popup-docs {
211
+ padding: 6px 8px !important;
212
+ }
213
+
214
+ .twoslash-popup-code {
215
+ font-family: var(--twoslash-code-font);
216
+ font-size: var(--twoslash-code-font-size);
217
+ }
218
+
219
+ .twoslash-popup-docs,
220
+ .twoslash-popup-error,
221
+ .twoslash-popup-docs-tags {
222
+ font-family: var(--twoslash-docs-font);
223
+ font-size: 0.8em;
224
+ }
225
+
226
+ .twoslash-popup-docs {
227
+ color: var(--twoslash-docs-color);
228
+ border-top: 1px solid var(--twoslash-border-color);
229
+ }
230
+
231
+ .twoslash-popup-error {
232
+ color: var(--twoslash-error-color);
233
+ background-color: var(--twoslash-error-bg);
234
+ }
235
+
236
+ .twoslash-popup-docs-tags {
237
+ display: flex;
238
+ flex-direction: column;
239
+ }
240
+
241
+ .twoslash-popup-docs-tags,
242
+ .twoslash-popup-docs-tag-name {
243
+ margin-right: 0.5em;
244
+ }
245
+
246
+ .twoslash-popup-docs-tag-name {
247
+ font-family: var(--twoslash-code-font);
248
+ }
249
+
250
+ .twoslash-query-line .twoslash-popup-container {
251
+ position: relative;
252
+ margin-bottom: 1.4em;
253
+ transform: translateY(0.6em);
254
+ }
255
+
256
+ .twoslash-error-line,
257
+ .twoslash-tag-line {
258
+ position: relative;
259
+ min-width: 100%;
260
+ width: max-content;
261
+ margin: 0.2em 0;
262
+ border-left: 3px solid;
263
+ }
264
+
265
+ .twoslash-error-line {
266
+ color: var(--twoslash-error-color);
267
+ background-color: var(--twoslash-error-bg);
268
+ border-left-color: var(--twoslash-error-color);
269
+ padding: 6px 12px;
270
+ }
271
+
272
+ .twoslash-error-line.twoslash-error-level-warning {
273
+ color: var(--twoslash-warn-color);
274
+ background-color: var(--twoslash-warn-bg);
275
+ border-left-color: var(--twoslash-warn-color);
276
+ }
277
+
278
+ .twoslash-error {
279
+ padding-bottom: 2px;
280
+ text-decoration: underline wavy var(--twoslash-error-color);
281
+ text-underline-offset: 3px;
282
+ }
283
+
284
+ .twoslash-error.twoslash-error-level-warning {
285
+ text-decoration-color: var(--twoslash-warn-color);
286
+ }
287
+
288
+ .twoslash-completion-cursor {
289
+ position: relative;
290
+ }
291
+
292
+ .twoslash-completion-cursor .twoslash-completion-list {
293
+ position: absolute;
294
+ top: 0;
295
+ left: 0;
296
+ z-index: 8;
297
+ display: inline-block;
298
+ margin: 3px 0 0 -1px;
299
+ background: var(--twoslash-popup-bg);
300
+ border: 1px solid var(--twoslash-border-color);
301
+ box-shadow: var(--twoslash-popup-shadow);
302
+ transform: translate(0, 1.2em);
303
+ user-select: none;
304
+ }
305
+
306
+ .twoslash-completion-list {
307
+ display: flex;
308
+ flex-direction: column;
309
+ gap: 4px;
310
+ width: 240px;
311
+ padding: 4px;
312
+ font-size: 0.8rem;
313
+
314
+ &:hover {
315
+ user-select: auto;
316
+ }
317
+
318
+ &:before {
319
+ content: ' ';
320
+ position: absolute;
321
+ top: -1.6em;
322
+ left: -1px;
323
+ width: 2px;
324
+ height: 1.4em;
325
+ background-color: var(--twoslash-cursor-color);
326
+ }
327
+
328
+ li {
329
+ display: flex;
330
+ gap: 0.25em;
331
+ align-items: center;
332
+ overflow: hidden;
333
+ line-height: 1em;
334
+ }
335
+
336
+ .twoslash-completions-unmatched {
337
+ color: var(--twoslash-unmatched-color);
338
+ }
339
+
340
+ .twoslash-completions-matched {
341
+ color: var(--twoslash-matched-color);
342
+ }
343
+
344
+ .deprecated {
345
+ text-decoration: line-through;
346
+ opacity: 0.5;
347
+ }
348
+
349
+ .twoslash-completions-icon {
350
+ flex: none;
351
+ width: 1em;
352
+ color: var(--twoslash-unmatched-color);
353
+ }
354
+ }
355
+
356
+ .twoslash-highlighted {
357
+ padding: 1px 2px;
358
+ margin: -1px -3px;
359
+ background-color: var(--twoslash-highlighted-bg);
360
+ border: 1px solid var(--twoslash-highlighted-border);
361
+ border-radius: 4px;
362
+ }
363
+
364
+ .twoslash-tag-line {
365
+ display: flex;
366
+ gap: 0.3em;
367
+ align-items: center;
368
+ color: var(--twoslash-tag-color);
369
+ background-color: var(--twoslash-tag-bg);
370
+ border-left-color: var(--twoslash-tag-color);
371
+ padding: 6px 10px;
372
+
373
+ .twoslash-tag-icon {
374
+ width: 1.1em;
375
+ color: inherit;
376
+ }
377
+ }
378
+
379
+ .twoslash-tag-line.twoslash-tag-error-line {
380
+ color: var(--twoslash-error-color);
381
+ background-color: var(--twoslash-error-bg);
382
+ border-left-color: var(--twoslash-error-color);
383
+ }
384
+
385
+ .twoslash-tag-line.twoslash-tag-warn-line {
386
+ color: var(--twoslash-tag-warn-color);
387
+ background-color: var(--twoslash-tag-warn-bg);
388
+ border-left-color: var(--twoslash-tag-warn-color);
389
+ }
390
+
391
+ .twoslash-tag-line.twoslash-tag-annotate-line {
392
+ color: var(--twoslash-tag-annotate-color);
393
+ background-color: var(--twoslash-tag-annotate-bg);
394
+ border-left-color: var(--twoslash-tag-annotate-color);
395
+ }
396
+ }
397
+
398
+ @media (prefers-reduced-motion: reduce) {
399
+ .twoslash * {
400
+ transition: none !important;
401
+ }
402
+ }
403
+
404
+ body.body--light {
405
+ .shiki,
406
+ .shiki span {
407
+ color: var(--shiki-light);
408
+ }
409
+
410
+ .markdown-code {
411
+ color: $brand-light-codeblock-text;
412
+ background-color: $brand-light-codeblock-bg;
413
+ }
414
+
415
+ .twoslash {
416
+ --twoslash-popup-bg: #ffffff;
417
+ --twoslash-popup-color: #24292e;
418
+ --twoslash-border-color: #d0d7de;
419
+ --twoslash-docs-color: #57606a;
420
+ --twoslash-unmatched-color: #6e7781;
421
+ }
422
+
423
+ .line-highlight:before {
424
+ background: rgba($grey, 0.2);
425
+ }
426
+ .line-rem:before,
427
+ .token.deleted-sign:before {
428
+ background: rgba($negative, 0.2);
429
+ }
430
+
431
+ .c-lpref {
432
+ color: $brand-light-codeblock-text;
433
+ &:before {
434
+ border-right-color: $separator-color;
435
+ background: $brand-light-codeblock-bg;
436
+ }
437
+ }
438
+
439
+ .token.comment,
440
+ .token.block-comment,
441
+ .token.prolog,
442
+ .token.doctype,
443
+ .token.cdata {
444
+ color: #7d8b99;
445
+ }
446
+
447
+ .token {
448
+ &.punctuation {
449
+ color: #5f6364;
450
+ }
451
+ &.important {
452
+ font-weight: 400;
453
+ }
454
+ &.bold {
455
+ font-weight: 700;
456
+ }
457
+ &.italic {
458
+ font-style: italic;
459
+ }
460
+ &.entity {
461
+ cursor: help;
462
+ }
463
+ }
464
+
465
+ .token.property,
466
+ .token.tag,
467
+ .token.boolean,
468
+ .token.number,
469
+ .token.function-name,
470
+ .token.constant,
471
+ .token.symbol,
472
+ .token.deleted {
473
+ color: #c92c2c;
474
+ }
475
+
476
+ .token.selector,
477
+ .token.attr-name,
478
+ .token.string,
479
+ .token.char,
480
+ .token.function,
481
+ .token.builtin,
482
+ .token.inserted {
483
+ color: #2f9c0a;
484
+ }
485
+
486
+ .token.operator,
487
+ .token.entity,
488
+ .token.url,
489
+ .token.variable {
490
+ color: #da5a20;
491
+ }
492
+
493
+ .token.atrule,
494
+ .token.attr-value,
495
+ .token.keyword,
496
+ .token.class-name {
497
+ color: #1990b8;
498
+ }
499
+
500
+ .token.regex,
501
+ .token.important {
502
+ color: #e90;
503
+ }
504
+
505
+ .language-css .token.string,
506
+ .style .token.string {
507
+ color: #a67f59;
508
+ background: rgba(255, 255, 255, 0.5);
509
+ }
510
+
511
+ .namespace {
512
+ opacity: 0.7;
513
+ }
514
+
515
+ .token.tab:not(:empty):before,
516
+ .token.cr:before,
517
+ .token.lf:before {
518
+ color: #e0d7d1;
519
+ }
520
+ }
521
+
522
+ body.body--dark {
523
+ .shiki,
524
+ .shiki span {
525
+ color: var(--shiki-dark);
526
+ }
527
+
528
+ .markdown-code {
529
+ color: $brand-dark-codeblock-text;
530
+ background-color: $brand-dark-codeblock-bg;
531
+ }
532
+
533
+ .twoslash {
534
+ --twoslash-popup-bg: #1f2937;
535
+ --twoslash-popup-color: #e6edf3;
536
+ --twoslash-border-color: #4b5563;
537
+ --twoslash-docs-color: #9ca3af;
538
+ --twoslash-unmatched-color: #9ca3af;
539
+ --twoslash-error-bg: rgba(248, 113, 113, 0.18);
540
+ --twoslash-error-color: #f87171;
541
+ --twoslash-warn-bg: rgba(251, 191, 36, 0.16);
542
+ --twoslash-warn-color: #fbbf24;
543
+ --twoslash-tag-bg: rgba(96, 165, 250, 0.18);
544
+ --twoslash-tag-color: #93c5fd;
545
+ --twoslash-tag-annotate-bg: rgba(52, 211, 153, 0.16);
546
+ --twoslash-tag-annotate-color: #6ee7b7;
547
+ }
548
+
549
+ .line-highlight:before {
550
+ background: rgba($grey-3, 0.2);
551
+ }
552
+ .line-rem:before,
553
+ .token.deleted-sign:before {
554
+ background: rgba($red, 0.3);
555
+ }
556
+
557
+ .c-lpref {
558
+ color: $brand-light-codeblock-text;
559
+ &:before {
560
+ border-right-color: $separator-dark-color;
561
+ background: $brand-dark-codeblock-bg;
562
+ }
563
+ }
564
+
565
+ .token.comment,
566
+ .token.prolog,
567
+ .token.doctype,
568
+ .token.cdata {
569
+ color: #d4d0ab;
570
+ }
571
+
572
+ .token.punctuation {
573
+ color: #fefefe;
574
+ }
575
+
576
+ .token.property,
577
+ .token.tag,
578
+ .token.constant,
579
+ .token.symbol,
580
+ .token.deleted {
581
+ color: #ffa07a;
582
+ }
583
+
584
+ .token.boolean,
585
+ .token.number {
586
+ color: #00e0e0;
587
+ }
588
+
589
+ .token.selector,
590
+ .token.attr-name,
591
+ .token.string,
592
+ .token.char,
593
+ .token.builtin,
594
+ .token.inserted {
595
+ color: #abe338;
596
+ }
597
+
598
+ .token.operator,
599
+ .token.entity,
600
+ .token.url,
601
+ .language-css .token.string,
602
+ .style .token.string,
603
+ .token.variable {
604
+ color: #00e0e0;
605
+ }
606
+
607
+ .token.atrule,
608
+ .token.attr-value,
609
+ .token.function {
610
+ color: #ffd700;
611
+ }
612
+
613
+ .token.keyword {
614
+ color: #00e0e0;
615
+ }
616
+
617
+ .token.regex,
618
+ .token.important {
619
+ color: #ffd700;
620
+ }
621
+
622
+ .token.important,
623
+ .token.bold {
624
+ font-weight: 700;
625
+ }
626
+
627
+ .token.italic {
628
+ font-style: italic;
629
+ }
630
+
631
+ .token.entity {
632
+ cursor: help;
633
+ }
634
+ }
@@ -33,7 +33,7 @@ $light-pill: $brand-light;
33
33
  $light-text: $brand-light-text;
34
34
  $light-bg: $brand-light-bg;
35
35
 
36
- $dark-pill: scale-color($brand-primary, $lightness: -80%);
36
+ $dark-pill: color.scale($brand-dark-bg, $lightness: 12%);
37
37
  $dark-text: $brand-dark-text;
38
38
  $dark-bg: $brand-dark-bg;
39
39
 
@@ -0,0 +1,69 @@
1
+ @use 'sass:color';
2
+
3
+ // Evergreen Theme Variables
4
+ $primary: #0f766e;
5
+ $secondary: #3f8f68;
6
+ $accent: #f59e0b;
7
+
8
+ $positive: #2ecc71;
9
+ $negative: #ff1732;
10
+ $info: #10a0ff;
11
+ $warning: #ffd52d;
12
+
13
+ $brand-primary: #14b8a6;
14
+ $brand-secondary: #3f8f68;
15
+ $brand-accent: #f59e0b;
16
+ $brand-dark: #173b2f;
17
+ $brand-light: #e6f6ee;
18
+ $brand-medium: #6b8f7a;
19
+ $brand-light-text: #173b2f;
20
+ $brand-light-bg: #f3faf6;
21
+ $brand-dark-bg: #071914;
22
+ $brand-dark-text: #d7f3e6;
23
+ $brand-light-codeblock-bg: #e6f6ee;
24
+ $brand-light-codeblock-text: #0f5132;
25
+ $brand-dark-codeblock-bg: #0e2a22;
26
+ $brand-dark-codeblock-text: #b8f5d4;
27
+
28
+ $header-btn-color--light: #0f766e;
29
+ $header-btn-hover-color--light: #b45309;
30
+ $header-btn-color--dark: #5eead4;
31
+ $header-btn-hover-color--dark: #fbbf24;
32
+
33
+ $light-pill: $brand-light;
34
+ $light-text: $brand-light-text;
35
+ $light-bg: $brand-light-bg;
36
+
37
+ $dark-pill: color.scale($brand-dark-bg, $lightness: 12%);
38
+ $dark-text: $brand-dark-text;
39
+ $dark-bg: $brand-dark-bg;
40
+
41
+ $separator-color: $brand-accent;
42
+ $separator-color-dark: $brand-accent;
43
+
44
+ $font-size: 16px;
45
+ $font-size-brand: 16px;
46
+ $font-weight-brand: 500;
47
+ $font-weight-technical: 400;
48
+ $letter-spacing-brand: 0.7px;
49
+
50
+ $font-family-technical:
51
+ 'Roboto',
52
+ -apple-system,
53
+ Avenir,
54
+ BlinkMacSystemFont,
55
+ 'Segoe UI',
56
+ Helvetica,
57
+ Arial,
58
+ sans-serif;
59
+ $font-family-examples: $font-family-technical;
60
+ $font-family-brand: 'Montserrat', $font-family-technical;
61
+
62
+ $shadow--large: 0 24px 24px 0 rgba($brand-primary, 0.24);
63
+ $shadow--medium: 0 6px 6px 0 rgba($brand-primary, 0.38);
64
+ $shadow--small: 0 6px 6px 0 rgba($brand-primary, 0.28);
65
+
66
+ // also update QHeader :height-hint
67
+ $header-height: 55px;
68
+ $header-transition: 0.6s cubic-bezier(0.25, 0.8, 0.5, 1);
69
+ $header-quick-transition: 0.28s ease-in-out;
@@ -38,7 +38,7 @@ $light-pill: $brand-light;
38
38
  $light-text: $brand-light-text;
39
39
  $light-bg: $brand-light-bg;
40
40
 
41
- $dark-pill: scale-color($brand-primary, $lightness: -80%);
41
+ $dark-pill: color.scale($brand-dark-bg, $lightness: 12%);
42
42
  $dark-text: $brand-dark-text;
43
43
  $dark-bg: $brand-dark-bg;
44
44
 
@@ -34,7 +34,7 @@ $light-pill: $brand-light;
34
34
  $light-text: $brand-light-text;
35
35
  $light-bg: $brand-light-bg;
36
36
 
37
- $dark-pill: scale-color($brand-primary, $lightness: -60%);
37
+ $dark-pill: color.scale($brand-dark-bg, $lightness: 12%);
38
38
  $dark-text: $brand-dark-text;
39
39
  $dark-bg: $brand-dark-bg;
40
40