@md-plugins/quasar-app-extension-q-press 0.1.0-alpha.10

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 (200) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +230 -0
  3. package/old/prompts.js +44 -0
  4. package/old/uninstall.js +9 -0
  5. package/package.json +60 -0
  6. package/scripts/build.js +33 -0
  7. package/src/index.js +63 -0
  8. package/src/install.js +49 -0
  9. package/src/templates/.gitkeep +0 -0
  10. package/src/templates/init/src/_q-press/.gitkeep +0 -0
  11. package/src/templates/init/src/_q-press/api/components/DarkModeToggle.json +37 -0
  12. package/src/templates/init/src/_q-press/api/components/MarkdownApi.json +67 -0
  13. package/src/templates/init/src/_q-press/api/components/MarkdownApiEntry.json +76 -0
  14. package/src/templates/init/src/_q-press/api/components/MarkdownCardLink.json +28 -0
  15. package/src/templates/init/src/_q-press/api/components/MarkdownCardTitle.json +48 -0
  16. package/src/templates/init/src/_q-press/api/components/MarkdownCode.json +37 -0
  17. package/src/templates/init/src/_q-press/api/components/MarkdownCodePrism.json +29 -0
  18. package/src/templates/init/src/_q-press/api/components/MarkdownCodepen.json +21 -0
  19. package/src/templates/init/src/_q-press/api/components/MarkdownCopyButton.json +36 -0
  20. package/src/templates/init/src/_q-press/api/components/MarkdownDrawerSidebar.json +17 -0
  21. package/src/templates/init/src/_q-press/api/components/MarkdownDrawerToc.json +17 -0
  22. package/src/templates/init/src/_q-press/api/components/MarkdownExample.json +22 -0
  23. package/src/templates/init/src/_q-press/api/components/MarkdownHeader.json +28 -0
  24. package/src/templates/init/src/_q-press/api/components/MarkdownHeaderIconLinks.json +16 -0
  25. package/src/templates/init/src/_q-press/api/components/MarkdownHeaderMenu.json +77 -0
  26. package/src/templates/init/src/_q-press/api/components/MarkdownHeaderTextLinks.json +33 -0
  27. package/src/templates/init/src/_q-press/api/components/MarkdownInstallation.json +33 -0
  28. package/src/templates/init/src/_q-press/api/components/MarkdownLayout.json +52 -0
  29. package/src/templates/init/src/_q-press/api/components/MarkdownLink.json +23 -0
  30. package/src/templates/init/src/_q-press/api/components/MarkdownPage.json +71 -0
  31. package/src/templates/init/src/_q-press/api/components/MarkdownPageFooter.json +21 -0
  32. package/src/templates/init/src/_q-press/api/components/MarkdownPageSidebar.json +56 -0
  33. package/src/templates/init/src/_q-press/api/components/MarkdownPageToc.json +17 -0
  34. package/src/templates/init/src/_q-press/api/components/MarkdownPrerender.json +25 -0
  35. package/src/templates/init/src/_q-press/api/components/MarkdownTree.json +27 -0
  36. package/src/templates/init/src/_q-press/api/composables/dark.json +29 -0
  37. package/src/templates/init/src/_q-press/api/composables/scroll.json +34 -0
  38. package/src/templates/init/src/_q-press/assets/get-meta.ts +29 -0
  39. package/src/templates/init/src/_q-press/components/DarkModeToggle.vue +105 -0
  40. package/src/templates/init/src/_q-press/components/MarkdownApi.vue +588 -0
  41. package/src/templates/init/src/_q-press/components/MarkdownApiEntry.ts +594 -0
  42. package/src/templates/init/src/_q-press/components/MarkdownCardLink.vue +25 -0
  43. package/src/templates/init/src/_q-press/components/MarkdownCardTitle.vue +21 -0
  44. package/src/templates/init/src/_q-press/components/MarkdownCode.vue +25 -0
  45. package/src/templates/init/src/_q-press/components/MarkdownCodePrism.ts +36 -0
  46. package/src/templates/init/src/_q-press/components/MarkdownCodepen.vue +183 -0
  47. package/src/templates/init/src/_q-press/components/MarkdownCopyButton.vue +104 -0
  48. package/src/templates/init/src/_q-press/components/MarkdownExample.vue +221 -0
  49. package/src/templates/init/src/_q-press/components/MarkdownInstallation.vue +166 -0
  50. package/src/templates/init/src/_q-press/components/MarkdownLink.vue +38 -0
  51. package/src/templates/init/src/_q-press/components/MarkdownPrerender.ts +82 -0
  52. package/src/templates/init/src/_q-press/components/MarkdownTree.vue +105 -0
  53. package/src/templates/init/src/_q-press/components/markdown-utils.ts +105 -0
  54. package/src/templates/init/src/_q-press/composables/dark.ts +39 -0
  55. package/src/templates/init/src/_q-press/composables/scroll.ts +115 -0
  56. package/src/templates/init/src/_q-press/css/app.scss +662 -0
  57. package/src/templates/init/src/_q-press/css/fonts.scss +100 -0
  58. package/src/templates/init/src/_q-press/css/prism-theme.scss +298 -0
  59. package/src/templates/init/src/_q-press/css/themes/default.scss +68 -0
  60. package/src/templates/init/src/_q-press/css/themes/newspaper.scss +69 -0
  61. package/src/templates/init/src/_q-press/css/themes/sunrise.scss +67 -0
  62. package/src/templates/init/src/_q-press/css/themes/tawny.scss +69 -0
  63. package/src/templates/init/src/_q-press/layouts/MarkdownDrawerSidebar.vue +32 -0
  64. package/src/templates/init/src/_q-press/layouts/MarkdownDrawerToc.vue +37 -0
  65. package/src/templates/init/src/_q-press/layouts/MarkdownHeader.vue +412 -0
  66. package/src/templates/init/src/_q-press/layouts/MarkdownHeaderIconLinks.vue +31 -0
  67. package/src/templates/init/src/_q-press/layouts/MarkdownHeaderMenu.ts +93 -0
  68. package/src/templates/init/src/_q-press/layouts/MarkdownHeaderTextLinks.vue +37 -0
  69. package/src/templates/init/src/_q-press/layouts/MarkdownLayout.vue +239 -0
  70. package/src/templates/init/src/_q-press/layouts/MarkdownPage.vue +307 -0
  71. package/src/templates/init/src/_q-press/layouts/MarkdownPageFooter.vue +187 -0
  72. package/src/templates/init/src/_q-press/layouts/MarkdownPageSidebar.scss +54 -0
  73. package/src/templates/init/src/_q-press/layouts/MarkdownPageSidebar.ts +218 -0
  74. package/src/templates/init/src/_q-press/layouts/MarkdownPageToc.vue +23 -0
  75. package/src/templates/init/src/_q-press/layouts/MarkdownSearch.vue +449 -0
  76. package/src/templates/init/src/_q-press/stores/markdown.ts +101 -0
  77. package/src/templates/init/src/components/LandingPage/LandingPage.vue +341 -0
  78. package/src/templates/init/src/components/Releases/PackageReleases.vue +164 -0
  79. package/src/templates/init/src/components/Releases/PublicReleases.vue +149 -0
  80. package/src/templates/init/src/components/Releases/ReleasesAvailable.vue +74 -0
  81. package/src/templates/init/src/examples/QAvatar/BasicExample.vue +11 -0
  82. package/src/templates/init/src/markdown/__elements.md +548 -0
  83. package/src/templates/init/src/markdown/__elements2.md +347 -0
  84. package/src/templates/init/src/markdown/faq/best-practices.md +0 -0
  85. package/src/templates/init/src/markdown/faq/general.md +0 -0
  86. package/src/templates/init/src/markdown/faq/troubleshooting.md +0 -0
  87. package/src/templates/init/src/markdown/getting-started/introduction.md +67 -0
  88. package/src/templates/init/src/markdown/guides/contributing.md +101 -0
  89. package/src/templates/init/src/markdown/guides/faq.md +115 -0
  90. package/src/templates/init/src/markdown/guides/release-notes.md +0 -0
  91. package/src/templates/init/src/markdown/guides/style-guide.md +0 -0
  92. package/src/templates/init/src/markdown/landing-page.md +11 -0
  93. package/src/templates/init/src/markdown/listing.ts +3 -0
  94. package/src/templates/init/src/markdown/md-plugins/blockquote/advanced.md +83 -0
  95. package/src/templates/init/src/markdown/md-plugins/blockquote/overview.md +183 -0
  96. package/src/templates/init/src/markdown/md-plugins/codeblocks/advanced.md +210 -0
  97. package/src/templates/init/src/markdown/md-plugins/codeblocks/overview.md +616 -0
  98. package/src/templates/init/src/markdown/md-plugins/containers/advanced.md +301 -0
  99. package/src/templates/init/src/markdown/md-plugins/containers/overview.md +206 -0
  100. package/src/templates/init/src/markdown/md-plugins/frontmatter/advanced.md +164 -0
  101. package/src/templates/init/src/markdown/md-plugins/frontmatter/overview.md +131 -0
  102. package/src/templates/init/src/markdown/md-plugins/headers/advanced.md +236 -0
  103. package/src/templates/init/src/markdown/md-plugins/headers/overview.md +134 -0
  104. package/src/templates/init/src/markdown/md-plugins/image/advanced.md +114 -0
  105. package/src/templates/init/src/markdown/md-plugins/image/overview.md +124 -0
  106. package/src/templates/init/src/markdown/md-plugins/imports/advanced.md +105 -0
  107. package/src/templates/init/src/markdown/md-plugins/imports/overview.md +80 -0
  108. package/src/templates/init/src/markdown/md-plugins/inline-code/advanced.md +133 -0
  109. package/src/templates/init/src/markdown/md-plugins/inline-code/overview.md +101 -0
  110. package/src/templates/init/src/markdown/md-plugins/link/advanced.md +157 -0
  111. package/src/templates/init/src/markdown/md-plugins/link/overview.md +126 -0
  112. package/src/templates/init/src/markdown/md-plugins/shared/overview.md +175 -0
  113. package/src/templates/init/src/markdown/md-plugins/table/advanced.md +190 -0
  114. package/src/templates/init/src/markdown/md-plugins/table/overview.md +186 -0
  115. package/src/templates/init/src/markdown/md-plugins/title/advanced.md +88 -0
  116. package/src/templates/init/src/markdown/md-plugins/title/overview.md +99 -0
  117. package/src/templates/init/src/markdown/other/release-notes.md +12 -0
  118. package/src/templates/init/src/markdown/privacy-policy.md +12 -0
  119. package/src/templates/init/src/markdown/quasar-app-extensions/qpress/advanced.md +101 -0
  120. package/src/templates/init/src/markdown/quasar-app-extensions/qpress/components.md +69 -0
  121. package/src/templates/init/src/markdown/quasar-app-extensions/qpress/overview.md +254 -0
  122. package/src/templates/init/src/markdown/quasar-app-extensions/qpress/themes.md +4 -0
  123. package/src/templates/init/src/markdown/quasar-app-extensions/vitemdpluginappext/advanced.md +4 -0
  124. package/src/templates/init/src/markdown/quasar-app-extensions/vitemdpluginappext/overview.md +103 -0
  125. package/src/templates/init/src/markdown/vite-plugins/index.md +6 -0
  126. package/src/templates/init/src/markdown/vite-plugins/viteexamplesplugin/advanced.md +138 -0
  127. package/src/templates/init/src/markdown/vite-plugins/viteexamplesplugin/overview.md +88 -0
  128. package/src/templates/init/src/markdown/vite-plugins/vitemdplugin/advanced.md +226 -0
  129. package/src/templates/init/src/markdown/vite-plugins/vitemdplugin/index.md +6 -0
  130. package/src/templates/init/src/markdown/vite-plugins/vitemdplugin/overview.md +166 -0
  131. package/src/templates/init/src/q-press.globals.d.ts +36 -0
  132. package/src/templates/init/src/siteConfig/index.ts +440 -0
  133. package/src/templates/update/src/_q-press/.gitkeep +0 -0
  134. package/src/templates/update/src/_q-press/api/components/DarkModeToggle.json +37 -0
  135. package/src/templates/update/src/_q-press/api/components/MarkdownApi.json +67 -0
  136. package/src/templates/update/src/_q-press/api/components/MarkdownApiEntry.json +76 -0
  137. package/src/templates/update/src/_q-press/api/components/MarkdownCardLink.json +28 -0
  138. package/src/templates/update/src/_q-press/api/components/MarkdownCardTitle.json +48 -0
  139. package/src/templates/update/src/_q-press/api/components/MarkdownCode.json +37 -0
  140. package/src/templates/update/src/_q-press/api/components/MarkdownCodePrism.json +29 -0
  141. package/src/templates/update/src/_q-press/api/components/MarkdownCodepen.json +21 -0
  142. package/src/templates/update/src/_q-press/api/components/MarkdownCopyButton.json +36 -0
  143. package/src/templates/update/src/_q-press/api/components/MarkdownDrawerSidebar.json +17 -0
  144. package/src/templates/update/src/_q-press/api/components/MarkdownDrawerToc.json +17 -0
  145. package/src/templates/update/src/_q-press/api/components/MarkdownExample.json +22 -0
  146. package/src/templates/update/src/_q-press/api/components/MarkdownHeader.json +28 -0
  147. package/src/templates/update/src/_q-press/api/components/MarkdownHeaderIconLinks.json +16 -0
  148. package/src/templates/update/src/_q-press/api/components/MarkdownHeaderMenu.json +77 -0
  149. package/src/templates/update/src/_q-press/api/components/MarkdownHeaderTextLinks.json +33 -0
  150. package/src/templates/update/src/_q-press/api/components/MarkdownInstallation.json +33 -0
  151. package/src/templates/update/src/_q-press/api/components/MarkdownLayout.json +52 -0
  152. package/src/templates/update/src/_q-press/api/components/MarkdownLink.json +23 -0
  153. package/src/templates/update/src/_q-press/api/components/MarkdownPage.json +71 -0
  154. package/src/templates/update/src/_q-press/api/components/MarkdownPageFooter.json +21 -0
  155. package/src/templates/update/src/_q-press/api/components/MarkdownPageSidebar.json +56 -0
  156. package/src/templates/update/src/_q-press/api/components/MarkdownPageToc.json +17 -0
  157. package/src/templates/update/src/_q-press/api/components/MarkdownPrerender.json +25 -0
  158. package/src/templates/update/src/_q-press/api/components/MarkdownTree.json +27 -0
  159. package/src/templates/update/src/_q-press/api/composables/dark.json +29 -0
  160. package/src/templates/update/src/_q-press/api/composables/scroll.json +34 -0
  161. package/src/templates/update/src/_q-press/assets/get-meta.ts +29 -0
  162. package/src/templates/update/src/_q-press/components/DarkModeToggle.vue +105 -0
  163. package/src/templates/update/src/_q-press/components/MarkdownApi.vue +588 -0
  164. package/src/templates/update/src/_q-press/components/MarkdownApiEntry.ts +594 -0
  165. package/src/templates/update/src/_q-press/components/MarkdownCardLink.vue +25 -0
  166. package/src/templates/update/src/_q-press/components/MarkdownCardTitle.vue +21 -0
  167. package/src/templates/update/src/_q-press/components/MarkdownCode.vue +25 -0
  168. package/src/templates/update/src/_q-press/components/MarkdownCodePrism.ts +36 -0
  169. package/src/templates/update/src/_q-press/components/MarkdownCodepen.vue +183 -0
  170. package/src/templates/update/src/_q-press/components/MarkdownCopyButton.vue +104 -0
  171. package/src/templates/update/src/_q-press/components/MarkdownExample.vue +221 -0
  172. package/src/templates/update/src/_q-press/components/MarkdownInstallation.vue +166 -0
  173. package/src/templates/update/src/_q-press/components/MarkdownLink.vue +38 -0
  174. package/src/templates/update/src/_q-press/components/MarkdownPrerender.ts +82 -0
  175. package/src/templates/update/src/_q-press/components/MarkdownTree.vue +105 -0
  176. package/src/templates/update/src/_q-press/components/markdown-utils.ts +105 -0
  177. package/src/templates/update/src/_q-press/composables/dark.ts +39 -0
  178. package/src/templates/update/src/_q-press/composables/scroll.ts +115 -0
  179. package/src/templates/update/src/_q-press/css/app.scss +662 -0
  180. package/src/templates/update/src/_q-press/css/fonts.scss +100 -0
  181. package/src/templates/update/src/_q-press/css/prism-theme.scss +298 -0
  182. package/src/templates/update/src/_q-press/css/themes/default.scss +68 -0
  183. package/src/templates/update/src/_q-press/css/themes/newspaper.scss +69 -0
  184. package/src/templates/update/src/_q-press/css/themes/sunrise.scss +67 -0
  185. package/src/templates/update/src/_q-press/css/themes/tawny.scss +69 -0
  186. package/src/templates/update/src/_q-press/layouts/MarkdownDrawerSidebar.vue +32 -0
  187. package/src/templates/update/src/_q-press/layouts/MarkdownDrawerToc.vue +37 -0
  188. package/src/templates/update/src/_q-press/layouts/MarkdownHeader.vue +412 -0
  189. package/src/templates/update/src/_q-press/layouts/MarkdownHeaderIconLinks.vue +31 -0
  190. package/src/templates/update/src/_q-press/layouts/MarkdownHeaderMenu.ts +93 -0
  191. package/src/templates/update/src/_q-press/layouts/MarkdownHeaderTextLinks.vue +37 -0
  192. package/src/templates/update/src/_q-press/layouts/MarkdownLayout.vue +239 -0
  193. package/src/templates/update/src/_q-press/layouts/MarkdownPage.vue +307 -0
  194. package/src/templates/update/src/_q-press/layouts/MarkdownPageFooter.vue +187 -0
  195. package/src/templates/update/src/_q-press/layouts/MarkdownPageSidebar.scss +54 -0
  196. package/src/templates/update/src/_q-press/layouts/MarkdownPageSidebar.ts +218 -0
  197. package/src/templates/update/src/_q-press/layouts/MarkdownPageToc.vue +23 -0
  198. package/src/templates/update/src/_q-press/layouts/MarkdownSearch.vue +449 -0
  199. package/src/templates/update/src/_q-press/stores/markdown.ts +101 -0
  200. package/src/templates/update/src/q-press.globals.d.ts +36 -0
