@nexus-cross/design-system 1.0.2 → 1.0.3

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/dist/styles.css CHANGED
@@ -92,7 +92,10 @@
92
92
  /* ── Shared: Shadow ── */
93
93
  --shadow-comp-sm: var(--shadow-elevation-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
94
94
  --shadow-comp-md: var(--shadow-elevation-md, 0 4px 6px -1px rgb(0 0 0 / 0.1));
95
- --shadow-comp-lg: var(--shadow-elevation-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
95
+ --shadow-comp-lg: var(
96
+ --shadow-elevation-lg,
97
+ 0 10px 15px -3px rgb(0 0 0 / 0.1)
98
+ );
96
99
 
97
100
  /* ── Shared: Overlay ── */
98
101
  --color-comp-overlay: var(--color-overlay-dim, rgba(0, 0, 0, 0.6));
@@ -134,6 +137,14 @@
134
137
  box-shadow: var(--shadow-comp-btn);
135
138
  transition-property: color, background-color, border-color;
136
139
  transition-duration: 200ms;
140
+ border: none;
141
+ background: none;
142
+ cursor: pointer;
143
+ font: inherit;
144
+ color: inherit;
145
+ padding: 0;
146
+ margin: 0;
147
+ text-decoration: none;
137
148
  }
138
149
  .nexus-btn:disabled,
139
150
  .nexus-btn[aria-disabled='true'] {
@@ -368,7 +379,9 @@
368
379
  font-weight: 500;
369
380
  line-height: 1;
370
381
  color: var(--color-text-primary);
371
- transition: border-color 200ms, box-shadow 200ms;
382
+ transition:
383
+ border-color 200ms,
384
+ box-shadow 200ms;
372
385
  }
373
386
  :where(.nexus-text-input) {
374
387
  width: 100%;
@@ -397,15 +410,18 @@
397
410
 
398
411
  /* ── Sizes ── */
399
412
  .nexus-text-input--xl {
400
- padding: calc(var(--spacing-padding-md, 1rem) - 1px) var(--spacing-padding-md, 1rem);
413
+ padding: calc(var(--spacing-padding-md, 1rem) - 1px)
414
+ var(--spacing-padding-md, 1rem);
401
415
  font-size: var(--text-text-base, 1rem);
402
416
  }
403
417
  .nexus-text-input--lg {
404
- padding: calc(var(--spacing-padding-sm, 0.75rem) - 1px) var(--spacing-padding-sm, 0.75rem);
418
+ padding: calc(var(--spacing-padding-sm, 0.75rem) - 1px)
419
+ var(--spacing-padding-sm, 0.75rem);
405
420
  font-size: var(--text-text-base, 1rem);
406
421
  }
407
422
  .nexus-text-input--md {
408
- padding: calc(var(--spacing-padding-xs, 0.5rem) - 1px) var(--spacing-padding-sm, 0.75rem);
423
+ padding: calc(var(--spacing-padding-xs, 0.5rem) - 1px)
424
+ var(--spacing-padding-sm, 0.75rem);
409
425
  font-size: var(--text-text-sm, 0.875rem);
410
426
  }
411
427
 
@@ -450,56 +466,305 @@
450
466
  background: transparent;
451
467
  }
452
468
 
469
+ /* ═══════════════════════════════════════════
470
+ PriceInput
471
+ ═══════════════════════════════════════════ */
472
+
473
+ /* ── Field wrapper ── */
474
+ .nexus-price-input-field {
475
+ display: flex;
476
+ flex-direction: column;
477
+ gap: 0.25rem;
478
+ }
479
+ .nexus-price-input-field__header {
480
+ display: flex;
481
+ align-items: baseline;
482
+ justify-content: space-between;
483
+ gap: 0.5rem;
484
+ }
485
+ .nexus-price-input-field__label {
486
+ font-size: var(--text-text-sm, 0.875rem);
487
+ font-weight: 600;
488
+ color: var(--color-text-tertiary);
489
+ line-height: 1;
490
+ }
491
+ .nexus-price-input-field__balance {
492
+ display: inline-flex;
493
+ align-items: baseline;
494
+ gap: 0.375rem;
495
+ margin-left: auto;
496
+ padding: 0;
497
+ border: none;
498
+ background: transparent;
499
+ font-size: var(--text-text-xs, 0.75rem);
500
+ font-weight: 400;
501
+ color: var(--color-text-tertiary);
502
+ cursor: pointer;
503
+ line-height: 1.5;
504
+ letter-spacing: -0.12px;
505
+ transition: color 150ms;
506
+ }
507
+ .nexus-price-input-field__balance:hover {
508
+ color: var(--color-text-tertiary);
509
+ }
510
+ .nexus-price-input-field__balance:disabled {
511
+ cursor: not-allowed;
512
+ opacity: var(--opacity-disabled-text, 0.5);
513
+ }
514
+ .nexus-price-input-field__balance-value {
515
+ font-weight: 400;
516
+ color: var(--color-text-secondary);
517
+ text-decoration: underline;
518
+ transition: color 150ms;
519
+ }
520
+ .nexus-price-input-field__balance:hover
521
+ .nexus-price-input-field__balance-value {
522
+ color: var(--color-text-primary);
523
+ }
524
+ .nexus-price-input-field__balance-value--exceeded {
525
+ color: var(--color-status-danger);
526
+ }
527
+ .nexus-price-input-field__balance:hover
528
+ .nexus-price-input-field__balance-value--exceeded {
529
+ color: var(--color-status-danger);
530
+ }
531
+ .nexus-price-input-field__description {
532
+ font-size: var(--text-text-xs, 0.75rem);
533
+ color: var(--color-text-tertiary);
534
+ line-height: 1.5;
535
+ letter-spacing: -0.12px;
536
+ }
537
+ .nexus-price-input-field__description--error {
538
+ color: var(--color-status-danger);
539
+ }
540
+
541
+ /* ── Input box ── */
542
+ .nexus-price-input {
543
+ display: flex;
544
+ align-items: center;
545
+ gap: 0.5rem;
546
+ border-radius: var(--radius-corner-md, 0.5rem);
547
+ border: 1px solid var(--color-border-default);
548
+ background: var(--color-surface-default);
549
+ font-size: var(--text-text-sm, 0.875rem);
550
+ font-weight: 500;
551
+ line-height: 1;
552
+ color: var(--color-text-primary);
553
+ transition:
554
+ border-color 200ms,
555
+ box-shadow 200ms;
556
+ }
557
+ :where(.nexus-price-input) {
558
+ width: 100%;
559
+ }
560
+ .nexus-price-input:hover:not(.nexus-price-input--disabled):not(:focus-within) {
561
+ border-color: var(--color-border-default-hover);
562
+ box-shadow: 0 0 0 0.5px var(--color-border-default-hover);
563
+ }
564
+ .nexus-price-input--default:focus-within {
565
+ border-color: var(--color-accent-primary);
566
+ box-shadow: 0 0 0 0.5px var(--color-accent-primary);
567
+ }
568
+ .nexus-price-input--error {
569
+ border-color: var(--color-status-danger);
570
+ }
571
+ .nexus-price-input--error:focus-within {
572
+ border-color: var(--color-status-danger);
573
+ box-shadow: 0 0 0 0.5px var(--color-status-danger);
574
+ }
575
+ .nexus-price-input--disabled {
576
+ cursor: not-allowed;
577
+ background: var(--color-surface-strong);
578
+ border-color: var(--color-border-medium);
579
+ color: var(--color-text-muted);
580
+ }
581
+
582
+ /* ── Sizes ── */
583
+ .nexus-price-input--xl {
584
+ padding: calc(var(--spacing-padding-md, 1rem) - 1px)
585
+ var(--spacing-padding-md, 1rem);
586
+ font-size: var(--text-text-base, 1rem);
587
+ }
588
+ .nexus-price-input--lg {
589
+ padding: calc(var(--spacing-padding-sm, 0.75rem) - 1px)
590
+ var(--spacing-padding-sm, 0.75rem);
591
+ font-size: var(--text-text-base, 1rem);
592
+ }
593
+ .nexus-price-input--md {
594
+ padding: calc(var(--spacing-padding-xs, 0.5rem) - 1px)
595
+ var(--spacing-padding-sm, 0.75rem);
596
+ font-size: var(--text-text-sm, 0.875rem);
597
+ }
598
+
599
+ /* ── Inner elements ── */
600
+ .nexus-price-input__prefix {
601
+ flex-shrink: 0;
602
+ color: var(--color-text-secondary);
603
+ font: inherit;
604
+ user-select: none;
605
+ }
606
+ .nexus-price-input__suffix {
607
+ flex-shrink: 0;
608
+ color: var(--color-text-secondary);
609
+ font: inherit;
610
+ white-space: nowrap;
611
+ user-select: none;
612
+ }
613
+ .nexus-price-input__inner {
614
+ flex: 1;
615
+ min-width: 0;
616
+ padding: 0;
617
+ background: transparent;
618
+ border: none;
619
+ outline: none;
620
+ color: inherit;
621
+ font: inherit;
622
+ }
623
+ .nexus-price-input__inner:focus-visible {
624
+ outline: none;
625
+ }
626
+ .nexus-price-input__inner::placeholder {
627
+ color: var(--color-text-muted);
628
+ }
629
+ .nexus-price-input__inner--right {
630
+ text-align: right;
631
+ }
632
+
453
633
  /* ═══════════════════════════════════════════
454
634
  TextArea
455
635
  ═══════════════════════════════════════════ */
456
636
 
637
+ /* ── Field wrapper ── */
638
+ .nexus-textarea-field {
639
+ display: flex;
640
+ flex-direction: column;
641
+ gap: 0.25rem;
642
+ }
643
+ .nexus-textarea-field__label {
644
+ font-size: var(--text-label-semibold-md, 0.875rem);
645
+ font-weight: 600;
646
+ color: var(--color-text-tertiary);
647
+ line-height: 1;
648
+ }
649
+ .nexus-textarea-field__footer {
650
+ display: flex;
651
+ align-items: center;
652
+ gap: 0.5rem;
653
+ }
654
+ .nexus-textarea-field__description {
655
+ flex: 1;
656
+ min-width: 0;
657
+ font-size: var(--text-text-xs, 0.75rem);
658
+ color: var(--color-text-tertiary);
659
+ line-height: 1.5;
660
+ letter-spacing: -0.12px;
661
+ }
662
+ .nexus-textarea-field__description--error {
663
+ color: var(--color-status-danger-intense, #d20625);
664
+ }
665
+ .nexus-textarea-field__count {
666
+ font-size: var(--text-text-xs, 0.75rem);
667
+ color: var(--color-text-tertiary);
668
+ line-height: 1.5;
669
+ letter-spacing: -0.12px;
670
+ text-align: right;
671
+ flex-shrink: 0;
672
+ margin-left: auto;
673
+ }
674
+ .nexus-textarea-field__count--error {
675
+ color: var(--color-status-danger-intense, #d20625);
676
+ }
677
+
678
+ /* ── Textarea box ── */
457
679
  .nexus-textarea {
458
- border-radius: var(--radius-corner-md, 0.375rem);
680
+ border-radius: var(--radius-corner-md, 0.5rem);
459
681
  border: 1px solid var(--color-border-default);
460
682
  background: var(--color-surface-default);
461
- padding: var(--spacing-padding-xs, 0.5rem) var(--spacing-padding-sm, 0.75rem);
462
- font-size: var(--text-text-sm, 0.875rem);
463
683
  color: var(--color-text-primary);
464
- transition-property: border-color;
465
- transition-duration: 200ms;
684
+ font-weight: 500;
685
+ line-height: 1.5;
686
+ transition:
687
+ border-color 200ms,
688
+ box-shadow 200ms;
466
689
  resize: none;
690
+ min-height: 100px;
691
+ padding: var(--spacing-padding-sm, 0.75rem);
467
692
  }
468
693
  :where(.nexus-textarea) {
469
694
  width: 100%;
470
695
  }
471
696
  .nexus-textarea::placeholder {
472
- color: var(--color-text-tertiary);
697
+ color: var(--color-text-muted);
473
698
  }
474
699
  .nexus-textarea:focus-visible {
475
700
  outline: none;
476
701
  }
477
- .nexus-textarea:disabled {
478
- cursor: not-allowed;
479
- opacity: 0.5;
702
+
703
+ /* Hover */
704
+ .nexus-textarea:hover:not(.nexus-textarea--disabled):not(:focus) {
705
+ border-color: var(--color-border-default-hover);
706
+ box-shadow: 0 0 0 0.5px var(--color-border-default-hover);
480
707
  }
708
+
709
+ /* Focus — default */
481
710
  .nexus-textarea--default:focus {
482
- border-color: var(--color-text-primary);
711
+ border-color: var(--color-accent-primary);
712
+ box-shadow: 0 0 0 0.5px var(--color-accent-primary);
483
713
  }
714
+
715
+ /* Error */
484
716
  .nexus-textarea--error {
485
- border-color: var(--color-status-danger);
717
+ border-color: var(--color-status-danger-focus, #e62848);
718
+ box-shadow: 0 0 0 0.5px var(--color-status-danger-focus, #e62848);
486
719
  }
487
720
  .nexus-textarea--error:focus {
488
- border-color: var(--color-status-danger);
721
+ border-color: var(--color-status-danger-focus, #e62848);
722
+ box-shadow: 0 0 0 0.5px var(--color-status-danger-focus, #e62848);
489
723
  }
490
- .nexus-textarea-wrap {
491
- display: flex;
492
- flex-direction: column;
724
+
725
+ /* Disabled */
726
+ .nexus-textarea--disabled {
727
+ cursor: not-allowed;
728
+ background: var(
729
+ --color-surface-default-disabled,
730
+ var(--color-surface-strong)
731
+ );
732
+ border-color: var(--color-border-medium);
733
+ color: var(--color-text-muted);
493
734
  }
494
- .nexus-textarea-count {
495
- margin-top: 0.25rem;
496
- text-align: right;
497
- font-size: var(--text-text-xs, 0.75rem);
498
- color: var(--color-text-tertiary);
735
+
736
+ /* ── Sizes ── */
737
+ .nexus-textarea--lg {
738
+ font-size: var(--text-text-medium-base, 1rem);
739
+ letter-spacing: -0.16px;
499
740
  }
500
- .nexus-textarea-count__current {
501
- color: var(--color-text-primary);
502
- font-weight: 500;
741
+ .nexus-textarea--md {
742
+ font-size: var(--text-text-medium-sm, 0.875rem);
743
+ letter-spacing: -0.14px;
744
+ }
745
+
746
+ /* ── Resize modes ── */
747
+ .nexus-textarea--resize-default {
748
+ resize: vertical;
749
+ }
750
+ .nexus-textarea--resize-auto {
751
+ resize: none;
752
+ overflow: hidden;
753
+ }
754
+
755
+ /* ── Custom scrollbar ── */
756
+ .nexus-textarea:not(.nexus-textarea--resize-auto) {
757
+ overflow-y: auto;
758
+ }
759
+ .nexus-textarea::-webkit-scrollbar {
760
+ width: 5px;
761
+ }
762
+ .nexus-textarea::-webkit-scrollbar-track {
763
+ background: transparent;
764
+ }
765
+ .nexus-textarea::-webkit-scrollbar-thumb {
766
+ background: var(--color-icon-muted, #c6d0da);
767
+ border-radius: var(--radius-corner-full, 9999px);
503
768
  }
504
769
 
505
770
  /* ═══════════════════════════════════════════
@@ -513,12 +778,16 @@
513
778
  border: 1px solid var(--color-border-default);
514
779
  background: var(--color-surface-default);
515
780
  color: var(--color-text-primary);
516
- transition: border-color 200ms, box-shadow 200ms;
781
+ transition:
782
+ border-color 200ms,
783
+ box-shadow 200ms;
517
784
  }
518
785
  :where(.nexus-number-input) {
519
786
  width: 100%;
520
787
  }
521
- .nexus-number-input:hover:not(.nexus-number-input--disabled):not(:focus-within) {
788
+ .nexus-number-input:hover:not(.nexus-number-input--disabled):not(
789
+ :focus-within
790
+ ) {
522
791
  box-shadow: 0 0 0 0.5px var(--color-border-default);
523
792
  }
524
793
  .nexus-number-input--default:focus-within {
@@ -557,8 +826,12 @@
557
826
  width: 100%;
558
827
  min-width: 0;
559
828
  flex: 1;
829
+ padding: 0;
830
+ border: none;
560
831
  background: transparent;
561
832
  outline: none;
833
+ font: inherit;
834
+ color: inherit;
562
835
  }
563
836
  .nexus-number-input__field::placeholder {
564
837
  color: var(--color-text-tertiary);
@@ -590,7 +863,13 @@
590
863
  flex: 1;
591
864
  align-items: center;
592
865
  justify-content: center;
866
+ padding: 0;
593
867
  padding-inline: 0.375rem;
868
+ margin: 0;
869
+ border: none;
870
+ background: transparent;
871
+ cursor: pointer;
872
+ font: inherit;
594
873
  color: var(--color-text-tertiary);
595
874
  transition-property: color, background-color;
596
875
  transition-duration: 150ms;
@@ -937,6 +1216,12 @@
937
1216
  user-select: none;
938
1217
  border-radius: 9999px;
939
1218
  border: 1px solid transparent;
1219
+ background: transparent;
1220
+ cursor: pointer;
1221
+ font-family: inherit;
1222
+ padding: 0;
1223
+ margin: 0;
1224
+ text-decoration: none;
940
1225
  }
941
1226
  .nexus-chip[aria-disabled='true'] {
942
1227
  opacity: 0.5;
@@ -1021,6 +1306,11 @@
1021
1306
  transition-duration: 150ms;
1022
1307
  user-select: none;
1023
1308
  border: 1px solid transparent;
1309
+ background: transparent;
1310
+ cursor: pointer;
1311
+ font-family: inherit;
1312
+ padding: 0;
1313
+ margin: 0;
1024
1314
  }
1025
1315
  .nexus-page-btn:disabled {
1026
1316
  opacity: 0.4;
@@ -1083,6 +1373,12 @@
1083
1373
  outline: none;
1084
1374
  transition-property: color, background-color, border-color;
1085
1375
  transition-duration: 150ms;
1376
+ border: none;
1377
+ background: transparent;
1378
+ cursor: pointer;
1379
+ font-family: inherit;
1380
+ padding: 0;
1381
+ margin: 0;
1086
1382
  }
1087
1383
  .nexus-tab-trigger--line {
1088
1384
  padding: 0.625rem var(--spacing-padding-md, 1rem);
@@ -1268,8 +1564,13 @@
1268
1564
  justify-content: space-between;
1269
1565
  border-radius: var(--radius-corner-sm, 0.25rem);
1270
1566
  border: 1px solid var(--color-border-default);
1567
+ background: var(--color-surface-default, transparent);
1271
1568
  color: var(--color-text-primary);
1272
1569
  font-size: var(--text-text-sm, 0.875rem);
1570
+ font-family: inherit;
1571
+ cursor: pointer;
1572
+ padding: 0;
1573
+ margin: 0;
1273
1574
  transition-property: border-color;
1274
1575
  transition-duration: 200ms;
1275
1576
  }
@@ -1355,12 +1656,24 @@
1355
1656
  animation: nexus-select-slide-out 100ms ease-in forwards;
1356
1657
  }
1357
1658
  @keyframes nexus-select-slide-in {
1358
- from { opacity: 0; transform: translateY(-4px) scaleY(0.96); }
1359
- to { opacity: 1; transform: translateY(0) scaleY(1); }
1659
+ from {
1660
+ opacity: 0;
1661
+ transform: translateY(-4px) scaleY(0.96);
1662
+ }
1663
+ to {
1664
+ opacity: 1;
1665
+ transform: translateY(0) scaleY(1);
1666
+ }
1360
1667
  }
1361
1668
  @keyframes nexus-select-slide-out {
1362
- from { opacity: 1; transform: translateY(0) scaleY(1); }
1363
- to { opacity: 0; transform: translateY(-4px) scaleY(0.96); }
1669
+ from {
1670
+ opacity: 1;
1671
+ transform: translateY(0) scaleY(1);
1672
+ }
1673
+ to {
1674
+ opacity: 0;
1675
+ transform: translateY(-4px) scaleY(0.96);
1676
+ }
1364
1677
  }
1365
1678
  .nexus-select-content--sm {
1366
1679
  width: 4rem;
@@ -1459,12 +1772,24 @@
1459
1772
  animation: nexus-popover-out 100ms ease-in forwards;
1460
1773
  }
1461
1774
  @keyframes nexus-popover-in {
1462
- from { opacity: 0; transform: scale(0.95); }
1463
- to { opacity: 1; transform: scale(1); }
1775
+ from {
1776
+ opacity: 0;
1777
+ transform: scale(0.95);
1778
+ }
1779
+ to {
1780
+ opacity: 1;
1781
+ transform: scale(1);
1782
+ }
1464
1783
  }
1465
1784
  @keyframes nexus-popover-out {
1466
- from { opacity: 1; transform: scale(1); }
1467
- to { opacity: 0; transform: scale(0.95); }
1785
+ from {
1786
+ opacity: 1;
1787
+ transform: scale(1);
1788
+ }
1789
+ to {
1790
+ opacity: 0;
1791
+ transform: scale(0.95);
1792
+ }
1468
1793
  }
1469
1794
  .nexus-popover-arrow {
1470
1795
  fill: var(--color-surface-default);
@@ -1570,7 +1895,15 @@
1570
1895
  flex: 1;
1571
1896
  align-items: center;
1572
1897
  justify-content: space-between;
1898
+ padding: 0;
1573
1899
  padding-block: var(--spacing-padding-md, 1rem);
1900
+ margin: 0;
1901
+ border: none;
1902
+ background: transparent;
1903
+ cursor: pointer;
1904
+ font: inherit;
1905
+ color: inherit;
1906
+ text-align: left;
1574
1907
  transition: all 150ms;
1575
1908
  }
1576
1909
  .nexus-accordion-trigger[data-state='open'] > .nexus-accordion-chevron {
@@ -1675,6 +2008,10 @@
1675
2008
  border: 1px solid var(--color-border-default);
1676
2009
  box-shadow: var(--shadow-comp-sm);
1677
2010
  color: var(--color-text-primary);
2011
+ cursor: pointer;
2012
+ font: inherit;
2013
+ padding: 0;
2014
+ margin: 0;
1678
2015
  transition-property: background-color;
1679
2016
  transition-duration: 150ms;
1680
2017
  }
@@ -1705,6 +2042,9 @@
1705
2042
  width: 0.5rem;
1706
2043
  height: 0.5rem;
1707
2044
  border-radius: 9999px;
2045
+ border: none;
2046
+ padding: 0;
2047
+ cursor: pointer;
1708
2048
  transition-property: background-color;
1709
2049
  transition-duration: 150ms;
1710
2050
  }
@@ -1751,11 +2091,7 @@
1751
2091
  color: var(--color-status-positive);
1752
2092
  }
1753
2093
  .nexus-toast--error {
1754
- border-color: color-mix(
1755
- in srgb,
1756
- var(--color-status-danger) 30%,
1757
- transparent
1758
- );
2094
+ border-color: color-mix(in srgb, var(--color-status-danger) 30%, transparent);
1759
2095
  background: color-mix(in srgb, var(--color-status-danger) 10%, transparent);
1760
2096
  color: var(--color-status-danger);
1761
2097
  }
@@ -2052,6 +2388,9 @@
2052
2388
  cursor: pointer;
2053
2389
  align-items: center;
2054
2390
  justify-content: flex-end;
2391
+ border: none;
2392
+ background: transparent;
2393
+ padding: 0;
2055
2394
  }
2056
2395
  .nexus-modal-close-btn--bottom-sheet {
2057
2396
  position: relative;
package/dist/styles.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk55IEEVNR_js = require('./chunks/chunk-55IEEVNR.js');
3
+ var chunkRLPPNY5F_js = require('./chunks/chunk-RLPPNY5F.js');
4
4
  require('./chunks/chunk-JNMCYWGY.js');
5
5
 
6
6
  // src/styles/inject.ts
@@ -8,7 +8,7 @@ var STYLE_ID = "__nexus-ds__";
8
8
  var __nexus_styles_injected__ = typeof document !== "undefined" && !document.getElementById(STYLE_ID) ? (() => {
9
9
  const style = document.createElement("style");
10
10
  style.id = STYLE_ID;
11
- style.textContent = chunk55IEEVNR_js.built_default;
11
+ style.textContent = chunkRLPPNY5F_js.built_default;
12
12
  document.head.appendChild(style);
13
13
  return true;
14
14
  })() : false;