@md-plugins/quasar-app-extension-q-press 0.1.0-beta.17 → 0.1.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/dist/index.js +1 -1
- package/dist/install.js +6 -1
- package/dist/templates/init/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/dist/templates/init/src/_q-press/components/MarkdownCode.vue +70 -2
- package/dist/templates/init/src/_q-press/components/MarkdownLink.vue +3 -3
- package/dist/templates/init/src/_q-press/css/app.scss +37 -26
- package/dist/templates/init/src/_q-press/css/code-theme.scss +619 -0
- package/dist/templates/init/src/_q-press/css/themes/default.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/evergreen.scss +69 -0
- package/dist/templates/init/src/_q-press/css/themes/mystic.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/newspaper.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/sunrise.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/tawny.scss +1 -1
- package/dist/templates/init/src/components/LandingPage/LandingPage.vue +5 -1
- package/dist/templates/init/src/components/QPressThemeGallery.vue +336 -0
- package/dist/templates/init/src/components/page-parts/releases/GitHubReleases.vue +121 -0
- package/dist/templates/init/src/components/page-parts/releases/PackageReleases.vue +191 -0
- package/dist/templates/init/src/components/page-parts/releases/md-table-parser.ts +52 -0
- package/dist/templates/init/src/components/page-parts/releases/sanitize.ts +132 -0
- package/dist/templates/init/src/markdown/__elements.md +2 -2
- package/dist/templates/init/src/markdown/__elements2.md +2 -2
- package/dist/templates/init/src/markdown/faq/best-practices.md +27 -0
- package/dist/templates/init/src/markdown/faq/general.md +27 -0
- package/dist/templates/init/src/markdown/faq/troubleshooting.md +27 -0
- package/dist/templates/init/src/markdown/getting-started/introduction.md +3 -3
- package/dist/templates/init/src/markdown/md-plugins/codeblocks/advanced.md +19 -15
- package/dist/templates/init/src/markdown/md-plugins/codeblocks/overview.md +20 -3
- package/dist/templates/init/src/markdown/md-plugins/shared/overview.md +16 -5
- package/dist/templates/init/src/markdown/other/contact.md +37 -0
- package/dist/templates/init/src/markdown/other/contributing/bugs-and-feature-requests.md +33 -0
- package/dist/templates/init/src/markdown/other/contributing/call-to-action.md +25 -0
- package/dist/templates/init/src/markdown/other/contributing/documentation.md +31 -0
- package/dist/templates/init/src/markdown/other/contributing/overview.md +41 -0
- package/dist/templates/init/src/markdown/other/contributing/packages.md +28 -0
- package/dist/templates/init/src/markdown/other/contributing/sponsor.md +23 -0
- package/dist/templates/init/src/markdown/other/faq.md +179 -0
- package/dist/templates/init/src/markdown/other/releases.md +11 -0
- package/dist/templates/init/src/markdown/{guides → other}/upgrade-guide.md +20 -13
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/components.md +0 -4
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/overview.md +6 -6
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/site-config.md +17 -3
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/themes.md +101 -9
- package/dist/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/advanced.md +158 -0
- package/dist/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/overview.md +1 -1
- package/dist/templates/init/src/markdown/vite-plugins/vite-md-plugin/overview.md +14 -1
- package/dist/templates/init/src/siteConfig/index.ts +27 -21
- package/dist/templates/update/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/dist/templates/update/src/_q-press/components/MarkdownCode.vue +70 -2
- package/dist/templates/update/src/_q-press/components/MarkdownLink.vue +3 -3
- package/dist/templates/update/src/_q-press/css/app.scss +37 -26
- package/dist/templates/update/src/_q-press/css/code-theme.scss +619 -0
- package/dist/templates/update/src/_q-press/css/themes/default.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/evergreen.scss +69 -0
- package/dist/templates/update/src/_q-press/css/themes/mystic.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/newspaper.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/sunrise.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/tawny.scss +1 -1
- package/package.json +15 -15
- package/src/index.ts +1 -1
- package/src/install.ts +7 -1
- package/src/templates/init/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/src/templates/init/src/_q-press/components/MarkdownCode.vue +70 -2
- package/src/templates/init/src/_q-press/components/MarkdownLink.vue +3 -3
- package/src/templates/init/src/_q-press/css/app.scss +37 -26
- package/src/templates/init/src/_q-press/css/code-theme.scss +619 -0
- package/src/templates/init/src/_q-press/css/themes/default.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/evergreen.scss +69 -0
- package/src/templates/init/src/_q-press/css/themes/mystic.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/newspaper.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/sunrise.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/tawny.scss +1 -1
- package/src/templates/init/src/components/LandingPage/LandingPage.vue +5 -1
- package/src/templates/init/src/components/QPressThemeGallery.vue +336 -0
- package/src/templates/init/src/components/page-parts/releases/GitHubReleases.vue +121 -0
- package/src/templates/init/src/components/page-parts/releases/PackageReleases.vue +191 -0
- package/src/templates/init/src/components/page-parts/releases/md-table-parser.ts +52 -0
- package/src/templates/init/src/components/page-parts/releases/sanitize.ts +132 -0
- package/src/templates/init/src/markdown/__elements.md +2 -2
- package/src/templates/init/src/markdown/__elements2.md +2 -2
- package/src/templates/init/src/markdown/faq/best-practices.md +27 -0
- package/src/templates/init/src/markdown/faq/general.md +27 -0
- package/src/templates/init/src/markdown/faq/troubleshooting.md +27 -0
- package/src/templates/init/src/markdown/getting-started/introduction.md +3 -3
- package/src/templates/init/src/markdown/md-plugins/codeblocks/advanced.md +19 -15
- package/src/templates/init/src/markdown/md-plugins/codeblocks/overview.md +20 -3
- package/src/templates/init/src/markdown/md-plugins/shared/overview.md +16 -5
- package/src/templates/init/src/markdown/other/contact.md +37 -0
- package/src/templates/init/src/markdown/other/contributing/bugs-and-feature-requests.md +33 -0
- package/src/templates/init/src/markdown/other/contributing/call-to-action.md +25 -0
- package/src/templates/init/src/markdown/other/contributing/documentation.md +31 -0
- package/src/templates/init/src/markdown/other/contributing/overview.md +41 -0
- package/src/templates/init/src/markdown/other/contributing/packages.md +28 -0
- package/src/templates/init/src/markdown/other/contributing/sponsor.md +23 -0
- package/src/templates/init/src/markdown/other/faq.md +179 -0
- package/src/templates/init/src/markdown/other/releases.md +11 -0
- package/src/templates/init/src/markdown/{guides → other}/upgrade-guide.md +20 -13
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/components.md +0 -4
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/overview.md +6 -6
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/site-config.md +17 -3
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/themes.md +101 -9
- package/src/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/advanced.md +158 -0
- package/src/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/overview.md +1 -1
- package/src/templates/init/src/markdown/vite-plugins/vite-md-plugin/overview.md +14 -1
- package/src/templates/init/src/siteConfig/index.ts +27 -21
- package/src/templates/update/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/src/templates/update/src/_q-press/components/MarkdownCode.vue +70 -2
- package/src/templates/update/src/_q-press/components/MarkdownLink.vue +3 -3
- package/src/templates/update/src/_q-press/css/app.scss +37 -26
- package/src/templates/update/src/_q-press/css/code-theme.scss +619 -0
- package/src/templates/update/src/_q-press/css/themes/default.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/evergreen.scss +69 -0
- package/src/templates/update/src/_q-press/css/themes/mystic.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/newspaper.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/sunrise.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/tawny.scss +1 -1
- package/dist/templates/init/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/dist/templates/init/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/dist/templates/init/src/_q-press/css/prism-theme.scss +0 -298
- package/dist/templates/init/src/markdown/guides/contributing.md +0 -101
- package/dist/templates/init/src/markdown/guides/faq.md +0 -115
- package/dist/templates/init/src/markdown/guides/release-notes.md +0 -0
- package/dist/templates/init/src/markdown/guides/style-guide.md +0 -0
- package/dist/templates/init/src/markdown/other/release-notes.md +0 -8
- package/dist/templates/update/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/dist/templates/update/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/dist/templates/update/src/_q-press/css/prism-theme.scss +0 -298
- package/src/templates/init/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/src/templates/init/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/src/templates/init/src/_q-press/css/prism-theme.scss +0 -298
- package/src/templates/init/src/markdown/guides/contributing.md +0 -101
- package/src/templates/init/src/markdown/guides/faq.md +0 -115
- package/src/templates/init/src/markdown/guides/release-notes.md +0 -0
- package/src/templates/init/src/markdown/guides/style-guide.md +0 -0
- package/src/templates/init/src/markdown/other/release-notes.md +0 -8
- package/src/templates/update/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/src/templates/update/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/src/templates/update/src/_q-press/css/prism-theme.scss +0 -298
package/README.md
CHANGED
|
@@ -4,9 +4,9 @@ The Ultimate Markdown Solution for the Quasar Framework.
|
|
|
4
4
|
|
|
5
5
|
See the [documentation](https://md-plugins.netlify.app/quasar-app-extensions/qpress/overview) for more information.
|
|
6
6
|
|
|
7
|
-
> Current beta release: `0.1.0-beta.
|
|
7
|
+
> Current beta release: `0.1.0-beta.19`.
|
|
8
8
|
>
|
|
9
|
-
> Q-Press currently targets Quasar Vite projects using `@quasar/app-vite` `>=3.0.0-beta.
|
|
9
|
+
> Q-Press currently targets Quasar Vite projects using `@quasar/app-vite` `>=3.0.0-beta.33`. TypeScript processing is required.
|
|
10
10
|
|
|
11
11
|
## Features
|
|
12
12
|
|
|
@@ -40,12 +40,12 @@ See the [documentation](https://md-plugins.netlify.app/quasar-app-extensions/qpr
|
|
|
40
40
|
- `pnpm i -D markdown-it @types/markdown-it`
|
|
41
41
|
- `bun add -d markdown-it @types/markdown-it`
|
|
42
42
|
|
|
43
|
-
3.
|
|
43
|
+
3. Q-Press adds `shiki` to your project dependencies when invoked. If you are wiring the generated files manually, add it yourself:
|
|
44
44
|
|
|
45
|
-
- `npm i
|
|
46
|
-
- `yarn add
|
|
47
|
-
- `pnpm add
|
|
48
|
-
- `bun add
|
|
45
|
+
- `npm i shiki`
|
|
46
|
+
- `yarn add shiki`
|
|
47
|
+
- `pnpm add shiki`
|
|
48
|
+
- `bun add shiki`
|
|
49
49
|
|
|
50
50
|
## Modifications
|
|
51
51
|
|
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ function extendTypeScriptConfig(typescriptConfig) {
|
|
|
42
42
|
}
|
|
43
43
|
export default defineIndexScript((api) => {
|
|
44
44
|
api.compatibleWith('quasar', '^2.0.0');
|
|
45
|
-
api.compatibleWith('@quasar/app-vite', '>=3.0.0-beta.
|
|
45
|
+
api.compatibleWith('@quasar/app-vite', '>=3.0.0-beta.33');
|
|
46
46
|
// here we extend /quasar.config, so we can add some Vite/Vue stuff
|
|
47
47
|
api.extendQuasarConf(async (config) => {
|
|
48
48
|
config.build ??= {};
|
package/dist/install.js
CHANGED
|
@@ -7,7 +7,7 @@ import { defineInstallScript } from '@quasar/app-vite';
|
|
|
7
7
|
import { existsSync } from 'node:fs';
|
|
8
8
|
export default defineInstallScript(async (api) => {
|
|
9
9
|
api.compatibleWith('quasar', '^2.0.0');
|
|
10
|
-
api.compatibleWith('@quasar/app-vite', '>=3.0.0-beta.
|
|
10
|
+
api.compatibleWith('@quasar/app-vite', '>=3.0.0-beta.33');
|
|
11
11
|
// project must have pinia installed
|
|
12
12
|
if ((await api.getStorePackageName()) !== 'pinia') {
|
|
13
13
|
console.error('-----------------------------');
|
|
@@ -22,6 +22,11 @@ export default defineInstallScript(async (api) => {
|
|
|
22
22
|
console.error('----------------------------------');
|
|
23
23
|
throw new Error('This extension requires TypeScript');
|
|
24
24
|
}
|
|
25
|
+
api.extendPackageJson({
|
|
26
|
+
dependencies: {
|
|
27
|
+
shiki: '^4.1.0',
|
|
28
|
+
},
|
|
29
|
+
});
|
|
25
30
|
const path = api.resolve.src('siteConfig');
|
|
26
31
|
if (existsSync(path)) {
|
|
27
32
|
// this is an update scenario
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"props": {
|
|
7
7
|
"code": {
|
|
8
8
|
"type": "String",
|
|
9
|
-
"desc": "The code to display",
|
|
9
|
+
"desc": "The code to display with Shiki syntax highlighting",
|
|
10
10
|
"examples": [
|
|
11
11
|
"'const a = 1;'",
|
|
12
12
|
"'<div>Hello World</div>'"
|
|
@@ -34,4 +34,4 @@
|
|
|
34
34
|
"category": "content"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
}
|
|
37
|
+
}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="relative-position markdown-copybtn-hover">
|
|
3
|
-
<
|
|
3
|
+
<pre class="markdown-code" :class="block.className" :style="[style, block.style]"><code v-html="block.code"></code></pre>
|
|
4
4
|
<MarkdownCopyButton />
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup lang="ts">
|
|
9
|
+
import { createHighlighterCoreSync } from 'shiki/core'
|
|
10
|
+
import { createJavaScriptRegexEngine } from 'shiki/engine/javascript'
|
|
11
|
+
import htmlLang from 'shiki/langs/html.mjs'
|
|
12
|
+
import javascriptLang from 'shiki/langs/javascript.mjs'
|
|
13
|
+
import vueLang from 'shiki/langs/vue.mjs'
|
|
14
|
+
import githubDark from 'shiki/themes/github-dark.mjs'
|
|
15
|
+
import githubLight from 'shiki/themes/github-light.mjs'
|
|
9
16
|
import { computed } from 'vue'
|
|
10
17
|
|
|
11
|
-
import MarkdownCodePrism from './MarkdownCodePrism'
|
|
12
18
|
import MarkdownCopyButton from './MarkdownCopyButton.vue'
|
|
13
19
|
|
|
14
20
|
const props = defineProps({
|
|
@@ -28,4 +34,66 @@ const props = defineProps({
|
|
|
28
34
|
})
|
|
29
35
|
|
|
30
36
|
const style = computed(() => (props.maxHeight !== void 0 ? { maxHeight: props.maxHeight } : null))
|
|
37
|
+
|
|
38
|
+
const block = computed(() => {
|
|
39
|
+
return parseHighlightedBlock(highlightCode(props.code, props.lang))
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
const highlighter = createHighlighterCoreSync({
|
|
43
|
+
engine: createJavaScriptRegexEngine(),
|
|
44
|
+
themes: [githubLight, githubDark],
|
|
45
|
+
langs: [htmlLang, javascriptLang, vueLang].flat(),
|
|
46
|
+
langAlias: {
|
|
47
|
+
bash: 'javascript',
|
|
48
|
+
css: 'html',
|
|
49
|
+
js: 'javascript',
|
|
50
|
+
markup: 'vue',
|
|
51
|
+
sass: 'html',
|
|
52
|
+
scss: 'html',
|
|
53
|
+
sh: 'javascript',
|
|
54
|
+
shell: 'javascript',
|
|
55
|
+
ts: 'javascript',
|
|
56
|
+
},
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
function highlightCode(code: string, lang: string): string {
|
|
60
|
+
const options = {
|
|
61
|
+
lang: normalizeLang(lang),
|
|
62
|
+
themes: {
|
|
63
|
+
light: 'github-light',
|
|
64
|
+
dark: 'github-dark',
|
|
65
|
+
},
|
|
66
|
+
defaultColor: false,
|
|
67
|
+
} as const
|
|
68
|
+
|
|
69
|
+
try {
|
|
70
|
+
return highlighter.codeToHtml(code, options)
|
|
71
|
+
} catch {
|
|
72
|
+
return highlighter.codeToHtml(code, {
|
|
73
|
+
...options,
|
|
74
|
+
lang: 'text',
|
|
75
|
+
})
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function normalizeLang(lang: string): string {
|
|
80
|
+
return (
|
|
81
|
+
{
|
|
82
|
+
js: 'javascript',
|
|
83
|
+
markup: 'html',
|
|
84
|
+
ts: 'typescript',
|
|
85
|
+
}[lang] ?? lang
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function parseHighlightedBlock(html: string): { className: string; code: string; style: string } {
|
|
90
|
+
const match = html.match(/^<pre(?<attrs>[^>]*)><code>(?<code>[\s\S]*)<\/code><\/pre>$/)
|
|
91
|
+
const attrs = match?.groups?.attrs ?? ''
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
className: attrs.match(/class="(?<value>[^"]*)"/)?.groups?.value ?? 'shiki',
|
|
95
|
+
code: match?.groups?.code ?? '',
|
|
96
|
+
style: attrs.match(/style="(?<value>[^"]*)"/)?.groups?.value ?? '',
|
|
97
|
+
}
|
|
98
|
+
}
|
|
31
99
|
</script>
|
|
@@ -20,14 +20,14 @@ const internal = computed(
|
|
|
20
20
|
|
|
21
21
|
<style lang="scss">
|
|
22
22
|
.markdown-link {
|
|
23
|
-
color:
|
|
23
|
+
color: $brand-light-text;
|
|
24
24
|
text-decoration: none;
|
|
25
|
-
border-bottom: 1px dotted
|
|
25
|
+
border-bottom: 1px dotted rgba($brand-primary, 0.78);
|
|
26
26
|
outline: 0;
|
|
27
27
|
transition: color $header-quick-transition;
|
|
28
28
|
|
|
29
29
|
body.body--dark & {
|
|
30
|
-
color: $brand-
|
|
30
|
+
color: $brand-dark-text;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&:hover {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
+
@use 'sass:color';
|
|
2
3
|
@use './fonts.scss';
|
|
3
4
|
|
|
4
|
-
// Keep this import so
|
|
5
|
-
@import './
|
|
5
|
+
// Keep this import so Shiki code blocks share the selected qPress theme variables.
|
|
6
|
+
@import './code-theme.scss';
|
|
6
7
|
|
|
7
8
|
.material-icons {
|
|
8
9
|
font-family: 'Material Icons';
|
|
@@ -83,9 +84,10 @@ ul {
|
|
|
83
84
|
line-height: $font-size;
|
|
84
85
|
border-radius: $generic-border-radius;
|
|
85
86
|
font-family: inherit;
|
|
86
|
-
color:
|
|
87
|
+
color: $brand-light-text;
|
|
88
|
+
background-color: rgba($brand-primary, 0.08);
|
|
87
89
|
vertical-align: baseline;
|
|
88
|
-
border: 1px solid
|
|
90
|
+
border: 1px solid rgba($brand-primary, 0.5);
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
.markdown-note {
|
|
@@ -108,10 +110,13 @@ ul {
|
|
|
108
110
|
// .markdown-note__title,
|
|
109
111
|
.markdown-link,
|
|
110
112
|
.markdown-token {
|
|
111
|
-
color:
|
|
113
|
+
color: $brand-light-text;
|
|
114
|
+
}
|
|
115
|
+
.markdown-link {
|
|
116
|
+
border-bottom-color: rgba($brand-primary, 0.78);
|
|
112
117
|
}
|
|
113
118
|
.markdown-token {
|
|
114
|
-
border-color:
|
|
119
|
+
border-color: rgba($brand-primary, 0.5);
|
|
115
120
|
}
|
|
116
121
|
& strong {
|
|
117
122
|
font-weight: 700;
|
|
@@ -120,16 +125,16 @@ ul {
|
|
|
120
125
|
}
|
|
121
126
|
|
|
122
127
|
&--tip {
|
|
123
|
-
color: scale
|
|
124
|
-
background-color: scale
|
|
128
|
+
color: color.scale($positive, $lightness: -40%) !important;
|
|
129
|
+
background-color: color.scale($positive, $lightness: 85%);
|
|
125
130
|
border-color: $positive;
|
|
126
131
|
.markdown-note__title,
|
|
127
132
|
.markdown-link,
|
|
128
133
|
.markdown-token {
|
|
129
|
-
color: scale
|
|
134
|
+
color: color.scale($positive, $lightness: -40%);
|
|
130
135
|
}
|
|
131
136
|
.markdown-token {
|
|
132
|
-
border-color: scale
|
|
137
|
+
border-color: color.scale($positive, $lightness: -40%);
|
|
133
138
|
}
|
|
134
139
|
& strong {
|
|
135
140
|
font-weight: 700;
|
|
@@ -138,16 +143,16 @@ ul {
|
|
|
138
143
|
}
|
|
139
144
|
|
|
140
145
|
&--warning {
|
|
141
|
-
color: scale
|
|
142
|
-
background-color: scale
|
|
143
|
-
border-color: scale
|
|
146
|
+
color: color.scale($warning, $lightness: -40%);
|
|
147
|
+
background-color: color.scale($warning, $lightness: 85%);
|
|
148
|
+
border-color: color.scale($warning, $lightness: -30%);
|
|
144
149
|
.markdown-note__title,
|
|
145
150
|
.markdown-link,
|
|
146
151
|
.markdown-token {
|
|
147
|
-
color: scale
|
|
152
|
+
color: color.scale($warning, $lightness: -40%);
|
|
148
153
|
}
|
|
149
154
|
.markdown-token {
|
|
150
|
-
border-color: scale
|
|
155
|
+
border-color: color.scale($warning, $lightness: -40%);
|
|
151
156
|
}
|
|
152
157
|
& strong {
|
|
153
158
|
font-weight: 700;
|
|
@@ -156,8 +161,8 @@ ul {
|
|
|
156
161
|
}
|
|
157
162
|
|
|
158
163
|
&--danger {
|
|
159
|
-
color: scale
|
|
160
|
-
background-color: scale
|
|
164
|
+
color: color.scale($negative, $lightness: -40%);
|
|
165
|
+
background-color: color.scale($negative, $lightness: 90%);
|
|
161
166
|
border-color: $negative;
|
|
162
167
|
.markdown-note__title,
|
|
163
168
|
.markdown-link,
|
|
@@ -512,7 +517,7 @@ body.q-scroll--lock .q-page > .q-scroll--anchor {
|
|
|
512
517
|
.markdown-heading .q-badge,
|
|
513
518
|
.header-badge {
|
|
514
519
|
color: $brand-primary;
|
|
515
|
-
background: scale
|
|
520
|
+
background: color.scale($light-bg, $lightness: 15%);
|
|
516
521
|
vertical-align: super;
|
|
517
522
|
letter-spacing: $letter-spacing-brand;
|
|
518
523
|
padding: 4px 8px;
|
|
@@ -553,6 +558,12 @@ $letter-spacing-list: 40, 100, 225, 263, 300, 375, 450;
|
|
|
553
558
|
}
|
|
554
559
|
|
|
555
560
|
body.body--dark {
|
|
561
|
+
.markdown-token {
|
|
562
|
+
color: $brand-dark-text;
|
|
563
|
+
background-color: rgba($brand-primary, 0.18);
|
|
564
|
+
border-color: rgba($brand-primary, 0.72);
|
|
565
|
+
}
|
|
566
|
+
|
|
556
567
|
.markdown-technical {
|
|
557
568
|
color: $brand-dark-text;
|
|
558
569
|
background: $brand-dark-bg;
|
|
@@ -592,9 +603,9 @@ body.body--dark {
|
|
|
592
603
|
|
|
593
604
|
.markdown-note {
|
|
594
605
|
&:not(.markdown-note--tip, .markdown-note--warning, .markdown-note--danger) {
|
|
595
|
-
color: scale
|
|
606
|
+
color: color.scale($dark-pill, $lightness: 80%);
|
|
596
607
|
background-color: $dark-pill;
|
|
597
|
-
border-color: scale
|
|
608
|
+
border-color: color.scale($dark-pill, $lightness: 50%);
|
|
598
609
|
.markdown-token {
|
|
599
610
|
border-color: #ddd;
|
|
600
611
|
color: #ddd;
|
|
@@ -606,7 +617,7 @@ body.body--dark {
|
|
|
606
617
|
|
|
607
618
|
&--tip {
|
|
608
619
|
border-color: $positive;
|
|
609
|
-
background-color: scale
|
|
620
|
+
background-color: color.scale($positive, $lightness: -85%);
|
|
610
621
|
.markdown-note__title,
|
|
611
622
|
.markdown-link,
|
|
612
623
|
.markdown-token {
|
|
@@ -619,7 +630,7 @@ body.body--dark {
|
|
|
619
630
|
|
|
620
631
|
&--warning {
|
|
621
632
|
border-color: $warning;
|
|
622
|
-
background-color: scale
|
|
633
|
+
background-color: color.scale($warning, $lightness: -85%);
|
|
623
634
|
.markdown-note__title,
|
|
624
635
|
.markdown-link,
|
|
625
636
|
.markdown-token {
|
|
@@ -632,7 +643,7 @@ body.body--dark {
|
|
|
632
643
|
|
|
633
644
|
&--danger {
|
|
634
645
|
border-color: $negative;
|
|
635
|
-
background-color: scale
|
|
646
|
+
background-color: color.scale($negative, $lightness: -80%);
|
|
636
647
|
}
|
|
637
648
|
}
|
|
638
649
|
|
|
@@ -657,7 +668,7 @@ body.body--dark {
|
|
|
657
668
|
padding: 4px 8px 4px 28px;
|
|
658
669
|
position: relative;
|
|
659
670
|
border-radius: 3px 5px 5px 0;
|
|
660
|
-
background: scale
|
|
671
|
+
background: color.scale($brand-light, $lightness: -15%);
|
|
661
672
|
color: $brand-secondary;
|
|
662
673
|
font-size: ($font-size + 2px);
|
|
663
674
|
letter-spacing: $letter-spacing-brand;
|
|
@@ -671,7 +682,7 @@ body.body--dark {
|
|
|
671
682
|
height: 0;
|
|
672
683
|
border: 0 solid transparent;
|
|
673
684
|
border-width: 9px 0 0 11px;
|
|
674
|
-
border-top-color: scale
|
|
685
|
+
border-top-color: color.scale($brand-light, $lightness: -25%);
|
|
675
686
|
}
|
|
676
687
|
}
|
|
677
688
|
|
|
@@ -679,6 +690,6 @@ body.body--dark .markdown-card-title {
|
|
|
679
690
|
background: $brand-secondary;
|
|
680
691
|
color: $dark-text;
|
|
681
692
|
&:after {
|
|
682
|
-
border-top-color: scale
|
|
693
|
+
border-top-color: color.scale($brand-secondary, $lightness: -30%);
|
|
683
694
|
}
|
|
684
695
|
}
|