valtech-components 2.0.330 → 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.
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0ZWNoLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL21vbGVjdWxlcy9jb2RlLWRpc3BsYXkvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIENvZGVUYWIgPSB7XG4gIGxhYmVsOiBzdHJpbmc7XG4gIGNvZGU6IHN0cmluZztcbiAgbGFuZ3VhZ2U6IHN0cmluZztcbn07XG5cbmV4cG9ydCB0eXBlIENvZGVEaXNwbGF5TWV0YWRhdGEgPSB7XG4gIGNvZGU6IHN0cmluZztcbiAgbGFuZ3VhZ2U6IHN0cmluZztcbiAgdGFiczogQ29kZVRhYltdO1xufTtcbiJdfQ==
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0ZWNoLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL21vbGVjdWxlcy9jb2RlLWRpc3BsYXkvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIENvZGVUYWIgPSB7XG4gIGxhYmVsOiBzdHJpbmc7XG4gIGNvZGU6IHN0cmluZztcbiAgbGFuZ3VhZ2U6IHN0cmluZztcbn07XG5cbmV4cG9ydCB0eXBlIENvZGVEaXNwbGF5TWV0YWRhdGEgPSB7XG4gIGNvZGU/OiBzdHJpbmc7XG4gIGxhbmd1YWdlPzogc3RyaW5nO1xuICB0YWJzPzogQ29kZVRhYltdO1xufTtcbiJdfQ==
@@ -4,7 +4,7 @@ export type CodeTab = {
4
4
  language: string;
5
5
  };
6
6
  export type CodeDisplayMetadata = {
7
- code: string;
8
- language: string;
9
- tabs: CodeTab[];
7
+ code?: string;
8
+ language?: string;
9
+ tabs?: CodeTab[];
10
10
  };