@@ -0,0 +1,100 @@
1
+ @font-face {
2
+ font-family: 'Material Icons';
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ src: url(https://cdn.quasar.dev/fonts/materialicons/v139/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2)
6
+ format('woff2');
7
+ }
8
+
9
+ @font-face {
10
+ font-family: 'Roboto';
11
+ font-style: normal;
12
+ font-weight: 100;
13
+ src: url(https://cdn.quasar.dev/fonts/roboto/KFOkCnqEu92Fr1MmgVxIIzQ.woff) format('woff');
14
+ }
15
+
16
+ @font-face {
17
+ font-family: 'Roboto';
18
+ font-style: normal;
19
+ font-weight: 300;
20
+ src: url(https://cdn.quasar.dev/fonts/roboto/KFOlCnqEu92Fr1MmSU5fBBc-.woff) format('woff');
21
+ }
22
+
23
+ @font-face {
24
+ font-family: 'Roboto';
25
+ font-style: normal;
26
+ font-weight: 400;
27
+ src: url(https://cdn.quasar.dev/fonts/roboto/KFOmCnqEu92Fr1Mu4mxM.woff) format('woff');
28
+ }
29
+
30
+ @font-face {
31
+ font-family: 'Roboto';
32
+ font-style: normal;
33
+ font-weight: 500;
34
+ src: url(https://cdn.quasar.dev/fonts/roboto/KFOlCnqEu92Fr1MmEU9fBBc-.woff) format('woff');
35
+ }
36
+
37
+ @font-face {
38
+ font-family: 'Roboto';
39
+ font-style: normal;
40
+ font-weight: 700;
41
+ src: url(https://cdn.quasar.dev/fonts/roboto/KFOlCnqEu92Fr1MmWUlfBBc-.woff) format('woff');
42
+ }
43
+
44
+ @font-face {
45
+ font-family: 'Roboto';
46
+ font-style: normal;
47
+ font-weight: 900;
48
+ src: url(https://cdn.quasar.dev/fonts/roboto/KFOlCnqEu92Fr1MmYUtfBBc-.woff) format('woff');
49
+ }
50
+
51
+ $unicodeMap: (
52
+ latin: (
53
+ U+0000-00FF,
54
+ U+0131,
55
+ U+0152-0153,
56
+ U+02BB-02BC,
57
+ U+02C6,
58
+ U+02DA,
59
+ U+02DC,
60
+ U+2000-206F,
61
+ U+2074,
62
+ U+20AC,
63
+ U+2122,
64
+ U+2191,
65
+ U+2193,
66
+ U+2212,
67
+ U+2215,
68
+ U+FEFF,
69
+ U+FFFD,
70
+ ),
71
+ );
72
+
73
+ @mixin fontFace($weight, $style) {
74
+ @each $subset, $unicodeRangeValues in $unicodeMap {
75
+ @font-face {
76
+ font-family: 'Montserrat';
77
+ font-style: $style;
78
+ font-weight: $weight;
79
+ src:
80
+ url('https://cdn.quasar.dev/fonts/montserrat/v25-fix-2/montserrat-#{$subset}-variable-wghtOnly-#{$style}.woff2')
81
+ format('woff2-variations'),
82
+ url('https://cdn.quasar.dev/fonts/montserrat/v25-fix-2/montserrat-#{$subset}-#{$weight}-#{$style}.woff2')
83
+ format('woff2');
84
+ unicode-range: $unicodeRangeValues;
85
+ }
86
+ }
87
+ }
88
+
89
+ @for $weight from 3 through 8 {
90
+ // 300 - 700
91
+ @include fontFace($weight * 100, normal);
92
+ }
93
+
94
+ @for $weight from 3 through 8 {
95
+ // 300 - 700
96
+ @include fontFace($weight * 100, italic);
97
+ }
98
+
99
+ @include fontFace(900, normal);
100
+ @include fontFace(900, italic);
@@ -0,0 +1,298 @@
1
+ .markdown-code {
2
+ margin: 0;
3
+ position: relative;
4
+ overflow: auto;
5
+ border-radius: inherit;
6
+
7
+ code {
8
+ display: block;
9
+ padding: 16px;
10
+ width: fit-content;
11
+ min-width: 100%;
12
+
13
+ font-size: ($font-size - 2px);
14
+ font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
15
+ line-height: 1.5em;
16
+ tab-size: 2;
17
+ text-align: left;
18
+ white-space: pre;
19
+ word-spacing: normal;
20
+ word-break: normal;
21
+ word-wrap: normal;
22
+ hyphens: none;
23
+
24
+ color: inherit;
25
+ background-color: inherit;
26
+ border-radius: inherit;
27
+ }
28
+
29
+ &--copying {
30
+ .c-lpref,
31
+ .c-line,
32
+ .token.deleted-sign,
33
+ .token.prefix {
34
+ display: none;
35
+ }
36
+ }
37
+ }
38
+
39
+ .c-line {
40
+ position: relative;
41
+ display: block;
42
+ width: 100%;
43
+ height: 0;
44
+ &:before {
45
+ content: ' ';
46
+ position: absolute;
47
+ pointer-events: none;
48
+ top: 1px;
49
+ left: -16px;
50
+ right: -16px;
51
+ height: 1.5em;
52
+ }
53
+ }
54
+
55
+ .c-lpref {
56
+ position: sticky;
57
+ pointer-events: none;
58
+ user-select: none;
59
+ left: 8px;
60
+ padding: 0 16px 0 8px;
61
+ margin: -16px 0 -16px -8px;
62
+ &:before {
63
+ border-right: 1px solid;
64
+ content: '';
65
+ position: absolute;
66
+ pointer-events: none;
67
+ top: -1px;
68
+ left: -8px;
69
+ right: 8px;
70
+ bottom: -2px;
71
+ z-index: -1;
72
+ height: 1.5em;
73
+ }
74
+ }
75
+
76
+ .line-add:before,
77
+ .token.inserted-sign:before {
78
+ background: rgba($positive, 0.2);
79
+ }
80
+
81
+ .token.deleted-sign,
82
+ .token.inserted-sign {
83
+ position: relative;
84
+ display: block;
85
+ width: 100%;
86
+
87
+ &:before {
88
+ content: '';
89
+ position: absolute;
90
+ pointer-events: none;
91
+ top: 0;
92
+ left: -16px;
93
+ right: -16px;
94
+ bottom: 0;
95
+ }
96
+ }
97
+
98
+ .token.prefix {
99
+ margin-right: 8px;
100
+ }
101
+
102
+ body.body--light {
103
+ .markdown-code {
104
+ color: $brand-light-codeblock-text;
105
+ background-color: $brand-light-codeblock-bg;
106
+ }
107
+
108
+ .line-highlight:before {
109
+ background: rgba($grey, 0.2);
110
+ }
111
+ .line-rem:before,
112
+ .token.deleted-sign:before {
113
+ background: rgba($negative, 0.2);
114
+ }
115
+
116
+ .c-lpref {
117
+ color: $brand-light-codeblock-text;
118
+ &:before {
119
+ border-right-color: $separator-color;
120
+ background: $brand-light-codeblock-bg;
121
+ }
122
+ }
123
+
124
+ .token.comment,
125
+ .token.block-comment,
126
+ .token.prolog,
127
+ .token.doctype,
128
+ .token.cdata {
129
+ color: #7d8b99;
130
+ }
131
+
132
+ .token {
133
+ &.punctuation {
134
+ color: #5f6364;
135
+ }
136
+ &.important {
137
+ font-weight: 400;
138
+ }
139
+ &.bold {
140
+ font-weight: 700;
141
+ }
142
+ &.italic {
143
+ font-style: italic;
144
+ }
145
+ &.entity {
146
+ cursor: help;
147
+ }
148
+ }
149
+
150
+ .token.property,
151
+ .token.tag,
152
+ .token.boolean,
153
+ .token.number,
154
+ .token.function-name,
155
+ .token.constant,
156
+ .token.symbol,
157
+ .token.deleted {
158
+ color: #c92c2c;
159
+ }
160
+
161
+ .token.selector,
162
+ .token.attr-name,
163
+ .token.string,
164
+ .token.char,
165
+ .token.function,
166
+ .token.builtin,
167
+ .token.inserted {
168
+ color: #2f9c0a;
169
+ }
170
+
171
+ .token.operator,
172
+ .token.entity,
173
+ .token.url,
174
+ .token.variable {
175
+ color: #da5a20;
176
+ }
177
+
178
+ .token.atrule,
179
+ .token.attr-value,
180
+ .token.keyword,
181
+ .token.class-name {
182
+ color: #1990b8;
183
+ }
184
+
185
+ .token.regex,
186
+ .token.important {
187
+ color: #e90;
188
+ }
189
+
190
+ .language-css .token.string,
191
+ .style .token.string {
192
+ color: #a67f59;
193
+ background: rgba(255, 255, 255, 0.5);
194
+ }
195
+
196
+ .namespace {
197
+ opacity: 0.7;
198
+ }
199
+
200
+ .token.tab:not(:empty):before,
201
+ .token.cr:before,
202
+ .token.lf:before {
203
+ color: #e0d7d1;
204
+ }
205
+ }
206
+
207
+ body.body--dark {
208
+ .markdown-code {
209
+ color: $brand-dark-codeblock-text;
210
+ background-color: $brand-dark-codeblock-bg;
211
+ }
212
+
213
+ .line-highlight:before {
214
+ background: rgba($grey-3, 0.2);
215
+ }
216
+ .line-rem:before,
217
+ .token.deleted-sign:before {
218
+ background: rgba($red, 0.3);
219
+ }
220
+
221
+ .c-lpref {
222
+ color: $brand-light-codeblock-text;
223
+ &:before {
224
+ border-right-color: $separator-dark-color;
225
+ background: $brand-dark-codeblock-bg;
226
+ }
227
+ }
228
+
229
+ .token.comment,
230
+ .token.prolog,
231
+ .token.doctype,
232
+ .token.cdata {
233
+ color: #d4d0ab;
234
+ }
235
+
236
+ .token.punctuation {
237
+ color: #fefefe;
238
+ }
239
+
240
+ .token.property,
241
+ .token.tag,
242
+ .token.constant,
243
+ .token.symbol,
244
+ .token.deleted {
245
+ color: #ffa07a;
246
+ }
247
+
248
+ .token.boolean,
249
+ .token.number {
250
+ color: #00e0e0;
251
+ }
252
+
253
+ .token.selector,
254
+ .token.attr-name,
255
+ .token.string,
256
+ .token.char,
257
+ .token.builtin,
258
+ .token.inserted {
259
+ color: #abe338;
260
+ }
261
+
262
+ .token.operator,
263
+ .token.entity,
264
+ .token.url,
265
+ .language-css .token.string,
266
+ .style .token.string,
267
+ .token.variable {
268
+ color: #00e0e0;
269
+ }
270
+
271
+ .token.atrule,
272
+ .token.attr-value,
273
+ .token.function {
274
+ color: #ffd700;
275
+ }
276
+
277
+ .token.keyword {
278
+ color: #00e0e0;
279
+ }
280
+
281
+ .token.regex,
282
+ .token.important {
283
+ color: #ffd700;
284
+ }
285
+
286
+ .token.important,
287
+ .token.bold {
288
+ font-weight: 700;
289
+ }
290
+
291
+ .token.italic {
292
+ font-style: italic;
293
+ }
294
+
295
+ .token.entity {
296
+ cursor: help;
297
+ }
298
+ }
@@ -0,0 +1,68 @@
1
+ @use 'sass:color';
2
+
3
+ $primary: #214466;
4
+ $secondary: #266660;
5
+ $accent: #853394;
6
+
7
+ $positive: #38ff66;
8
+ $negative: #ff1732;
9
+ $info: #6ee4fc;
10
+ $warning: #f3ce6a;
11
+
12
+ $brand-primary: #00bfff;
13
+ $brand-secondary: #4b555c;
14
+ $brand-accent: #ea5e13;
15
+ $brand-dark: #2c3e50;
16
+ $brand-light: #f5f5f5;
17
+ $brand-medium: #6b7f86;
18
+ $brand-light-text: #4d4d4d;
19
+ $brand-light-bg: #fefefe;
20
+ $brand-dark-bg: #080e1a;
21
+ $brand-dark-text: #cbcbcb;
22
+ $brand-light-codeblock-bg: #f5f5f5;
23
+ $brand-light-codeblock-text: #4d4d4d;
24
+ $brand-dark-codeblock-bg: #121212;
25
+ $brand-dark-codeblock-text: #e6e6e6;
26
+
27
+ $header-btn-color--light: #757575;
28
+ $header-btn-hover-color--light: #212121; // $grey-10
29
+ $header-btn-color--dark: #929397;
30
+ $header-btn-hover-color--dark: #fff;
31
+
32
+ $light-pill: $brand-light;
33
+ $light-text: $brand-light-text;
34
+ $light-bg: $brand-light-bg;
35
+
36
+ $dark-pill: scale-color($brand-primary, $lightness: -80%);
37
+ $dark-text: $brand-dark-text;
38
+ $dark-bg: $brand-dark-bg;
39
+
40
+ $separator-color: $brand-accent;
41
+ $separrator-color-dark: $brand-accent;
42
+
43
+ $font-size: 16px;
44
+ $font-size-brand: 16px;
45
+ $font-weight-brand: 500;
46
+ $font-weight-technical: 400;
47
+ $letter-spacing-brand: 0.7px;
48
+
49
+ $font-family-technical:
50
+ 'Roboto',
51
+ -apple-system,
52
+ Avenir,
53
+ BlinkMacSystemFont,
54
+ 'Segoe UI',
55
+ Helvetica,
56
+ Arial,
57
+ sans-serif;
58
+ $font-family-examples: $font-family-technical;
59
+ $font-family-brand: 'Montserrat', $font-family-technical;
60
+
61
+ $shadow--large: 0 24px 24px 0 rgba(0, 179, 255, 0.24);
62
+ $shadow--medium: 0 6px 6px 0 rgba($brand-primary, 0.38);
63
+ $shadow--small: 0 6px 6px 0 rgba($brand-primary, 0.28);
64
+
65
+ // also update QHeader :height-hint
66
+ $header-height: 55px;
67
+ $header-transition: 0.6s cubic-bezier(0.25, 0.8, 0.5, 1);
68
+ $header-quick-transition: 0.28s ease-in-out;
@@ -0,0 +1,69 @@
1
+ @use 'sass:color';
2
+
3
+ // Newspaper Theme Variables
4
+ $primary: #000000; // Black
5
+ $secondary: #333333; // Dark grey
6
+ $accent: #666666; // Medium grey
7
+
8
+ $positive: #55ff3e;
9
+ $negative: #ff3434;
10
+ $info: #bc2cff; // Lighter grey
11
+ $warning: #ffb310; // Very light grey
12
+
13
+ $brand-primary: #8793fc;
14
+ $brand-secondary: #333333; // Dark grey
15
+ $brand-accent: #666666; // Medium grey
16
+ $brand-dark: #000000; // Black
17
+ $brand-light: #ffffff; // White
18
+ $brand-medium: #808080; // Grey
19
+ $brand-light-text: #333333; // Dark grey
20
+ $brand-light-bg: #f5f5f5; // Light grey background
21
+ $brand-dark-bg: #000000; // Black background
22
+ $brand-dark-text: #ffffff; // White text
23
+ $brand-light-codeblock-bg: #f5f5f5; // Light grey background
24
+ $brand-light-codeblock-text: #333333; // Dark grey text
25
+ $brand-dark-codeblock-bg: #1a1a1a; // Very dark grey background
26
+ $brand-dark-codeblock-text: #e6e6e6; // Light grey text
27
+
28
+ $header-btn-color--light: #4d4d4d; // Dark grey
29
+ $header-btn-hover-color--light: #1a1a1a; // Very dark grey
30
+ $header-btn-color--dark: #999999; // Light grey
31
+ $header-btn-hover-color--dark: #cccccc; // Very light grey
32
+
33
+ $light-pill: $brand-light;
34
+ $light-text: $brand-light-text;
35
+ $light-bg: $brand-light-bg;
36
+
37
+ $dark-pill: scale-color($brand-primary, $lightness: -60%);
38
+ $dark-text: $brand-dark-text;
39
+ $dark-bg: $brand-dark-bg;
40
+
41
+ $separator-color: $brand-accent;
42
+ $separrator-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(0, 179, 255, 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;
@@ -0,0 +1,67 @@
1
+ // Custom Theme Variables
2
+ $primary: #e74c3c; // Change primary color to red
3
+ $secondary: #8e44ad; // Change secondary color to purple
4
+ $accent: #f39c12; // Change accent color to orange
5
+
6
+ $positive: #2ecc71; // Change positive color to green
7
+ $negative: #e74c3c; // Change negative color to red
8
+ $info: #3498db; // Change info color to blue
9
+ $warning: #f1c40f; // Change warning color to yellow
10
+
11
+ $brand-primary: #e74c3c; // Change brand primary color to red
12
+ $brand-secondary: #5186bb; // Change brand secondary color to purple
13
+ $brand-accent: #f39c12; // Change brand accent color to orange
14
+ $brand-dark: #2c3e50; // Change brand dark color to dark blue
15
+ $brand-light: #ecf0f1; // Change brand light color to light grey
16
+ $brand-medium: #95a5a6; // Change brand medium color to grey
17
+ $brand-light-text: #2c3e50; // Change brand light text color to dark blue
18
+ $brand-light-bg: #ecf0f1; // Change brand light background color to light grey
19
+ $brand-dark-bg: #34495e; // Change brand dark background color to dark grey
20
+ $brand-dark-text: #ecf0f1; // Change brand dark text color to light grey
21
+ $brand-light-codeblock-bg: #ecf0f1; // Change brand light codeblock background color to light grey
22
+ $brand-light-codeblock-text: #2c3e50; // Change brand light codeblock text color to dark blue
23
+ $brand-dark-codeblock-bg: #2c3e50; // Change brand dark codeblock background color to dark blue
24
+ $brand-dark-codeblock-text: #ecf0f1; // Change brand dark codeblock text color to light grey
25
+
26
+ $header-btn-color--light: #c0392b; // Change header button color for light theme to red
27
+ $header-btn-hover-color--light: #e74c3c; // Change header button hover color for light theme to red
28
+ $header-btn-color--dark: #c0392b; // Change header button color for dark theme to purple
29
+ $header-btn-hover-color--dark: #e74c3c; // Change header button hover color for dark theme to purple
30
+
31
+ $light-pill: $brand-light;
32
+ $light-text: $brand-light-text;
33
+ $light-bg: $brand-light-bg;
34
+
35
+ $dark-pill: scale-color($brand-dark, $lightness: 20%);
36
+ $dark-text: $brand-dark-text;
37
+ $dark-bg: $brand-dark-bg;
38
+
39
+ $separator-color: $brand-accent;
40
+ $separrator-color-dark: $brand-accent;
41
+
42
+ $font-size: 16px;
43
+ $font-size-brand: 16px;
44
+ $font-weight-brand: 500;
45
+ $font-weight-technical: 400;
46
+ $letter-spacing-brand: 0.7px;
47
+
48
+ $font-family-technical:
49
+ 'Roboto',
50
+ -apple-system,
51
+ Avenir,
52
+ BlinkMacSystemFont,
53
+ 'Segoe UI',
54
+ Helvetica,
55
+ Arial,
56
+ sans-serif;
57
+ $font-family-examples: $font-family-technical;
58
+ $font-family-brand: 'Montserrat', $font-family-technical;
59
+
60
+ $shadow--large: 0 24px 24px 0 rgba(0, 179, 255, 0.24);
61
+ $shadow--medium: 0 6px 6px 0 rgba($brand-primary, 0.38);
62
+ $shadow--small: 0 6px 6px 0 rgba($brand-primary, 0.28);
63
+
64
+ // also update QHeader :height-hint
65
+ $header-height: 55px;
66
+ $header-transition: 0.6s cubic-bezier(0.25, 0.8, 0.5, 1);
67
+ $header-quick-transition: 0.28s ease-in-out;
@@ -0,0 +1,69 @@
1
+ @use 'sass:color';
2
+
3
+ // Tawny Theme Variables
4
+ $primary: #8b4513; // SaddleBrown
5
+ $secondary: #a0522d; // Sienna
6
+ $accent: #d2691e; // Chocolate
7
+
8
+ $positive: #cd853f; // Peru
9
+ $negative: #8b0000; // DarkRed
10
+ $info: #deb887; // BurlyWood
11
+ $warning: #f4a460; // SandyBrown
12
+
13
+ $brand-primary: #8b4513; // SaddleBrown
14
+ $brand-secondary: #a0522d; // Sienna
15
+ $brand-accent: #d2691e; // Chocolate
16
+ $brand-dark: #5c4033; // DarkBrown
17
+ $brand-light: #f5f5dc; // Beige
18
+ $brand-medium: #c19a6b; // Camel
19
+ $brand-light-text: #5c4033; // DarkBrown
20
+ $brand-light-bg: #f5f5dc; // Beige
21
+ $brand-dark-bg: #3e2723; // DarkerBrown
22
+ $brand-dark-text: #f5f5dc; // Beige
23
+ $brand-light-codeblock-bg: #f5f5dc; // Beige
24
+ $brand-light-codeblock-text: #5c4033; // DarkBrown
25
+ $brand-dark-codeblock-bg: #3e2723; // DarkerBrown
26
+ $brand-dark-codeblock-text: #f5f5dc; // Beige
27
+
28
+ $header-btn-color--light: #8b4513; // SaddleBrown
29
+ $header-btn-hover-color--light: #a0522d; // Sienna
30
+ $header-btn-color--dark: #d2691e; // Chocolate
31
+ $header-btn-hover-color--dark: #cd853f; // Peru
32
+
33
+ $light-pill: $brand-light;
34
+ $light-text: $brand-light-text;
35
+ $light-bg: $brand-light-bg;
36
+
37
+ $dark-pill: scale-color($brand-primary, $lightness: -80%);
38
+ $dark-text: $brand-dark-text;
39
+ $dark-bg: $brand-dark-bg;
40
+
41
+ $separator-color: $brand-accent;
42
+ $separrator-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(0, 179, 255, 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;
@@ -0,0 +1,32 @@
1
+ <template>
2
+ <q-drawer
3
+ id="menu-drawer"
4
+ v-model="markdownStore.menuDrawer"
5
+ class="markdown-drawer"
6
+ behavior="mobile"
7
+ :width="330"
8
+ aria-label="Sidebar Navigation"
9
+ role="navigation"
10
+ >
11
+ <div class="markdown-drawer__header row justify-end no-wrap q-pt-sm q-pb-md q-px-xs">
12
+ <q-btn
13
+ :icon="mdiClose"
14
+ round
15
+ dense
16
+ flat
17
+ color="brand-accent"
18
+ @click="markdownStore.toggleMenuDrawer"
19
+ />
20
+ </div>
21
+ <MarkdownPageSidebar class="q-mx-xs q-mb-lg" />
22
+ </q-drawer>
23
+ </template>
24
+
25
+ <script setup lang="ts">
26
+ import { mdiClose } from '@quasar/extras/mdi-v7'
27
+
28
+ import { useMarkdownStore } from 'src/.q-press/stores/markdown'
29
+ import MarkdownPageSidebar from './MarkdownPageSidebar'
30
+
31
+ const markdownStore = useMarkdownStore()
32
+ </script>