valtech-components 2.0.329 → 2.0.331
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/esm2022/lib/components/molecules/code-display/code-display.component.mjs +111 -0
- package/esm2022/lib/components/molecules/code-display/types.mjs +2 -0
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/valtech-components.mjs +107 -2
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/code-display/code-display.component.d.ts +24 -0
- package/lib/components/molecules/code-display/types.d.ts +10 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/src/lib/components/styles/overrides.scss +1 -583
- package/src/lib/components/styles/prism.scss +555 -0
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
code[class*='language-'],
|
|
2
|
+
pre[class*='language-'] {
|
|
3
|
+
width: 100%;
|
|
4
|
+
padding: 16px;
|
|
5
|
+
background: hsl(0, 0%, 100%);
|
|
6
|
+
color: hsl(230, 8%, 24%);
|
|
7
|
+
font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
|
|
8
|
+
direction: ltr;
|
|
9
|
+
text-align: left;
|
|
10
|
+
white-space: pre;
|
|
11
|
+
word-spacing: normal;
|
|
12
|
+
word-break: normal;
|
|
13
|
+
line-height: 1.5;
|
|
14
|
+
-moz-tab-size: 2;
|
|
15
|
+
-o-tab-size: 2;
|
|
16
|
+
tab-size: 2;
|
|
17
|
+
-webkit-hyphens: none;
|
|
18
|
+
-moz-hyphens: none;
|
|
19
|
+
-ms-hyphens: none;
|
|
20
|
+
hyphens: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Selection */
|
|
24
|
+
code[class*='language-']::-moz-selection,
|
|
25
|
+
code[class*='language-'] *::-moz-selection,
|
|
26
|
+
pre[class*='language-'] *::-moz-selection {
|
|
27
|
+
background: hsl(0, 0%, 100%);
|
|
28
|
+
color: inherit;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
code[class*='language-']::selection,
|
|
32
|
+
code[class*='language-'] *::selection,
|
|
33
|
+
pre[class*='language-'] *::selection {
|
|
34
|
+
background: hsl(0, 0%, 100%);
|
|
35
|
+
color: inherit;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Code blocks */
|
|
39
|
+
pre[class*='language-'] {
|
|
40
|
+
padding: 1em;
|
|
41
|
+
margin: 0.5em 0;
|
|
42
|
+
overflow: auto;
|
|
43
|
+
border-radius: 0.3em;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Inline code */
|
|
47
|
+
:not(pre) > code[class*='language-'] {
|
|
48
|
+
padding: 0.2em 0.3em;
|
|
49
|
+
border-radius: 0.3em;
|
|
50
|
+
white-space: normal;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.token.comment,
|
|
54
|
+
.token.prolog,
|
|
55
|
+
.token.cdata {
|
|
56
|
+
color: hsl(230, 4%, 64%);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.token.doctype,
|
|
60
|
+
.token.punctuation,
|
|
61
|
+
.token.entity {
|
|
62
|
+
color: hsl(230, 8%, 24%);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.token.attr-name,
|
|
66
|
+
.token.class-name,
|
|
67
|
+
.token.boolean,
|
|
68
|
+
.token.constant,
|
|
69
|
+
.token.number,
|
|
70
|
+
.token.atrule {
|
|
71
|
+
color: ff345e;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.token.keyword {
|
|
75
|
+
color: hsl(301, 63%, 40%);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.token.property,
|
|
79
|
+
.token.tag,
|
|
80
|
+
.token.symbol,
|
|
81
|
+
.token.deleted,
|
|
82
|
+
.token.important {
|
|
83
|
+
color: hsl(5, 74%, 59%);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.token.selector,
|
|
87
|
+
.token.string,
|
|
88
|
+
.token.char,
|
|
89
|
+
.token.builtin,
|
|
90
|
+
.token.inserted,
|
|
91
|
+
.token.regex,
|
|
92
|
+
.token.attr-value,
|
|
93
|
+
.token.attr-value > .token.punctuation {
|
|
94
|
+
color: hsl(119, 34%, 47%);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.token.variable,
|
|
98
|
+
.token.operator,
|
|
99
|
+
.token.function {
|
|
100
|
+
color: hsl(221, 87%, 60%);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.token.url {
|
|
104
|
+
color: hsl(198, 99%, 37%);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* HTML overrides */
|
|
108
|
+
.token.attr-value > .token.punctuation.attr-equals,
|
|
109
|
+
.token.special-attr > .token.attr-value > .token.value.css {
|
|
110
|
+
color: hsl(230, 8%, 24%);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* CSS overrides */
|
|
114
|
+
.language-css .token.selector {
|
|
115
|
+
color: hsl(5, 74%, 59%);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.language-css .token.property {
|
|
119
|
+
color: hsl(230, 8%, 24%);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.language-css .token.function,
|
|
123
|
+
.language-css .token.url > .token.function {
|
|
124
|
+
color: hsl(198, 99%, 37%);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.language-css .token.url > .token.string.url {
|
|
128
|
+
color: hsl(119, 34%, 47%);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.language-css .token.important,
|
|
132
|
+
.language-css .token.atrule .token.rule {
|
|
133
|
+
color: hsl(301, 63%, 40%);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* JS overrides */
|
|
137
|
+
.language-javascript .token.operator {
|
|
138
|
+
color: hsl(301, 63%, 40%);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.language-javascript
|
|
142
|
+
.token.template-string
|
|
143
|
+
> .token.interpolation
|
|
144
|
+
> .token.interpolation-punctuation.punctuation {
|
|
145
|
+
color: hsl(344, 84%, 43%);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* JSON overrides */
|
|
149
|
+
.language-json .token.operator {
|
|
150
|
+
color: hsl(230, 8%, 24%);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.language-json .token.null.keyword {
|
|
154
|
+
color: hsl(35, 99%, 36%);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* MD overrides */
|
|
158
|
+
.language-markdown .token.url,
|
|
159
|
+
.language-markdown .token.url > .token.operator,
|
|
160
|
+
.language-markdown .token.url-reference.url > .token.string {
|
|
161
|
+
color: hsl(230, 8%, 24%);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.language-markdown .token.url > .token.content {
|
|
165
|
+
color: hsl(221, 87%, 60%);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.language-markdown .token.url > .token.url,
|
|
169
|
+
.language-markdown .token.url-reference.url {
|
|
170
|
+
color: hsl(198, 99%, 37%);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.language-markdown .token.blockquote.punctuation,
|
|
174
|
+
.language-markdown .token.hr.punctuation {
|
|
175
|
+
color: hsl(230, 4%, 64%);
|
|
176
|
+
font-style: italic;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.language-markdown .token.code-snippet {
|
|
180
|
+
color: hsl(119, 34%, 47%);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.language-markdown .token.bold .token.content {
|
|
184
|
+
color: hsl(35, 99%, 36%);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.language-markdown .token.italic .token.content {
|
|
188
|
+
color: hsl(301, 63%, 40%);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.language-markdown .token.strike .token.content,
|
|
192
|
+
.language-markdown .token.strike .token.punctuation,
|
|
193
|
+
.language-markdown .token.list.punctuation,
|
|
194
|
+
.language-markdown .token.title.important > .token.punctuation {
|
|
195
|
+
color: hsl(5, 74%, 59%);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* General */
|
|
199
|
+
.token.bold {
|
|
200
|
+
font-weight: bold;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.token.comment,
|
|
204
|
+
.token.italic {
|
|
205
|
+
font-style: italic;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.token.entity {
|
|
209
|
+
cursor: help;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.token.namespace {
|
|
213
|
+
opacity: 0.8;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* Plugin overrides */
|
|
217
|
+
/* Selectors should have higher specificity than those in the plugins' default stylesheets */
|
|
218
|
+
|
|
219
|
+
/* Show Invisibles plugin overrides */
|
|
220
|
+
.token.token.tab:not(:empty):before,
|
|
221
|
+
.token.token.cr:before,
|
|
222
|
+
.token.token.lf:before,
|
|
223
|
+
.token.token.space:before {
|
|
224
|
+
color: hsla(230, 8%, 24%, 0.2);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* Toolbar plugin overrides */
|
|
228
|
+
/* Space out all buttons and move them away from the right edge of the code block */
|
|
229
|
+
div.code-toolbar > .toolbar.toolbar > .toolbar-item {
|
|
230
|
+
margin-right: 0.4em;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* Styling the buttons */
|
|
234
|
+
div.code-toolbar > .toolbar.toolbar > .toolbar-item > button,
|
|
235
|
+
div.code-toolbar > .toolbar.toolbar > .toolbar-item > a,
|
|
236
|
+
div.code-toolbar > .toolbar.toolbar > .toolbar-item > span {
|
|
237
|
+
background: hsl(230, 1%, 90%);
|
|
238
|
+
color: hsl(230, 6%, 44%);
|
|
239
|
+
padding: 0.1em 0.4em;
|
|
240
|
+
border-radius: 0.3em;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover,
|
|
244
|
+
div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus,
|
|
245
|
+
div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover,
|
|
246
|
+
div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus,
|
|
247
|
+
div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover,
|
|
248
|
+
div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus {
|
|
249
|
+
background: hsl(230, 1%, 78%); /* custom: darken(--syntax-bg, 20%) */
|
|
250
|
+
color: hsl(230, 8%, 24%);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* Line Highlight plugin overrides */
|
|
254
|
+
/* The highlighted line itself */
|
|
255
|
+
.line-highlight.line-highlight {
|
|
256
|
+
background: hsla(230, 8%, 24%, 0.05);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* Default line numbers in Line Highlight plugin */
|
|
260
|
+
.line-highlight.line-highlight:before,
|
|
261
|
+
.line-highlight.line-highlight[data-end]:after {
|
|
262
|
+
background: hsl(230, 1%, 90%);
|
|
263
|
+
color: hsl(230, 8%, 24%);
|
|
264
|
+
padding: 0.1em 0.6em;
|
|
265
|
+
border-radius: 0.3em;
|
|
266
|
+
box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2); /* same as Toolbar plugin default */
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* Hovering over a linkable line number (in the gutter area) */
|
|
270
|
+
/* Requires Line Numbers plugin as well */
|
|
271
|
+
pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before {
|
|
272
|
+
background-color: hsla(230, 8%, 24%, 0.05);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/* Line Numbers and Command Line plugins overrides */
|
|
276
|
+
/* Line separating gutter from coding area */
|
|
277
|
+
.line-numbers.line-numbers .line-numbers-rows,
|
|
278
|
+
.command-line .command-line-prompt {
|
|
279
|
+
border-right-color: hsla(230, 8%, 24%, 0.2);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/* Stuff in the gutter */
|
|
283
|
+
.line-numbers .line-numbers-rows > span:before,
|
|
284
|
+
.command-line .command-line-prompt > span:before {
|
|
285
|
+
color: hsl(230, 1%, 62%);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* Match Braces plugin overrides */
|
|
289
|
+
/* Note: Outline colour is inherited from the braces */
|
|
290
|
+
.rainbow-braces .token.token.punctuation.brace-level-1,
|
|
291
|
+
.rainbow-braces .token.token.punctuation.brace-level-5,
|
|
292
|
+
.rainbow-braces .token.token.punctuation.brace-level-9 {
|
|
293
|
+
color: hsl(5, 74%, 59%);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.rainbow-braces .token.token.punctuation.brace-level-2,
|
|
297
|
+
.rainbow-braces .token.token.punctuation.brace-level-6,
|
|
298
|
+
.rainbow-braces .token.token.punctuation.brace-level-10 {
|
|
299
|
+
color: hsl(119, 34%, 47%);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.rainbow-braces .token.token.punctuation.brace-level-3,
|
|
303
|
+
.rainbow-braces .token.token.punctuation.brace-level-7,
|
|
304
|
+
.rainbow-braces .token.token.punctuation.brace-level-11 {
|
|
305
|
+
color: hsl(221, 87%, 60%);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.rainbow-braces .token.token.punctuation.brace-level-4,
|
|
309
|
+
.rainbow-braces .token.token.punctuation.brace-level-8,
|
|
310
|
+
.rainbow-braces .token.token.punctuation.brace-level-12 {
|
|
311
|
+
color: hsl(301, 63%, 40%);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* Diff Highlight plugin overrides */
|
|
315
|
+
/* Taken from https://github.com/atom/github/blob/master/styles/variables.less */
|
|
316
|
+
pre.diff-highlight > code .token.token.deleted:not(.prefix),
|
|
317
|
+
pre > code.diff-highlight .token.token.deleted:not(.prefix) {
|
|
318
|
+
background-color: hsla(353, 100%, 66%, 0.15);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection,
|
|
322
|
+
pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection,
|
|
323
|
+
pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,
|
|
324
|
+
pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection {
|
|
325
|
+
background-color: hsla(353, 95%, 66%, 0.25);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection,
|
|
329
|
+
pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection,
|
|
330
|
+
pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection,
|
|
331
|
+
pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection {
|
|
332
|
+
background-color: hsla(353, 95%, 66%, 0.25);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
pre.diff-highlight > code .token.token.inserted:not(.prefix),
|
|
336
|
+
pre > code.diff-highlight .token.token.inserted:not(.prefix) {
|
|
337
|
+
background-color: hsla(137, 100%, 55%, 0.15);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection,
|
|
341
|
+
pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection,
|
|
342
|
+
pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,
|
|
343
|
+
pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection {
|
|
344
|
+
background-color: hsla(135, 73%, 55%, 0.25);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection,
|
|
348
|
+
pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection,
|
|
349
|
+
pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection,
|
|
350
|
+
pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection {
|
|
351
|
+
background-color: hsla(135, 73%, 55%, 0.25);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/* Previewers plugin overrides */
|
|
355
|
+
/* Based on https://github.com/atom-community/atom-ide-datatip/blob/master/styles/atom-ide-datatips.less and https://github.com/atom/atom/blob/master/packages/one-light-ui */
|
|
356
|
+
/* Border around popup */
|
|
357
|
+
.prism-previewer.prism-previewer:before,
|
|
358
|
+
.prism-previewer-gradient.prism-previewer-gradient div {
|
|
359
|
+
border-color: hsl(0, 0, 95%);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/* Angle and time should remain as circles and are hence not included */
|
|
363
|
+
.prism-previewer-color.prism-previewer-color:before,
|
|
364
|
+
.prism-previewer-gradient.prism-previewer-gradient div,
|
|
365
|
+
.prism-previewer-easing.prism-previewer-easing:before {
|
|
366
|
+
border-radius: 0.3em;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/* Triangles pointing to the code */
|
|
370
|
+
.prism-previewer.prism-previewer:after {
|
|
371
|
+
border-top-color: hsl(0, 0, 95%);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.prism-previewer-flipped.prism-previewer-flipped.after {
|
|
375
|
+
border-bottom-color: hsl(0, 0, 95%);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/* Background colour within the popup */
|
|
379
|
+
.prism-previewer-angle.prism-previewer-angle:before,
|
|
380
|
+
.prism-previewer-time.prism-previewer-time:before,
|
|
381
|
+
.prism-previewer-easing.prism-previewer-easing {
|
|
382
|
+
background: hsl(0, 0%, 100%);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/* For angle, this is the positive area (eg. 90deg will display one quadrant in this colour) */
|
|
386
|
+
/* For time, this is the alternate colour */
|
|
387
|
+
.prism-previewer-angle.prism-previewer-angle circle,
|
|
388
|
+
.prism-previewer-time.prism-previewer-time circle {
|
|
389
|
+
stroke: hsl(230, 8%, 24%);
|
|
390
|
+
stroke-opacity: 1;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/* Stroke colours of the handle, direction point, and vector itself */
|
|
394
|
+
.prism-previewer-easing.prism-previewer-easing circle,
|
|
395
|
+
.prism-previewer-easing.prism-previewer-easing path,
|
|
396
|
+
.prism-previewer-easing.prism-previewer-easing line {
|
|
397
|
+
stroke: hsl(230, 8%, 24%);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/* Fill colour of the handle */
|
|
401
|
+
.prism-previewer-easing.prism-previewer-easing circle {
|
|
402
|
+
fill: transparent;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
// dark media query
|
|
406
|
+
@media (prefers-color-scheme: dark) {
|
|
407
|
+
/**
|
|
408
|
+
* GitHub Dark theme for Prism.js
|
|
409
|
+
* Based on GitHub: https://github.com
|
|
410
|
+
* @author Katorly
|
|
411
|
+
* Modified: Brighter text for better readability
|
|
412
|
+
*/
|
|
413
|
+
/* General */
|
|
414
|
+
pre[class*='language-'],
|
|
415
|
+
code[class*='language-'] {
|
|
416
|
+
background: #161b22;
|
|
417
|
+
color: #f0f6fc !important; /* Cambiado de #c9d1d9 a un color más claro con !important */
|
|
418
|
+
text-shadow: none;
|
|
419
|
+
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
420
|
+
direction: ltr;
|
|
421
|
+
text-align: left;
|
|
422
|
+
white-space: pre;
|
|
423
|
+
word-spacing: normal;
|
|
424
|
+
word-break: normal;
|
|
425
|
+
line-height: 1.5;
|
|
426
|
+
-moz-tab-size: 4;
|
|
427
|
+
-o-tab-size: 4;
|
|
428
|
+
tab-size: 4;
|
|
429
|
+
-webkit-hyphens: none;
|
|
430
|
+
-moz-hyphens: none;
|
|
431
|
+
-ms-hyphens: none;
|
|
432
|
+
hyphens: none;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/* Asegurar que el texto no tokenizado use el color correcto */
|
|
436
|
+
pre[class*='language-'] > code[class*='language-'],
|
|
437
|
+
pre[class*='language-'] code[class*='language-'] {
|
|
438
|
+
color: #f0f6fc !important;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/* Para el texto directo dentro del pre */
|
|
442
|
+
pre[class*='language-'] {
|
|
443
|
+
color: #f0f6fc !important;
|
|
444
|
+
}
|
|
445
|
+
pre[class*='language-']::selection,
|
|
446
|
+
code[class*='language-']::selection,
|
|
447
|
+
pre[class*='language-']::mozselection,
|
|
448
|
+
code[class*='language-']::mozselection {
|
|
449
|
+
text-shadow: none;
|
|
450
|
+
background: #234879;
|
|
451
|
+
}
|
|
452
|
+
@media print {
|
|
453
|
+
pre[class*='language-'],
|
|
454
|
+
code[class*='language-'] {
|
|
455
|
+
text-shadow: none;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
pre[class*='language-'] {
|
|
459
|
+
padding: 1em;
|
|
460
|
+
margin: 0.5em 0;
|
|
461
|
+
overflow: auto;
|
|
462
|
+
background: #161b22;
|
|
463
|
+
}
|
|
464
|
+
:not(pre) > code[class*='language-'] {
|
|
465
|
+
padding: 0.1em 0.3em;
|
|
466
|
+
border-radius: 0.3em;
|
|
467
|
+
color: #f0f6fc !important; /* También actualizado aquí con !important */
|
|
468
|
+
background: #343942;
|
|
469
|
+
}
|
|
470
|
+
/* Line highlighting */
|
|
471
|
+
pre[data-line] {
|
|
472
|
+
position: relative;
|
|
473
|
+
}
|
|
474
|
+
pre[class*='language-'] > code[class*='language-'] {
|
|
475
|
+
position: relative;
|
|
476
|
+
z-index: 1;
|
|
477
|
+
}
|
|
478
|
+
.line-highlight {
|
|
479
|
+
position: absolute;
|
|
480
|
+
left: 0;
|
|
481
|
+
right: 0;
|
|
482
|
+
padding: inherit 0;
|
|
483
|
+
margin-top: 1em;
|
|
484
|
+
background: #2f2a1e;
|
|
485
|
+
box-shadow: inset 5px 0 0 #674c16;
|
|
486
|
+
z-index: 0;
|
|
487
|
+
pointer-events: none;
|
|
488
|
+
line-height: inherit;
|
|
489
|
+
white-space: pre;
|
|
490
|
+
}
|
|
491
|
+
/* Tokens */
|
|
492
|
+
.namespace {
|
|
493
|
+
opacity: 0.7;
|
|
494
|
+
}
|
|
495
|
+
.token.comment,
|
|
496
|
+
.token.prolog,
|
|
497
|
+
.token.doctype,
|
|
498
|
+
.token.cdata {
|
|
499
|
+
color: #8b949e;
|
|
500
|
+
}
|
|
501
|
+
.token.punctuation {
|
|
502
|
+
color: #f0f6fc !important; /* También actualizado para consistencia con !important */
|
|
503
|
+
}
|
|
504
|
+
.token.property,
|
|
505
|
+
.token.tag,
|
|
506
|
+
.token.boolean,
|
|
507
|
+
.token.number,
|
|
508
|
+
.token.constant,
|
|
509
|
+
.token.symbol,
|
|
510
|
+
.token.deleted {
|
|
511
|
+
color: #79c0ff;
|
|
512
|
+
}
|
|
513
|
+
.token.selector,
|
|
514
|
+
.token.attr-name,
|
|
515
|
+
.token.string,
|
|
516
|
+
.token.char,
|
|
517
|
+
.token.builtin,
|
|
518
|
+
.token.inserted {
|
|
519
|
+
color: #a5d6ff;
|
|
520
|
+
}
|
|
521
|
+
.token.operator,
|
|
522
|
+
.token.entity,
|
|
523
|
+
.token.url,
|
|
524
|
+
.language-css .token.string,
|
|
525
|
+
.style .token.string {
|
|
526
|
+
color: #a5d6ff;
|
|
527
|
+
background: #161b22;
|
|
528
|
+
}
|
|
529
|
+
.token.atrule,
|
|
530
|
+
.token.attr-value,
|
|
531
|
+
.token.keyword {
|
|
532
|
+
color: #a5d6ff;
|
|
533
|
+
}
|
|
534
|
+
.token.function {
|
|
535
|
+
color: #d2a8ff;
|
|
536
|
+
}
|
|
537
|
+
.token.regex,
|
|
538
|
+
.token.important,
|
|
539
|
+
.token.variable {
|
|
540
|
+
color: #a8daff;
|
|
541
|
+
}
|
|
542
|
+
.token.important,
|
|
543
|
+
.token.bold {
|
|
544
|
+
font-weight: bold;
|
|
545
|
+
}
|
|
546
|
+
.token.italic {
|
|
547
|
+
font-style: italic;
|
|
548
|
+
}
|
|
549
|
+
.token.entity {
|
|
550
|
+
cursor: help;
|
|
551
|
+
}
|
|
552
|
+
.language-css .token.property {
|
|
553
|
+
color: hsl(247.26deg 100% 73.44%);
|
|
554
|
+
}
|
|
555
|
+
}
|