@@ -31,7 +31,7 @@ export declare class ArticleComponent implements OnInit {
31
31
  getVideoElement(element: ArticleElement): ArticleVideoElement;
32
32
  getCustomElement(element: ArticleElement): ArticleCustomElement;
33
33
  getQuoteTextProps(element: ArticleElement): {
34
- size: "medium" | "small" | "large" | "xlarge";
34
+ size: "small" | "medium" | "large" | "xlarge";
35
35
  color: import("@ionic/core").Color;
36
36
  content?: string;
37
37
  bold: boolean;
@@ -44,7 +44,7 @@ export declare class ArticleComponent implements OnInit {
44
44
  allowPartialBold?: boolean;
45
45
  };
46
46
  getHighlightTextProps(element: ArticleElement): {
47
- size: "medium" | "small" | "large" | "xlarge";
47
+ size: "small" | "medium" | "large" | "xlarge";
48
48
  color: import("@ionic/core").Color;
49
49
  content?: string;
50
50
  bold: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.330",
3
+ "version": "2.0.331",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.0",
6
6
  "@angular/core": "^18.0.0",
@@ -1,6 +1,7 @@
1
1
  @import './variables.scss';
2
2
  @import './functions.scss';
3
3
  @import './mixins.scss';
4
+ @import './prism.scss';
4
5
 
5
6
  /** core **/
6
7
 
@@ -237,586 +238,3 @@ ion-modal.modal-sheet ion-header ion-toolbar:last-of-type {
237
238
  color: var(--ion-color-primary-shade, #0bb8cc);
238
239
  }
239
240
  }
240
-
241
- /**
242
- * One Light theme for prism.js
243
- * Based on Atom's One Light theme: https://github.com/atom/atom/tree/master/packages/one-light-syntax
244
- */
245
-
246
- /**
247
- * One Light colours (accurate as of commit eb064bf on 19 Feb 2021)
248
- * From colors.less
249
- * --mono-1: hsl(230, 8%, 24%);
250
- * --mono-2: hsl(230, 6%, 44%);
251
- * --mono-3: hsl(230, 4%, 64%)
252
- * --hue-1: hsl(198, 99%, 37%);
253
- * --hue-2: hsl(221, 87%, 60%);
254
- * --hue-3: hsl(301, 63%, 40%);
255
- * --hue-4: hsl(119, 34%, 47%);
256
- * --hue-5: hsl(5, 74%, 59%);
257
- * --hue-5-2: hsl(344, 84%, 43%);
258
- * --hue-6: hsl(35, 99%, 36%);
259
- * --hue-6-2: hsl(35, 99%, 40%);
260
- * --syntax-fg: hsl(230, 8%, 24%);
261
- * --syntax-bg: hsl(230, 1%, 98%);
262
- * --syntax-gutter: hsl(230, 1%, 62%);
263
- * --syntax-guide: hsla(230, 8%, 24%, 0.2);
264
- * --syntax-accent: hsl(230, 100%, 66%);
265
- * From syntax-variables.less
266
- * --syntax-selection-color: hsl(230, 1%, 90%);
267
- * --syntax-gutter-background-color-selected: hsl(230, 1%, 90%);
268
- * --syntax-cursor-line: hsla(230, 8%, 24%, 0.05);
269
- */
270
-
271
- code[class*='language-'],
272
- pre[class*='language-'] {
273
- width: 100%;
274
- padding: 16px;
275
- background: hsl(0, 0%, 100%);
276
- color: hsl(230, 8%, 24%);
277
- font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
278
- direction: ltr;
279
- text-align: left;
280
- white-space: pre;
281
- word-spacing: normal;
282
- word-break: normal;
283
- line-height: 1.5;
284
- -moz-tab-size: 2;
285
- -o-tab-size: 2;
286
- tab-size: 2;
287
- -webkit-hyphens: none;
288
- -moz-hyphens: none;
289
- -ms-hyphens: none;
290
- hyphens: none;
291
- }
292
-
293
- /* Selection */
294
- code[class*='language-']::-moz-selection,
295
- code[class*='language-'] *::-moz-selection,
296
- pre[class*='language-'] *::-moz-selection {
297
- background: hsl(0, 0%, 100%);
298
- color: inherit;
299
- }
300
-
301
- code[class*='language-']::selection,
302
- code[class*='language-'] *::selection,
303
- pre[class*='language-'] *::selection {
304
- background: hsl(0, 0%, 100%);
305
- color: inherit;
306
- }
307
-
308
- /* Code blocks */
309
- pre[class*='language-'] {
310
- padding: 1em;
311
- margin: 0.5em 0;
312
- overflow: auto;
313
- border-radius: 0.3em;
314
- }
315
-
316
- /* Inline code */
317
- :not(pre) > code[class*='language-'] {
318
- padding: 0.2em 0.3em;
319
- border-radius: 0.3em;
320
- white-space: normal;
321
- }
322
-
323
- .token.comment,
324
- .token.prolog,
325
- .token.cdata {
326
- color: hsl(230, 4%, 64%);
327
- }
328
-
329
- .token.doctype,
330
- .token.punctuation,
331
- .token.entity {
332
- color: hsl(230, 8%, 24%);
333
- }
334
-
335
- .token.attr-name,
336
- .token.class-name,
337
- .token.boolean,
338
- .token.constant,
339
- .token.number,
340
- .token.atrule {
341
- color: ff345e;
342
- }
343
-
344
- .token.keyword {
345
- color: hsl(301, 63%, 40%);
346
- }
347
-
348
- .token.property,
349
- .token.tag,
350
- .token.symbol,
351
- .token.deleted,
352
- .token.important {
353
- color: hsl(5, 74%, 59%);
354
- }
355
-
356
- .token.selector,
357
- .token.string,
358
- .token.char,
359
- .token.builtin,
360
- .token.inserted,
361
- .token.regex,
362
- .token.attr-value,
363
- .token.attr-value > .token.punctuation {
364
- color: hsl(119, 34%, 47%);
365
- }
366
-
367
- .token.variable,
368
- .token.operator,
369
- .token.function {
370
- color: hsl(221, 87%, 60%);
371
- }
372
-
373
- .token.url {
374
- color: hsl(198, 99%, 37%);
375
- }
376
-
377
- /* HTML overrides */
378
- .token.attr-value > .token.punctuation.attr-equals,
379
- .token.special-attr > .token.attr-value > .token.value.css {
380
- color: hsl(230, 8%, 24%);
381
- }
382
-
383
- /* CSS overrides */
384
- .language-css .token.selector {
385
- color: hsl(5, 74%, 59%);
386
- }
387
-
388
- .language-css .token.property {
389
- color: hsl(230, 8%, 24%);
390
- }
391
-
392
- .language-css .token.function,
393
- .language-css .token.url > .token.function {
394
- color: hsl(198, 99%, 37%);
395
- }
396
-
397
- .language-css .token.url > .token.string.url {
398
- color: hsl(119, 34%, 47%);
399
- }
400
-
401
- .language-css .token.important,
402
- .language-css .token.atrule .token.rule {
403
- color: hsl(301, 63%, 40%);
404
- }
405
-
406
- /* JS overrides */
407
- .language-javascript .token.operator {
408
- color: hsl(301, 63%, 40%);
409
- }
410
-
411
- .language-javascript
412
- .token.template-string
413
- > .token.interpolation
414
- > .token.interpolation-punctuation.punctuation {
415
- color: hsl(344, 84%, 43%);
416
- }
417
-
418
- /* JSON overrides */
419
- .language-json .token.operator {
420
- color: hsl(230, 8%, 24%);
421
- }
422
-
423
- .language-json .token.null.keyword {
424
- color: hsl(35, 99%, 36%);
425
- }
426
-
427
- /* MD overrides */
428
- .language-markdown .token.url,
429
- .language-markdown .token.url > .token.operator,
430
- .language-markdown .token.url-reference.url > .token.string {
431
- color: hsl(230, 8%, 24%);
432
- }
433
-
434
- .language-markdown .token.url > .token.content {
435
- color: hsl(221, 87%, 60%);
436
- }
437
-
438
- .language-markdown .token.url > .token.url,
439
- .language-markdown .token.url-reference.url {
440
- color: hsl(198, 99%, 37%);
441
- }
442
-
443
- .language-markdown .token.blockquote.punctuation,
444
- .language-markdown .token.hr.punctuation {
445
- color: hsl(230, 4%, 64%);
446
- font-style: italic;
447
- }
448
-
449
- .language-markdown .token.code-snippet {
450
- color: hsl(119, 34%, 47%);
451
- }
452
-
453
- .language-markdown .token.bold .token.content {
454
- color: hsl(35, 99%, 36%);
455
- }
456
-
457
- .language-markdown .token.italic .token.content {
458
- color: hsl(301, 63%, 40%);
459
- }
460
-
461
- .language-markdown .token.strike .token.content,
462
- .language-markdown .token.strike .token.punctuation,
463
- .language-markdown .token.list.punctuation,
464
- .language-markdown .token.title.important > .token.punctuation {
465
- color: hsl(5, 74%, 59%);
466
- }
467
-
468
- /* General */
469
- .token.bold {
470
- font-weight: bold;
471
- }
472
-
473
- .token.comment,
474
- .token.italic {
475
- font-style: italic;
476
- }
477
-
478
- .token.entity {
479
- cursor: help;
480
- }
481
-
482
- .token.namespace {
483
- opacity: 0.8;
484
- }
485
-
486
- /* Plugin overrides */
487
- /* Selectors should have higher specificity than those in the plugins' default stylesheets */
488
-
489
- /* Show Invisibles plugin overrides */
490
- .token.token.tab:not(:empty):before,
491
- .token.token.cr:before,
492
- .token.token.lf:before,
493
- .token.token.space:before {
494
- color: hsla(230, 8%, 24%, 0.2);
495
- }
496
-
497
- /* Toolbar plugin overrides */
498
- /* Space out all buttons and move them away from the right edge of the code block */
499
- div.code-toolbar > .toolbar.toolbar > .toolbar-item {
500
- margin-right: 0.4em;
501
- }
502
-
503
- /* Styling the buttons */
504
- div.code-toolbar > .toolbar.toolbar > .toolbar-item > button,
505
- div.code-toolbar > .toolbar.toolbar > .toolbar-item > a,
506
- div.code-toolbar > .toolbar.toolbar > .toolbar-item > span {
507
- background: hsl(230, 1%, 90%);
508
- color: hsl(230, 6%, 44%);
509
- padding: 0.1em 0.4em;
510
- border-radius: 0.3em;
511
- }
512
-
513
- div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover,
514
- div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus,
515
- div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover,
516
- div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus,
517
- div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover,
518
- div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus {
519
- background: hsl(230, 1%, 78%); /* custom: darken(--syntax-bg, 20%) */
520
- color: hsl(230, 8%, 24%);
521
- }
522
-
523
- /* Line Highlight plugin overrides */
524
- /* The highlighted line itself */
525
- .line-highlight.line-highlight {
526
- background: hsla(230, 8%, 24%, 0.05);
527
- }
528
-
529
- /* Default line numbers in Line Highlight plugin */
530
- .line-highlight.line-highlight:before,
531
- .line-highlight.line-highlight[data-end]:after {
532
- background: hsl(230, 1%, 90%);
533
- color: hsl(230, 8%, 24%);
534
- padding: 0.1em 0.6em;
535
- border-radius: 0.3em;
536
- box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2); /* same as Toolbar plugin default */
537
- }
538
-
539
- /* Hovering over a linkable line number (in the gutter area) */
540
- /* Requires Line Numbers plugin as well */
541
- pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before {
542
- background-color: hsla(230, 8%, 24%, 0.05);
543
- }
544
-
545
- /* Line Numbers and Command Line plugins overrides */
546
- /* Line separating gutter from coding area */
547
- .line-numbers.line-numbers .line-numbers-rows,
548
- .command-line .command-line-prompt {
549
- border-right-color: hsla(230, 8%, 24%, 0.2);
550
- }
551
-
552
- /* Stuff in the gutter */
553
- .line-numbers .line-numbers-rows > span:before,
554
- .command-line .command-line-prompt > span:before {
555
- color: hsl(230, 1%, 62%);
556
- }
557
-
558
- /* Match Braces plugin overrides */
559
- /* Note: Outline colour is inherited from the braces */
560
- .rainbow-braces .token.token.punctuation.brace-level-1,
561
- .rainbow-braces .token.token.punctuation.brace-level-5,
562
- .rainbow-braces .token.token.punctuation.brace-level-9 {
563
- color: hsl(5, 74%, 59%);
564
- }
565
-
566
- .rainbow-braces .token.token.punctuation.brace-level-2,
567
- .rainbow-braces .token.token.punctuation.brace-level-6,
568
- .rainbow-braces .token.token.punctuation.brace-level-10 {
569
- color: hsl(119, 34%, 47%);
570
- }
571
-
572
- .rainbow-braces .token.token.punctuation.brace-level-3,
573
- .rainbow-braces .token.token.punctuation.brace-level-7,
574
- .rainbow-braces .token.token.punctuation.brace-level-11 {
575
- color: hsl(221, 87%, 60%);
576
- }
577
-
578
- .rainbow-braces .token.token.punctuation.brace-level-4,
579
- .rainbow-braces .token.token.punctuation.brace-level-8,
580
- .rainbow-braces .token.token.punctuation.brace-level-12 {
581
- color: hsl(301, 63%, 40%);
582
- }
583
-
584
- /* Diff Highlight plugin overrides */
585
- /* Taken from https://github.com/atom/github/blob/master/styles/variables.less */
586
- pre.diff-highlight > code .token.token.deleted:not(.prefix),
587
- pre > code.diff-highlight .token.token.deleted:not(.prefix) {
588
- background-color: hsla(353, 100%, 66%, 0.15);
589
- }
590
-
591
- pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection,
592
- pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection,
593
- pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,
594
- pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection {
595
- background-color: hsla(353, 95%, 66%, 0.25);
596
- }
597
-
598
- pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection,
599
- pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection,
600
- pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection,
601
- pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection {
602
- background-color: hsla(353, 95%, 66%, 0.25);
603
- }
604
-
605
- pre.diff-highlight > code .token.token.inserted:not(.prefix),
606
- pre > code.diff-highlight .token.token.inserted:not(.prefix) {
607
- background-color: hsla(137, 100%, 55%, 0.15);
608
- }
609
-
610
- pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection,
611
- pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection,
612
- pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,
613
- pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection {
614
- background-color: hsla(135, 73%, 55%, 0.25);
615
- }
616
-
617
- pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection,
618
- pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection,
619
- pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection,
620
- pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection {
621
- background-color: hsla(135, 73%, 55%, 0.25);
622
- }
623
-
624
- /* Previewers plugin overrides */
625
- /* 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 */
626
- /* Border around popup */
627
- .prism-previewer.prism-previewer:before,
628
- .prism-previewer-gradient.prism-previewer-gradient div {
629
- border-color: hsl(0, 0, 95%);
630
- }
631
-
632
- /* Angle and time should remain as circles and are hence not included */
633
- .prism-previewer-color.prism-previewer-color:before,
634
- .prism-previewer-gradient.prism-previewer-gradient div,
635
- .prism-previewer-easing.prism-previewer-easing:before {
636
- border-radius: 0.3em;
637
- }
638
-
639
- /* Triangles pointing to the code */
640
- .prism-previewer.prism-previewer:after {
641
- border-top-color: hsl(0, 0, 95%);
642
- }
643
-
644
- .prism-previewer-flipped.prism-previewer-flipped.after {
645
- border-bottom-color: hsl(0, 0, 95%);
646
- }
647
-
648
- /* Background colour within the popup */
649
- .prism-previewer-angle.prism-previewer-angle:before,
650
- .prism-previewer-time.prism-previewer-time:before,
651
- .prism-previewer-easing.prism-previewer-easing {
652
- background: hsl(0, 0%, 100%);
653
- }
654
-
655
- /* For angle, this is the positive area (eg. 90deg will display one quadrant in this colour) */
656
- /* For time, this is the alternate colour */
657
- .prism-previewer-angle.prism-previewer-angle circle,
658
- .prism-previewer-time.prism-previewer-time circle {
659
- stroke: hsl(230, 8%, 24%);
660
- stroke-opacity: 1;
661
- }
662
-
663
- /* Stroke colours of the handle, direction point, and vector itself */
664
- .prism-previewer-easing.prism-previewer-easing circle,
665
- .prism-previewer-easing.prism-previewer-easing path,
666
- .prism-previewer-easing.prism-previewer-easing line {
667
- stroke: hsl(230, 8%, 24%);
668
- }
669
-
670
- /* Fill colour of the handle */
671
- .prism-previewer-easing.prism-previewer-easing circle {
672
- fill: transparent;
673
- }
674
-
675
- // dark media query
676
- @media (prefers-color-scheme: dark) {
677
- /**
678
- * GitHub Dark theme for Prism.js
679
- * Based on GitHub: https://github.com
680
- * @author Katorly
681
- * Modified: Brighter text for better readability
682
- */
683
- /* General */
684
- pre[class*='language-'],
685
- code[class*='language-'] {
686
- background: #161b22;
687
- color: #f0f6fc !important; /* Cambiado de #c9d1d9 a un color más claro con !important */
688
- text-shadow: none;
689
- font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
690
- direction: ltr;
691
- text-align: left;
692
- white-space: pre;
693
- word-spacing: normal;
694
- word-break: normal;
695
- line-height: 1.5;
696
- -moz-tab-size: 4;
697
- -o-tab-size: 4;
698
- tab-size: 4;
699
- -webkit-hyphens: none;
700
- -moz-hyphens: none;
701
- -ms-hyphens: none;
702
- hyphens: none;
703
- }
704
-
705
- /* Asegurar que el texto no tokenizado use el color correcto */
706
- pre[class*='language-'] > code[class*='language-'],
707
- pre[class*='language-'] code[class*='language-'] {
708
- color: #f0f6fc !important;
709
- }
710
-
711
- /* Para el texto directo dentro del pre */
712
- pre[class*='language-'] {
713
- color: #f0f6fc !important;
714
- }
715
- pre[class*='language-']::selection,
716
- code[class*='language-']::selection,
717
- pre[class*='language-']::mozselection,
718
- code[class*='language-']::mozselection {
719
- text-shadow: none;
720
- background: #234879;
721
- }
722
- @media print {
723
- pre[class*='language-'],
724
- code[class*='language-'] {
725
- text-shadow: none;
726
- }
727
- }
728
- pre[class*='language-'] {
729
- padding: 1em;
730
- margin: 0.5em 0;
731
- overflow: auto;
732
- background: #161b22;
733
- }
734
- :not(pre) > code[class*='language-'] {
735
- padding: 0.1em 0.3em;
736
- border-radius: 0.3em;
737
- color: #f0f6fc !important; /* También actualizado aquí con !important */
738
- background: #343942;
739
- }
740
- /* Line highlighting */
741
- pre[data-line] {
742
- position: relative;
743
- }
744
- pre[class*='language-'] > code[class*='language-'] {
745
- position: relative;
746
- z-index: 1;
747
- }
748
- .line-highlight {
749
- position: absolute;
750
- left: 0;
751
- right: 0;
752
- padding: inherit 0;
753
- margin-top: 1em;
754
- background: #2f2a1e;
755
- box-shadow: inset 5px 0 0 #674c16;
756
- z-index: 0;
757
- pointer-events: none;
758
- line-height: inherit;
759
- white-space: pre;
760
- }
761
- /* Tokens */
762
- .namespace {
763
- opacity: 0.7;
764
- }
765
- .token.comment,
766
- .token.prolog,
767
- .token.doctype,
768
- .token.cdata {
769
- color: #8b949e;
770
- }
771
- .token.punctuation {
772
- color: #f0f6fc !important; /* También actualizado para consistencia con !important */
773
- }
774
- .token.property,
775
- .token.tag,
776
- .token.boolean,
777
- .token.number,
778
- .token.constant,
779
- .token.symbol,
780
- .token.deleted {
781
- color: #79c0ff;
782
- }
783
- .token.selector,
784
- .token.attr-name,
785
- .token.string,
786
- .token.char,
787
- .token.builtin,
788
- .token.inserted {
789
- color: #a5d6ff;
790
- }
791
- .token.operator,
792
- .token.entity,
793
- .token.url,
794
- .language-css .token.string,
795
- .style .token.string {
796
- color: #a5d6ff;
797
- background: #161b22;
798
- }
799
- .token.atrule,
800
- .token.attr-value,
801
- .token.keyword {
802
- color: #a5d6ff;
803
- }
804
- .token.function {
805
- color: #d2a8ff;
806
- }
807
- .token.regex,
808
- .token.important,
809
- .token.variable {
810
- color: #a8daff;
811
- }
812
- .token.important,
813
- .token.bold {
814
- font-weight: bold;
815
- }
816
- .token.italic {
817
- font-style: italic;
818
- }
819
- .token.entity {
820
- cursor: help;
821
- }
822
- }
@@ -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
+ }