@hyvor/design 2.0.0-beta.1 → 2.0.1
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 +9 -0
- package/dist/cloud/HyvorBar/BarProducts/BarProducts.svelte +1 -4
- package/dist/cloud/HyvorBar/BarUpdatesList.svelte +1 -3
- package/dist/cloud/HyvorBar/HyvorBar.svelte +0 -2
- package/dist/cloud/HyvorBar/bar.d.ts +1 -1
- package/dist/cloud/OrganizationMembers/OrganizationMembersSearch.svelte +1 -4
- package/dist/cloud/ResourceCreator/Accordian.svelte +2 -4
- package/dist/components/Accordion/Accordion.svelte +134 -134
- package/dist/components/ActionList/ActionList.svelte +2 -8
- package/dist/components/ActionList/ActionListGroup.svelte +1 -5
- package/dist/components/ActionList/ActionListItem.svelte +7 -7
- package/dist/components/Button/Button.svelte +2 -12
- package/dist/components/CodeBlock/CodeBlock.svelte +45 -28
- package/dist/components/CodeBlock/CodeBlock.svelte.d.ts +2 -3
- package/dist/components/CodeBlock/TabbedCodeBlock.svelte +60 -64
- package/dist/components/CodeBlock/TabbedCodeBlock.svelte.d.ts +1 -1
- package/dist/components/CodeBlock/getCode.d.ts +3 -1
- package/dist/components/CodeBlock/getCode.js +33 -50
- package/dist/components/ColorPicker/ColorPicker.svelte +1 -1
- package/dist/components/Dark/DarkProvider.svelte +1 -1
- package/dist/components/DetailCard/DetailCard.svelte +43 -46
- package/dist/components/DetailCard/DetailCard.svelte.d.ts +1 -1
- package/dist/components/DetailCard/DetailCards.svelte +13 -16
- package/dist/components/DetailCard/DetailCards.svelte.d.ts +1 -1
- package/dist/components/Dropdown/DropdownContent.svelte +1 -2
- package/dist/components/EmojiPicker/EmojiSelector.svelte +3 -14
- package/dist/components/EmojiPicker/emojidata.js +3 -3
- package/dist/components/FileUploader/Preview/Preview.svelte +1 -1
- package/dist/components/FileUploader/TabUpload/TabUpload.svelte +2 -4
- package/dist/components/FileUploader/file-uploader.js +5 -10
- package/dist/components/FileUploader/helpers.js +1 -1
- package/dist/components/IconButton/IconButton.svelte +2 -10
- package/dist/components/IconMessage/IconMessage.svelte +29 -44
- package/dist/components/Internationalization/LanguageToggle.svelte +2 -2
- package/dist/components/Internationalization/T.svelte +2 -9
- package/dist/components/Internationalization/i18n.js +3 -1
- package/dist/components/Loader/Loader.svelte +1 -3
- package/dist/components/Modal/ConfirmModalProvider.svelte +1 -3
- package/dist/components/Modal/Modal.svelte +16 -12
- package/dist/components/TabNav/TabNav.svelte +0 -2
- package/dist/components/TextInput/TextInput.svelte +29 -52
- package/dist/components/TextInput/TextInput.svelte.d.ts +5 -3
- package/dist/components/Textarea/Textarea.svelte +84 -98
- package/dist/index.css +4 -4
- package/dist/legacy.js +2 -2
- package/dist/marketing/Affiliate/Affiliate.svelte +53 -51
- package/dist/marketing/Container/Container.svelte +4 -5
- package/dist/marketing/Docs/Nav/Nav.svelte +1 -2
- package/dist/marketing/Footer/Footer.svelte +2 -2
- package/dist/marketing/Header/Header.svelte +131 -140
- package/dist/marketing/Header/Header.svelte.d.ts +3 -1
- package/dist/marketing/Header/HeaderNotification.svelte +64 -0
- package/dist/marketing/Header/HeaderNotification.svelte.d.ts +7 -0
- package/dist/marketing/cloud.d.ts +1 -0
- package/dist/marketing/cloud.js +15 -0
- package/dist/marketing/track/track.d.ts +0 -1
- package/dist/marketing/track/track.js +3 -6
- package/dist/variables.scss +1 -1
- package/package.json +24 -22
- package/dist/components/CodeBlock/hljs.scss +0 -228
- package/dist/components/CodeBlock/prism.scss +0 -375
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyvor/design",
|
|
3
|
+
"version": "2.0.1",
|
|
3
4
|
"license": "MIT",
|
|
4
5
|
"private": false,
|
|
5
6
|
"repository": {
|
|
@@ -16,7 +17,8 @@
|
|
|
16
17
|
"prepublishOnly": "npm run package",
|
|
17
18
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
18
19
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
19
|
-
"check:prettier": "prettier --check ."
|
|
20
|
+
"check:prettier": "prettier --check .",
|
|
21
|
+
"format": "prettier --write ."
|
|
20
22
|
},
|
|
21
23
|
"exports": {
|
|
22
24
|
"./components": {
|
|
@@ -43,32 +45,32 @@
|
|
|
43
45
|
"svelte": "^5.0.0"
|
|
44
46
|
},
|
|
45
47
|
"devDependencies": {
|
|
46
|
-
"@sveltejs/adapter-static": "^3.0.
|
|
47
|
-
"@sveltejs/package": "^2.
|
|
48
|
-
"@sveltejs/vite-plugin-svelte": "^6.2.
|
|
49
|
-
"prettier": "3.
|
|
50
|
-
"prettier-plugin-svelte": "3.
|
|
51
|
-
"publint": "^0.
|
|
52
|
-
"svelte": "^5.
|
|
53
|
-
"svelte-check": "^4.
|
|
54
|
-
"tslib": "^2.
|
|
55
|
-
"typescript": "^5.
|
|
56
|
-
"vite": "^7.
|
|
48
|
+
"@sveltejs/adapter-static": "^3.0.10",
|
|
49
|
+
"@sveltejs/package": "^2.5.7",
|
|
50
|
+
"@sveltejs/vite-plugin-svelte": "^6.2.4",
|
|
51
|
+
"prettier": "3.8.1",
|
|
52
|
+
"prettier-plugin-svelte": "3.4.1",
|
|
53
|
+
"publint": "^0.3.17",
|
|
54
|
+
"svelte": "^5.49.1",
|
|
55
|
+
"svelte-check": "^4.3.6",
|
|
56
|
+
"tslib": "^2.8.1",
|
|
57
|
+
"typescript": "^5.9.3",
|
|
58
|
+
"vite": "^7.3"
|
|
57
59
|
},
|
|
58
60
|
"dependencies": {
|
|
59
|
-
"@fontsource/readex-pro": "^5.
|
|
61
|
+
"@fontsource/readex-pro": "^5.2.11",
|
|
60
62
|
"@hyvor/icons": "^1.1.1",
|
|
61
|
-
"@openpanel/sdk": "^1.0.
|
|
62
|
-
"@openpanel/web": "^1.0.
|
|
63
|
-
"deepmerge-ts": "^
|
|
64
|
-
"emojibase-data": "^
|
|
65
|
-
"intl-messageformat": "^
|
|
66
|
-
"
|
|
67
|
-
"
|
|
63
|
+
"@openpanel/sdk": "^1.0.4",
|
|
64
|
+
"@openpanel/web": "^1.0.7",
|
|
65
|
+
"deepmerge-ts": "^7.1.5",
|
|
66
|
+
"emojibase-data": "^17.0.0",
|
|
67
|
+
"intl-messageformat": "^11.1.2",
|
|
68
|
+
"shiki": "^3.22.0",
|
|
69
|
+
"svelte-awesome-color-picker": "^4.1.1",
|
|
70
|
+
"tocbot": "^4.36.4"
|
|
68
71
|
},
|
|
69
72
|
"type": "module",
|
|
70
73
|
"publishConfig": {
|
|
71
74
|
"access": "public"
|
|
72
|
-
}
|
|
73
|
-
"version": "2.0.0-beta.1"
|
|
75
|
+
}
|
|
74
76
|
}
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
.hljs code {
|
|
2
|
-
color: inherit !important;
|
|
3
|
-
background: inherit !important;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
/*!
|
|
7
|
-
Theme: StackOverflow Light
|
|
8
|
-
Description: Light theme as used on stackoverflow.com
|
|
9
|
-
Author: stackoverflow.com
|
|
10
|
-
Maintainer: @Hirse
|
|
11
|
-
Website: https://github.com/StackExchange/Stacks
|
|
12
|
-
License: MIT
|
|
13
|
-
Updated: 2021-05-15
|
|
14
|
-
|
|
15
|
-
Updated for @stackoverflow/stacks v0.64.0
|
|
16
|
-
Code Blocks: /blob/v0.64.0/lib/css/components/_stacks-code-blocks.less
|
|
17
|
-
Colors: /blob/v0.64.0/lib/css/exports/_stacks-constants-colors.less
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
.hljs {
|
|
21
|
-
/* var(--highlight-color) */
|
|
22
|
-
color: #2f3337;
|
|
23
|
-
/* var(--highlight-bg) */
|
|
24
|
-
background: #f4f2f0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.hljs-subst {
|
|
28
|
-
/* var(--highlight-color) */
|
|
29
|
-
color: #2f3337;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.hljs-comment {
|
|
33
|
-
/* var(--highlight-comment) */
|
|
34
|
-
color: #656e77;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.hljs-keyword,
|
|
38
|
-
.hljs-selector-tag,
|
|
39
|
-
.hljs-meta .hljs-keyword,
|
|
40
|
-
.hljs-doctag,
|
|
41
|
-
.hljs-section {
|
|
42
|
-
/* var(--highlight-keyword) */
|
|
43
|
-
color: #015692;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.hljs-attr {
|
|
47
|
-
/* var(--highlight-attribute); */
|
|
48
|
-
color: #015692;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.hljs-attribute {
|
|
52
|
-
/* var(--highlight-symbol) */
|
|
53
|
-
color: #803378;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.hljs-name,
|
|
57
|
-
.hljs-type,
|
|
58
|
-
.hljs-number,
|
|
59
|
-
.hljs-selector-id,
|
|
60
|
-
.hljs-quote,
|
|
61
|
-
.hljs-template-tag {
|
|
62
|
-
/* var(--highlight-namespace) */
|
|
63
|
-
color: #905;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.hljs-selector-class {
|
|
67
|
-
/* var(--highlight-keyword) */
|
|
68
|
-
color: #015692;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.hljs-string,
|
|
72
|
-
.hljs-regexp,
|
|
73
|
-
.hljs-symbol,
|
|
74
|
-
.hljs-variable,
|
|
75
|
-
.hljs-template-variable,
|
|
76
|
-
.hljs-link,
|
|
77
|
-
.hljs-selector-attr {
|
|
78
|
-
/* var(--highlight-variable) */
|
|
79
|
-
color: #54790d;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.hljs-meta,
|
|
83
|
-
.hljs-selector-pseudo {
|
|
84
|
-
/* var(--highlight-keyword) */
|
|
85
|
-
color: #015692;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.hljs-built_in,
|
|
89
|
-
.hljs-title,
|
|
90
|
-
.hljs-literal {
|
|
91
|
-
/* var(--highlight-literal) */
|
|
92
|
-
color: #905;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.hljs-bullet,
|
|
96
|
-
.hljs-code {
|
|
97
|
-
/* var(--highlight-punctuation) */
|
|
98
|
-
color: #535a60;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.hljs-meta .hljs-string {
|
|
102
|
-
/* var(--highlight-variable) */
|
|
103
|
-
color: #54790d;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.hljs-deletion {
|
|
107
|
-
/* var(--highlight-deletion) */
|
|
108
|
-
color: #c02d2e;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.hljs-addition {
|
|
112
|
-
/* var(--highlight-addition) */
|
|
113
|
-
color: #2f6f44;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.hljs-emphasis {
|
|
117
|
-
font-style: italic;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.hljs-strong {
|
|
121
|
-
font-weight: bold;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.hljs-formula,
|
|
125
|
-
.hljs-operator,
|
|
126
|
-
.hljs-params,
|
|
127
|
-
.hljs-property,
|
|
128
|
-
.hljs-punctuation,
|
|
129
|
-
.hljs-tag {
|
|
130
|
-
/* purposely ignored */
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
:root.dark {
|
|
134
|
-
/*
|
|
135
|
-
|
|
136
|
-
Atom One Dark by Daniel Gamage
|
|
137
|
-
Original One Dark Syntax theme from https://github.com/atom/one-dark-syntax
|
|
138
|
-
|
|
139
|
-
base: #282c34
|
|
140
|
-
mono-1: #abb2bf
|
|
141
|
-
mono-2: #818896
|
|
142
|
-
mono-3: #5c6370
|
|
143
|
-
hue-1: #56b6c2
|
|
144
|
-
hue-2: #61aeee
|
|
145
|
-
hue-3: #c678dd
|
|
146
|
-
hue-4: #98c379
|
|
147
|
-
hue-5: #e06c75
|
|
148
|
-
hue-5-2: #be5046
|
|
149
|
-
hue-6: #d19a66
|
|
150
|
-
hue-6-2: #e6c07b
|
|
151
|
-
|
|
152
|
-
*/
|
|
153
|
-
|
|
154
|
-
.hljs {
|
|
155
|
-
color: #abb2bf;
|
|
156
|
-
background: #282c34;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.hljs-comment,
|
|
160
|
-
.hljs-quote {
|
|
161
|
-
color: #5c6370;
|
|
162
|
-
font-style: italic;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.hljs-doctag,
|
|
166
|
-
.hljs-keyword,
|
|
167
|
-
.hljs-formula {
|
|
168
|
-
color: #c678dd;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.hljs-section,
|
|
172
|
-
.hljs-name,
|
|
173
|
-
.hljs-selector-tag,
|
|
174
|
-
.hljs-deletion,
|
|
175
|
-
.hljs-subst {
|
|
176
|
-
color: #e06c75;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.hljs-literal {
|
|
180
|
-
color: #56b6c2;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.hljs-string,
|
|
184
|
-
.hljs-regexp,
|
|
185
|
-
.hljs-addition,
|
|
186
|
-
.hljs-attribute,
|
|
187
|
-
.hljs-meta .hljs-string {
|
|
188
|
-
color: #98c379;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.hljs-attr,
|
|
192
|
-
.hljs-variable,
|
|
193
|
-
.hljs-template-variable,
|
|
194
|
-
.hljs-type,
|
|
195
|
-
.hljs-selector-class,
|
|
196
|
-
.hljs-selector-attr,
|
|
197
|
-
.hljs-selector-pseudo,
|
|
198
|
-
.hljs-number {
|
|
199
|
-
color: #d19a66;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.hljs-symbol,
|
|
203
|
-
.hljs-bullet,
|
|
204
|
-
.hljs-link,
|
|
205
|
-
.hljs-meta,
|
|
206
|
-
.hljs-selector-id,
|
|
207
|
-
.hljs-title {
|
|
208
|
-
color: #61aeee;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.hljs-built_in,
|
|
212
|
-
.hljs-title.class_,
|
|
213
|
-
.hljs-class .hljs-title {
|
|
214
|
-
color: #e6c07b;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.hljs-emphasis {
|
|
218
|
-
font-style: italic;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.hljs-strong {
|
|
222
|
-
font-weight: bold;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.hljs-link {
|
|
226
|
-
text-decoration: underline;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
/* PrismJS 1.26.0
|
|
2
|
-
https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+json+markup-templating+php+twig+yaml&plugins=line-highlight+line-numbers */
|
|
3
|
-
code[class*='language-'],
|
|
4
|
-
pre[class*='language-'] {
|
|
5
|
-
color: #000;
|
|
6
|
-
background: 0 0;
|
|
7
|
-
text-shadow: 0 1px #fff;
|
|
8
|
-
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
9
|
-
text-align: left;
|
|
10
|
-
white-space: pre;
|
|
11
|
-
word-spacing: normal;
|
|
12
|
-
word-break: normal;
|
|
13
|
-
word-wrap: normal;
|
|
14
|
-
line-height: 1.5;
|
|
15
|
-
-moz-tab-size: 4;
|
|
16
|
-
-o-tab-size: 4;
|
|
17
|
-
tab-size: 4;
|
|
18
|
-
-webkit-hyphens: none;
|
|
19
|
-
-moz-hyphens: none;
|
|
20
|
-
-ms-hyphens: none;
|
|
21
|
-
hyphens: none;
|
|
22
|
-
}
|
|
23
|
-
code[class*='language-'] ::-moz-selection,
|
|
24
|
-
code[class*='language-']::-moz-selection,
|
|
25
|
-
pre[class*='language-'] ::-moz-selection,
|
|
26
|
-
pre[class*='language-']::-moz-selection {
|
|
27
|
-
text-shadow: none;
|
|
28
|
-
background: #b3d4fc;
|
|
29
|
-
}
|
|
30
|
-
code[class*='language-'] ::selection,
|
|
31
|
-
code[class*='language-']::selection,
|
|
32
|
-
pre[class*='language-'] ::selection,
|
|
33
|
-
pre[class*='language-']::selection {
|
|
34
|
-
text-shadow: none;
|
|
35
|
-
background: #b3d4fc;
|
|
36
|
-
}
|
|
37
|
-
@media print {
|
|
38
|
-
code[class*='language-'],
|
|
39
|
-
pre[class*='language-'] {
|
|
40
|
-
text-shadow: none;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
pre[class*='language-'] {
|
|
44
|
-
padding: 1em;
|
|
45
|
-
margin: 0.5em 0;
|
|
46
|
-
overflow: auto;
|
|
47
|
-
}
|
|
48
|
-
:not(pre) > code[class*='language-'],
|
|
49
|
-
pre[class*='language-'] {
|
|
50
|
-
background: #f5f2f0;
|
|
51
|
-
}
|
|
52
|
-
:not(pre) > code[class*='language-'] {
|
|
53
|
-
padding: 0.1em;
|
|
54
|
-
border-radius: 0.3em;
|
|
55
|
-
white-space: normal;
|
|
56
|
-
}
|
|
57
|
-
.token.cdata,
|
|
58
|
-
.token.comment,
|
|
59
|
-
.token.doctype,
|
|
60
|
-
.token.prolog {
|
|
61
|
-
color: #708090;
|
|
62
|
-
}
|
|
63
|
-
.token.punctuation {
|
|
64
|
-
color: #999;
|
|
65
|
-
}
|
|
66
|
-
.token.namespace {
|
|
67
|
-
opacity: 0.7;
|
|
68
|
-
}
|
|
69
|
-
.token.boolean,
|
|
70
|
-
.token.constant,
|
|
71
|
-
.token.deleted,
|
|
72
|
-
.token.number,
|
|
73
|
-
.token.property,
|
|
74
|
-
.token.symbol,
|
|
75
|
-
.token.tag {
|
|
76
|
-
color: #905;
|
|
77
|
-
}
|
|
78
|
-
.token.attr-name,
|
|
79
|
-
.token.builtin,
|
|
80
|
-
.token.char,
|
|
81
|
-
.token.inserted,
|
|
82
|
-
.token.selector,
|
|
83
|
-
.token.string {
|
|
84
|
-
color: #690;
|
|
85
|
-
}
|
|
86
|
-
.language-css .token.string,
|
|
87
|
-
.style .token.string,
|
|
88
|
-
.token.entity,
|
|
89
|
-
.token.operator,
|
|
90
|
-
.token.url {
|
|
91
|
-
color: #9a6e3a;
|
|
92
|
-
background: hsla(0, 0%, 100%, 0.5);
|
|
93
|
-
}
|
|
94
|
-
.token.atrule,
|
|
95
|
-
.token.attr-value,
|
|
96
|
-
.token.keyword {
|
|
97
|
-
color: #07a;
|
|
98
|
-
}
|
|
99
|
-
.token.class-name,
|
|
100
|
-
.token.function {
|
|
101
|
-
color: #dd4a68;
|
|
102
|
-
}
|
|
103
|
-
.token.important,
|
|
104
|
-
.token.regex,
|
|
105
|
-
.token.variable {
|
|
106
|
-
color: #e90;
|
|
107
|
-
}
|
|
108
|
-
.token.bold,
|
|
109
|
-
.token.important {
|
|
110
|
-
font-weight: 700;
|
|
111
|
-
}
|
|
112
|
-
.token.italic {
|
|
113
|
-
font-style: italic;
|
|
114
|
-
}
|
|
115
|
-
.token.entity {
|
|
116
|
-
cursor: help;
|
|
117
|
-
}
|
|
118
|
-
pre[data-line] {
|
|
119
|
-
position: relative;
|
|
120
|
-
padding: 1em 0 1em 3em;
|
|
121
|
-
}
|
|
122
|
-
.line-highlight {
|
|
123
|
-
position: absolute;
|
|
124
|
-
left: 0;
|
|
125
|
-
right: 0;
|
|
126
|
-
padding: inherit 0;
|
|
127
|
-
margin-top: 1em;
|
|
128
|
-
background: hsla(24, 20%, 50%, 0.08);
|
|
129
|
-
background: linear-gradient(to right, hsla(24, 20%, 50%, 0.1) 70%, hsla(24, 20%, 50%, 0));
|
|
130
|
-
pointer-events: none;
|
|
131
|
-
line-height: inherit;
|
|
132
|
-
white-space: pre;
|
|
133
|
-
}
|
|
134
|
-
@media print {
|
|
135
|
-
.line-highlight {
|
|
136
|
-
-webkit-print-color-adjust: exact;
|
|
137
|
-
color-adjust: exact;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
.line-highlight:before,
|
|
141
|
-
.line-highlight[data-end]:after {
|
|
142
|
-
content: attr(data-start);
|
|
143
|
-
position: absolute;
|
|
144
|
-
top: 0.4em;
|
|
145
|
-
left: 0.6em;
|
|
146
|
-
min-width: 1em;
|
|
147
|
-
padding: 0 0.5em;
|
|
148
|
-
background-color: hsla(24, 20%, 50%, 0.4);
|
|
149
|
-
color: #f4f1ef;
|
|
150
|
-
font: bold 65%/1.5 sans-serif;
|
|
151
|
-
text-align: center;
|
|
152
|
-
vertical-align: 0.3em;
|
|
153
|
-
border-radius: 999px;
|
|
154
|
-
text-shadow: none;
|
|
155
|
-
box-shadow: 0 1px #fff;
|
|
156
|
-
}
|
|
157
|
-
.line-highlight[data-end]:after {
|
|
158
|
-
content: attr(data-end);
|
|
159
|
-
top: auto;
|
|
160
|
-
bottom: 0.4em;
|
|
161
|
-
}
|
|
162
|
-
.line-numbers .line-highlight:after,
|
|
163
|
-
.line-numbers .line-highlight:before {
|
|
164
|
-
content: none;
|
|
165
|
-
}
|
|
166
|
-
pre[id].linkable-line-numbers span.line-numbers-rows {
|
|
167
|
-
pointer-events: all;
|
|
168
|
-
}
|
|
169
|
-
pre[id].linkable-line-numbers span.line-numbers-rows > span:before {
|
|
170
|
-
cursor: pointer;
|
|
171
|
-
}
|
|
172
|
-
pre[id].linkable-line-numbers span.line-numbers-rows > span:hover:before {
|
|
173
|
-
background-color: rgba(128, 128, 128, 0.2);
|
|
174
|
-
}
|
|
175
|
-
pre[class*='language-'].line-numbers {
|
|
176
|
-
position: relative;
|
|
177
|
-
padding-left: 3.8em;
|
|
178
|
-
counter-reset: linenumber;
|
|
179
|
-
}
|
|
180
|
-
pre[class*='language-'].line-numbers > code {
|
|
181
|
-
position: relative;
|
|
182
|
-
white-space: inherit;
|
|
183
|
-
}
|
|
184
|
-
.line-numbers .line-numbers-rows {
|
|
185
|
-
position: absolute;
|
|
186
|
-
pointer-events: none;
|
|
187
|
-
top: 0;
|
|
188
|
-
font-size: 100%;
|
|
189
|
-
left: -3.8em;
|
|
190
|
-
width: 3em;
|
|
191
|
-
letter-spacing: -1px;
|
|
192
|
-
border-right: 1px solid #999;
|
|
193
|
-
-webkit-user-select: none;
|
|
194
|
-
-moz-user-select: none;
|
|
195
|
-
-ms-user-select: none;
|
|
196
|
-
user-select: none;
|
|
197
|
-
}
|
|
198
|
-
.line-numbers-rows > span {
|
|
199
|
-
display: block;
|
|
200
|
-
counter-increment: linenumber;
|
|
201
|
-
}
|
|
202
|
-
.line-numbers-rows > span:before {
|
|
203
|
-
content: counter(linenumber);
|
|
204
|
-
color: #999;
|
|
205
|
-
display: block;
|
|
206
|
-
padding-right: 0.8em;
|
|
207
|
-
text-align: right;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/* to make jsx look the same as HTML */
|
|
211
|
-
pre[class='language-tsx'] .token.class-name {
|
|
212
|
-
color: #905;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
:root.dark {
|
|
216
|
-
code[class*='language-'],
|
|
217
|
-
pre[class*='language-'] {
|
|
218
|
-
color: #d4d4d4;
|
|
219
|
-
text-shadow: none;
|
|
220
|
-
font-family: Menlo, Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', 'Courier New', monospace;
|
|
221
|
-
direction: ltr;
|
|
222
|
-
text-align: left;
|
|
223
|
-
white-space: pre;
|
|
224
|
-
word-spacing: normal;
|
|
225
|
-
word-break: normal;
|
|
226
|
-
line-height: 1.5;
|
|
227
|
-
-moz-tab-size: 4;
|
|
228
|
-
-o-tab-size: 4;
|
|
229
|
-
tab-size: 4;
|
|
230
|
-
-webkit-hyphens: none;
|
|
231
|
-
-moz-hyphens: none;
|
|
232
|
-
-ms-hyphens: none;
|
|
233
|
-
hyphens: none;
|
|
234
|
-
}
|
|
235
|
-
code[class*='language-'] ::selection,
|
|
236
|
-
code[class*='language-']::selection,
|
|
237
|
-
pre[class*='language-'] ::selection,
|
|
238
|
-
pre[class*='language-']::selection {
|
|
239
|
-
text-shadow: none;
|
|
240
|
-
background: #264f78;
|
|
241
|
-
}
|
|
242
|
-
@media print {
|
|
243
|
-
code[class*='language-'],
|
|
244
|
-
pre[class*='language-'] {
|
|
245
|
-
text-shadow: none;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
pre[class*='language-'] {
|
|
249
|
-
padding: 1em;
|
|
250
|
-
margin: 0.5em 0;
|
|
251
|
-
overflow: auto;
|
|
252
|
-
background: #262626;
|
|
253
|
-
}
|
|
254
|
-
:not(pre) > code[class*='language-'] {
|
|
255
|
-
padding: 0.1em 0.3em;
|
|
256
|
-
border-radius: 0.3em;
|
|
257
|
-
color: #db4c69;
|
|
258
|
-
background: #262626;
|
|
259
|
-
}
|
|
260
|
-
.namespace {
|
|
261
|
-
opacity: 0.7;
|
|
262
|
-
}
|
|
263
|
-
.token.boolean,
|
|
264
|
-
.token.doctype .token.doctype-tag,
|
|
265
|
-
.token.entity,
|
|
266
|
-
.token.important,
|
|
267
|
-
.token.keyword,
|
|
268
|
-
.token.operator.arrow,
|
|
269
|
-
.token.punctuation.interpolation-punctuation,
|
|
270
|
-
.token.tag {
|
|
271
|
-
color: #569cd6;
|
|
272
|
-
}
|
|
273
|
-
.token.atrule .token.url,
|
|
274
|
-
.token.attr-name,
|
|
275
|
-
.token.console,
|
|
276
|
-
.token.constant,
|
|
277
|
-
.token.doctype .token.name,
|
|
278
|
-
.token.exports .token.maybe-class-name,
|
|
279
|
-
.token.imports .token.maybe-class-name,
|
|
280
|
-
.token.interpolation,
|
|
281
|
-
.token.parameter,
|
|
282
|
-
.token.property,
|
|
283
|
-
.token.variable,
|
|
284
|
-
code[class*='language-javascript'],
|
|
285
|
-
code[class*='language-jsx'],
|
|
286
|
-
code[class*='language-tsx'],
|
|
287
|
-
code[class*='language-typescript'],
|
|
288
|
-
pre[class*='language-javascript'],
|
|
289
|
-
pre[class*='language-jsx'],
|
|
290
|
-
pre[class*='language-tsx'],
|
|
291
|
-
pre[class*='language-typescript'] {
|
|
292
|
-
color: #9cdcfe;
|
|
293
|
-
}
|
|
294
|
-
.token.comment,
|
|
295
|
-
.token.prolog {
|
|
296
|
-
color: #6a9955;
|
|
297
|
-
}
|
|
298
|
-
.language-html .language-css .token.punctuation,
|
|
299
|
-
.language-html .language-javascript .token.punctuation,
|
|
300
|
-
.token.atrule .token.url .token.punctuation,
|
|
301
|
-
.token.attr-value .token.punctuation.attr-equals,
|
|
302
|
-
.token.entity,
|
|
303
|
-
.token.operator,
|
|
304
|
-
.token.punctuation,
|
|
305
|
-
code[class*='language-html'],
|
|
306
|
-
pre[class*='language-html'] {
|
|
307
|
-
color: #d4d4d4;
|
|
308
|
-
}
|
|
309
|
-
.token.boolean,
|
|
310
|
-
.token.constant,
|
|
311
|
-
.token.inserted,
|
|
312
|
-
.token.number,
|
|
313
|
-
.token.property,
|
|
314
|
-
.token.symbol,
|
|
315
|
-
.token.tag,
|
|
316
|
-
.token.unit {
|
|
317
|
-
color: #b5cea8;
|
|
318
|
-
}
|
|
319
|
-
.token.atrule,
|
|
320
|
-
.token.attr-name,
|
|
321
|
-
.token.attr-value,
|
|
322
|
-
.token.attr-value .token.punctuation,
|
|
323
|
-
.token.builtin,
|
|
324
|
-
.token.char,
|
|
325
|
-
.token.deleted,
|
|
326
|
-
.token.selector,
|
|
327
|
-
.token.string,
|
|
328
|
-
code[class*='language-css'],
|
|
329
|
-
pre[class*='language-css'] {
|
|
330
|
-
color: #ce9178;
|
|
331
|
-
}
|
|
332
|
-
.language-css .token.string.url {
|
|
333
|
-
text-decoration: underline;
|
|
334
|
-
}
|
|
335
|
-
.token.atrule .token.rule,
|
|
336
|
-
.token.keyword.control-flow,
|
|
337
|
-
.token.keyword.module {
|
|
338
|
-
color: #c586c0;
|
|
339
|
-
}
|
|
340
|
-
.language-regex .token.anchor,
|
|
341
|
-
.token.atrule .token.url .token.function,
|
|
342
|
-
.token.function,
|
|
343
|
-
.token.function .token.maybe-class-name {
|
|
344
|
-
color: #dcdcaa;
|
|
345
|
-
}
|
|
346
|
-
.token.regex {
|
|
347
|
-
color: #d16969;
|
|
348
|
-
}
|
|
349
|
-
.token.italic {
|
|
350
|
-
font-style: italic;
|
|
351
|
-
}
|
|
352
|
-
.token.class-name,
|
|
353
|
-
.token.maybe-class-name,
|
|
354
|
-
.token.namespace {
|
|
355
|
-
color: #4ec9b0;
|
|
356
|
-
}
|
|
357
|
-
.token.escape,
|
|
358
|
-
.token.selector {
|
|
359
|
-
color: #d7ba7d;
|
|
360
|
-
}
|
|
361
|
-
.language-html .token.punctuation,
|
|
362
|
-
.token.cdata,
|
|
363
|
-
.token.tag .token.punctuation {
|
|
364
|
-
color: grey;
|
|
365
|
-
}
|
|
366
|
-
pre[class*='language-'] > code[class*='language-'] {
|
|
367
|
-
position: relative;
|
|
368
|
-
z-index: 1;
|
|
369
|
-
}
|
|
370
|
-
.line-highlight.line-highlight {
|
|
371
|
-
background: #f7ebc6;
|
|
372
|
-
box-shadow: inset 5px 0 0 #f7d87c;
|
|
373
|
-
z-index: 0;
|
|
374
|
-
}
|
|
375
|
-
}
|