@transferwise/neptune-css 14.24.3 → 14.24.5

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.
@@ -60,8 +60,6 @@
60
60
  line-height: 1.2;
61
61
  line-height: var(--line-height-title);
62
62
  letter-spacing: 0;
63
- -webkit-hyphens: auto;
64
- hyphens: auto;
65
63
  font-size: 1.125rem;
66
64
  font-size: var(--font-size-18);
67
65
  font-weight: 600;
@@ -69,6 +67,36 @@
69
67
  letter-spacing: -0.014em;
70
68
  line-height: 135%;
71
69
  }
70
+ @supports (hyphenate-limit-chars: 1) {
71
+ .decision__title {
72
+ -webkit-hyphens: auto;
73
+ hyphens: auto;
74
+ hyphenate-limit-chars: 7 3;
75
+ }
76
+ @media (min-width: 768px) {
77
+ .decision__title {
78
+ hyphenate-limit-chars: 8 3;
79
+ }
80
+ }
81
+ @media (min-width: 992px) {
82
+ .decision__title {
83
+ hyphenate-limit-chars: 10 4 3;
84
+ }
85
+ }
86
+ }
87
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
88
+ .decision__title {
89
+ -webkit-hyphens: auto;
90
+ hyphens: auto;
91
+ -webkit-hyphenate-limit-before: 3;
92
+ -webkit-hyphenate-limit-after: 3;
93
+ }
94
+ @media (min-width: 992px) {
95
+ .decision__title {
96
+ -webkit-hyphenate-limit-before: 4;
97
+ }
98
+ }
99
+ }
72
100
  .decision__title + p,
73
101
  .decision__title + ul:not(.list-unstyled),
74
102
  .decision__title + ol:not(.list-unstyled) {
@@ -21,14 +21,40 @@
21
21
  line-height: 1.2;
22
22
  line-height: var(--line-height-title);
23
23
  letter-spacing: 0;
24
- -webkit-hyphens: auto;
25
- hyphens: auto;
26
24
  font-size: 1.125rem;
27
25
  font-size: var(--font-size-18);
28
26
  font-weight: 600;
29
27
  font-weight: var(--font-weight-semi-bold);
30
28
  letter-spacing: -0.014em;
31
29
  line-height: 135%;
30
+ }@supports (hyphenate-limit-chars: 1) {
31
+ .decision__title {
32
+ -webkit-hyphens: auto;
33
+ hyphens: auto;
34
+ hyphenate-limit-chars: 7 3;
35
+ }
36
+ @media (min-width: 768px) {
37
+ .decision__title {
38
+ hyphenate-limit-chars: 8 3;
39
+ }
40
+ }
41
+ @media (min-width: 992px) {
42
+ .decision__title {
43
+ hyphenate-limit-chars: 10 4 3;
44
+ }
45
+ }
46
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
47
+ .decision__title {
48
+ -webkit-hyphens: auto;
49
+ hyphens: auto;
50
+ -webkit-hyphenate-limit-before: 3;
51
+ -webkit-hyphenate-limit-after: 3;
52
+ }
53
+ @media (min-width: 992px) {
54
+ .decision__title {
55
+ -webkit-hyphenate-limit-before: 4;
56
+ }
57
+ }
32
58
  }.decision__title + p,
33
59
  .decision__title + ul:not(.list-unstyled),
34
60
  .decision__title + ol:not(.list-unstyled) {
@@ -335,14 +335,40 @@
335
335
  line-height: 1.2;
336
336
  line-height: var(--line-height-title);
337
337
  letter-spacing: 0;
338
- -webkit-hyphens: auto;
339
- hyphens: auto;
340
338
  font-weight: 500;
341
339
  font-weight: var(--font-weight-medium);
342
340
  font-size: 0.875rem;
343
341
  font-size: var(--font-size-14);
344
342
  letter-spacing: -0.006em;
345
343
  line-height: 140%;
344
+ }@supports (hyphenate-limit-chars: 1) {
345
+ .dropdown-header {
346
+ -webkit-hyphens: auto;
347
+ hyphens: auto;
348
+ hyphenate-limit-chars: 7 3;
349
+ }
350
+ @media (min-width: 768px) {
351
+ .dropdown-header {
352
+ hyphenate-limit-chars: 8 3;
353
+ }
354
+ }
355
+ @media (min-width: 992px) {
356
+ .dropdown-header {
357
+ hyphenate-limit-chars: 10 4 3;
358
+ }
359
+ }
360
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
361
+ .dropdown-header {
362
+ -webkit-hyphens: auto;
363
+ hyphens: auto;
364
+ -webkit-hyphenate-limit-before: 3;
365
+ -webkit-hyphenate-limit-after: 3;
366
+ }
367
+ @media (min-width: 992px) {
368
+ .dropdown-header {
369
+ -webkit-hyphenate-limit-before: 4;
370
+ }
371
+ }
346
372
  }.dropdown-header + p,
347
373
  .dropdown-header + ul:not(.list-unstyled),
348
374
  .dropdown-header + ol:not(.list-unstyled) {
@@ -1782,12 +1782,12 @@ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-
1782
1782
  .np-checkbox.checkbox > label {
1783
1783
  display: flex;
1784
1784
  align-items: center;
1785
- padding: 8px 16px;
1785
+ padding: 8px 16px ;
1786
1786
  padding: var(--size-8) var(--size-16) ;
1787
1787
  }
1788
1788
  [dir="rtl"] .np-radio.radio > label,
1789
1789
  [dir="rtl"] .np-checkbox.checkbox > label {
1790
- padding: 8px 16px;
1790
+ padding: 8px 16px ;
1791
1791
  padding: var(--size-8) var(--size-16) ;
1792
1792
  }
1793
1793
  .np-radio.radio > label .np-checkbox__text,
@@ -2358,8 +2358,6 @@ html:not([dir="rtl"]) .input-group .form-control:not(:last-child) {
2358
2358
  line-height: 1.2;
2359
2359
  line-height: var(--line-height-title);
2360
2360
  letter-spacing: 0;
2361
- -webkit-hyphens: auto;
2362
- hyphens: auto;
2363
2361
  margin-bottom: 0;
2364
2362
  margin-bottom: initial;
2365
2363
  font-size: 1.375rem;
@@ -2383,6 +2381,46 @@ select[multiple].input-group-lg > .input-group-addon,
2383
2381
  select[multiple].input-group-lg > .input-group-btn .btn {
2384
2382
  height: auto;
2385
2383
  }
2384
+ @supports (hyphenate-limit-chars: 1) {
2385
+ .input-group-lg > .form-control,
2386
+ .input-group-lg > .input-group-addon,
2387
+ .input-group-lg > .input-group-btn .btn {
2388
+ -webkit-hyphens: auto;
2389
+ hyphens: auto;
2390
+ hyphenate-limit-chars: 7 3;
2391
+ }
2392
+ @media (min-width: 768px) {
2393
+ .input-group-lg > .form-control,
2394
+ .input-group-lg > .input-group-addon,
2395
+ .input-group-lg > .input-group-btn .btn {
2396
+ hyphenate-limit-chars: 8 3;
2397
+ }
2398
+ }
2399
+ @media (min-width: 992px) {
2400
+ .input-group-lg > .form-control,
2401
+ .input-group-lg > .input-group-addon,
2402
+ .input-group-lg > .input-group-btn .btn {
2403
+ hyphenate-limit-chars: 10 4 3;
2404
+ }
2405
+ }
2406
+ }
2407
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
2408
+ .input-group-lg > .form-control,
2409
+ .input-group-lg > .input-group-addon,
2410
+ .input-group-lg > .input-group-btn .btn {
2411
+ -webkit-hyphens: auto;
2412
+ hyphens: auto;
2413
+ -webkit-hyphenate-limit-before: 3;
2414
+ -webkit-hyphenate-limit-after: 3;
2415
+ }
2416
+ @media (min-width: 992px) {
2417
+ .input-group-lg > .form-control,
2418
+ .input-group-lg > .input-group-addon,
2419
+ .input-group-lg > .input-group-btn .btn {
2420
+ -webkit-hyphenate-limit-before: 4;
2421
+ }
2422
+ }
2423
+ }
2386
2424
  .input-group-lg > .form-control + p,
2387
2425
  .input-group-lg > .input-group-addon + p,
2388
2426
  .input-group-lg > .input-group-btn .btn + p,
@@ -49,8 +49,6 @@
49
49
  line-height: 1.2;
50
50
  line-height: var(--line-height-title);
51
51
  letter-spacing: 0;
52
- -webkit-hyphens: auto;
53
- hyphens: auto;
54
52
  font-weight: 500;
55
53
  font-weight: var(--font-weight-medium);
56
54
  font-size: 0.875rem;
@@ -59,6 +57,34 @@
59
57
  line-height: 140%;
60
58
  color: #37517e;
61
59
  color: var(--color-content-primary);
60
+ }@supports (hyphenate-limit-chars: 1) {
61
+ .list-group-item-heading {
62
+ -webkit-hyphens: auto;
63
+ hyphens: auto;
64
+ hyphenate-limit-chars: 7 3;
65
+ }
66
+ @media (min-width: 768px) {
67
+ .list-group-item-heading {
68
+ hyphenate-limit-chars: 8 3;
69
+ }
70
+ }
71
+ @media (min-width: 992px) {
72
+ .list-group-item-heading {
73
+ hyphenate-limit-chars: 10 4 3;
74
+ }
75
+ }
76
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
77
+ .list-group-item-heading {
78
+ -webkit-hyphens: auto;
79
+ hyphens: auto;
80
+ -webkit-hyphenate-limit-before: 3;
81
+ -webkit-hyphenate-limit-after: 3;
82
+ }
83
+ @media (min-width: 992px) {
84
+ .list-group-item-heading {
85
+ -webkit-hyphenate-limit-before: 4;
86
+ }
87
+ }
62
88
  }.list-group-item-heading + p,
63
89
  .list-group-item-heading + ul:not(.list-unstyled),
64
90
  .list-group-item-heading + ol:not(.list-unstyled) {
@@ -524,8 +524,6 @@
524
524
  line-height: 1.2;
525
525
  line-height: var(--line-height-title);
526
526
  letter-spacing: 0;
527
- -webkit-hyphens: auto;
528
- hyphens: auto;
529
527
  font-weight: 500;
530
528
  font-weight: var(--font-weight-medium);
531
529
  font-size: 0.875rem;
@@ -533,6 +531,36 @@
533
531
  letter-spacing: -0.006em;
534
532
  line-height: 140%;
535
533
  }
534
+ @supports (hyphenate-limit-chars: 1) {
535
+ .dropdown-header {
536
+ -webkit-hyphens: auto;
537
+ hyphens: auto;
538
+ hyphenate-limit-chars: 7 3;
539
+ }
540
+ @media (min-width: 768px) {
541
+ .dropdown-header {
542
+ hyphenate-limit-chars: 8 3;
543
+ }
544
+ }
545
+ @media (min-width: 992px) {
546
+ .dropdown-header {
547
+ hyphenate-limit-chars: 10 4 3;
548
+ }
549
+ }
550
+ }
551
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
552
+ .dropdown-header {
553
+ -webkit-hyphens: auto;
554
+ hyphens: auto;
555
+ -webkit-hyphenate-limit-before: 3;
556
+ -webkit-hyphenate-limit-after: 3;
557
+ }
558
+ @media (min-width: 992px) {
559
+ .dropdown-header {
560
+ -webkit-hyphenate-limit-before: 4;
561
+ }
562
+ }
563
+ }
536
564
  .dropdown-header + p,
537
565
  .dropdown-header + ul:not(.list-unstyled),
538
566
  .dropdown-header + ol:not(.list-unstyled) {
@@ -1823,6 +1823,36 @@ html:not([dir="rtl"]) .p-x-panel {
1823
1823
  padding-bottom: var(--size-96);
1824
1824
  }
1825
1825
  }
1826
+ @supports (hyphenate-limit-chars: 1) {
1827
+ .np-text-hyphenated {
1828
+ -webkit-hyphens: auto;
1829
+ hyphens: auto;
1830
+ hyphenate-limit-chars: 7 3;
1831
+ }
1832
+ @media (min-width: 768px) {
1833
+ .np-text-hyphenated {
1834
+ hyphenate-limit-chars: 8 3;
1835
+ }
1836
+ }
1837
+ @media (min-width: 992px) {
1838
+ .np-text-hyphenated {
1839
+ hyphenate-limit-chars: 10 4 3;
1840
+ }
1841
+ }
1842
+ }
1843
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
1844
+ .np-text-hyphenated {
1845
+ -webkit-hyphens: auto;
1846
+ hyphens: auto;
1847
+ -webkit-hyphenate-limit-before: 3;
1848
+ -webkit-hyphenate-limit-after: 3;
1849
+ }
1850
+ @media (min-width: 992px) {
1851
+ .np-text-hyphenated {
1852
+ -webkit-hyphenate-limit-before: 4;
1853
+ }
1854
+ }
1855
+ }
1826
1856
  .border-bottom {
1827
1857
  border-bottom: 1px solid rgba(134,167,189,0.10196);
1828
1858
  border-bottom: 1px solid var(--color-background-neutral);
@@ -82,7 +82,7 @@
82
82
  src: url("../fonts/WiseSans-Heavy.woff2") format("woff2");
83
83
  }
84
84
  /* stylelint-disable selector-max-empty-lines */
85
- /*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
85
+ /*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
86
86
  /*
87
87
  Document
88
88
  ========
@@ -103,10 +103,9 @@ html {
103
103
  -webkit-text-size-adjust: 100%;
104
104
  /* 2. Prevent adjustments of font size after orientation changes in iOS. */
105
105
  -moz-tab-size: 4;
106
+ -o-tab-size: 4;
107
+ tab-size: 4;
106
108
  /* 3. Use a more readable tab size (opinionated). */
107
- -o-tab-size: 4;
108
- tab-size: 4;
109
- /* 3 */
110
109
  }
111
110
  /*
112
111
  Sections
@@ -117,33 +116,11 @@ body {
117
116
  /* Remove the margin in all browsers. */
118
117
  }
119
118
  /*
120
- Grouping content
121
- ================
122
- */
123
- /**
124
- 1. Add the correct height in Firefox.
125
- 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
126
- */
127
- hr {
128
- height: 0;
129
- /* 1 */
130
- color: inherit;
131
- /* 2 */
132
- }
133
- /*
134
119
  Text-level semantics
135
120
  ====================
136
121
  */
137
122
  /**
138
- Add the correct text decoration in Chrome, Edge, and Safari.
139
- */
140
- abbr[title] {
141
- text-decoration: underline;
142
- -webkit-text-decoration: underline dotted;
143
- text-decoration: underline dotted;
144
- }
145
- /**
146
- Add the correct font weight in Edge and Safari.
123
+ Add the correct font weight in Chrome and Safari.
147
124
  */
148
125
  b,
149
126
  strong {
@@ -189,14 +166,10 @@ Tabular data
189
166
  ============
190
167
  */
191
168
  /**
192
- 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
193
- 2. Correct table border color inheritance in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
169
+ Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
194
170
  */
195
171
  table {
196
- text-indent: 0;
197
- /* 1 */
198
- border-color: inherit;
199
- /* 2 */
172
+ border-color: currentcolor;
200
173
  }
201
174
  /*
202
175
  Forms
@@ -221,13 +194,6 @@ textarea {
221
194
  /* 2 */
222
195
  }
223
196
  /**
224
- Remove the inheritance of text transform in Edge and Firefox.
225
- */
226
- button,
227
- select {
228
- text-transform: none;
229
- }
230
- /**
231
197
  Correct the inability to style clickable types in iOS and Safari.
232
198
  */
233
199
  button,
@@ -237,26 +203,6 @@ button,
237
203
  -webkit-appearance: button;
238
204
  }
239
205
  /**
240
- Remove the inner border and padding in Firefox.
241
- */
242
- ::-moz-focus-inner {
243
- border-style: none;
244
- padding: 0;
245
- }
246
- /**
247
- Restore the focus styles unset by the previous rule.
248
- */
249
- :-moz-focusring {
250
- outline: 1px dotted ButtonText;
251
- }
252
- /**
253
- Remove the additional ':invalid' styles in Firefox.
254
- See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
255
- */
256
- :-moz-ui-invalid {
257
- box-shadow: none;
258
- }
259
- /**
260
206
  Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
261
207
  */
262
208
  legend {
@@ -769,8 +715,141 @@ h6,
769
715
  line-height: 1.2;
770
716
  line-height: var(--line-height-title);
771
717
  letter-spacing: 0;
772
- -webkit-hyphens: auto;
773
- hyphens: auto;
718
+ }
719
+ @supports (hyphenate-limit-chars: 1) {
720
+ .h1,
721
+ .h2,
722
+ .h3,
723
+ .h4,
724
+ .h5,
725
+ .h6,
726
+ .title-1,
727
+ .title-2,
728
+ .title-3,
729
+ .title-4,
730
+ .title-5,
731
+ h1,
732
+ h2,
733
+ h3,
734
+ h4,
735
+ h5,
736
+ h6,
737
+ .np-text-title-screen,
738
+ .np-text-title-section,
739
+ .np-text-title-subsection,
740
+ .np-text-title-body,
741
+ .np-text-title-group {
742
+ -webkit-hyphens: auto;
743
+ hyphens: auto;
744
+ hyphenate-limit-chars: 7 3;
745
+ }
746
+ @media (min-width: 768px) {
747
+ .h1,
748
+ .h2,
749
+ .h3,
750
+ .h4,
751
+ .h5,
752
+ .h6,
753
+ .title-1,
754
+ .title-2,
755
+ .title-3,
756
+ .title-4,
757
+ .title-5,
758
+ h1,
759
+ h2,
760
+ h3,
761
+ h4,
762
+ h5,
763
+ h6,
764
+ .np-text-title-screen,
765
+ .np-text-title-section,
766
+ .np-text-title-subsection,
767
+ .np-text-title-body,
768
+ .np-text-title-group {
769
+ hyphenate-limit-chars: 8 3;
770
+ }
771
+ }
772
+ @media (min-width: 992px) {
773
+ .h1,
774
+ .h2,
775
+ .h3,
776
+ .h4,
777
+ .h5,
778
+ .h6,
779
+ .title-1,
780
+ .title-2,
781
+ .title-3,
782
+ .title-4,
783
+ .title-5,
784
+ h1,
785
+ h2,
786
+ h3,
787
+ h4,
788
+ h5,
789
+ h6,
790
+ .np-text-title-screen,
791
+ .np-text-title-section,
792
+ .np-text-title-subsection,
793
+ .np-text-title-body,
794
+ .np-text-title-group {
795
+ hyphenate-limit-chars: 10 4 3;
796
+ }
797
+ }
798
+ }
799
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
800
+ .h1,
801
+ .h2,
802
+ .h3,
803
+ .h4,
804
+ .h5,
805
+ .h6,
806
+ .title-1,
807
+ .title-2,
808
+ .title-3,
809
+ .title-4,
810
+ .title-5,
811
+ h1,
812
+ h2,
813
+ h3,
814
+ h4,
815
+ h5,
816
+ h6,
817
+ .np-text-title-screen,
818
+ .np-text-title-section,
819
+ .np-text-title-subsection,
820
+ .np-text-title-body,
821
+ .np-text-title-group {
822
+ -webkit-hyphens: auto;
823
+ hyphens: auto;
824
+ -webkit-hyphenate-limit-before: 3;
825
+ -webkit-hyphenate-limit-after: 3;
826
+ }
827
+ @media (min-width: 992px) {
828
+ .h1,
829
+ .h2,
830
+ .h3,
831
+ .h4,
832
+ .h5,
833
+ .h6,
834
+ .title-1,
835
+ .title-2,
836
+ .title-3,
837
+ .title-4,
838
+ .title-5,
839
+ h1,
840
+ h2,
841
+ h3,
842
+ h4,
843
+ h5,
844
+ h6,
845
+ .np-text-title-screen,
846
+ .np-text-title-section,
847
+ .np-text-title-subsection,
848
+ .np-text-title-body,
849
+ .np-text-title-group {
850
+ -webkit-hyphenate-limit-before: 4;
851
+ }
852
+ }
774
853
  }
775
854
  .h1 + p,
776
855
  .h2 + p,
@@ -1600,7 +1600,7 @@
1600
1600
 
1601
1601
  /* stylelint-disable selector-max-empty-lines */
1602
1602
 
1603
- /*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
1603
+ /*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
1604
1604
 
1605
1605
  /*
1606
1606
  Document
@@ -1625,10 +1625,9 @@ html {
1625
1625
  -webkit-text-size-adjust: 100%;
1626
1626
  /* 2. Prevent adjustments of font size after orientation changes in iOS. */
1627
1627
  -moz-tab-size: 4;
1628
+ -o-tab-size: 4;
1629
+ tab-size: 4;
1628
1630
  /* 3. Use a more readable tab size (opinionated). */
1629
- -o-tab-size: 4;
1630
- tab-size: 4;
1631
- /* 3 */
1632
1631
  }
1633
1632
 
1634
1633
  /*
@@ -1641,40 +1640,13 @@ body {
1641
1640
  /* Remove the margin in all browsers. */
1642
1641
  }
1643
1642
 
1644
- /*
1645
- Grouping content
1646
- ================
1647
- */
1648
-
1649
- /**
1650
- 1. Add the correct height in Firefox.
1651
- 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
1652
- */
1653
-
1654
- hr {
1655
- height: 0;
1656
- /* 1 */
1657
- color: inherit;
1658
- /* 2 */
1659
- }
1660
-
1661
1643
  /*
1662
1644
  Text-level semantics
1663
1645
  ====================
1664
1646
  */
1665
1647
 
1666
1648
  /**
1667
- Add the correct text decoration in Chrome, Edge, and Safari.
1668
- */
1669
-
1670
- abbr[title] {
1671
- text-decoration: underline;
1672
- -webkit-text-decoration: underline dotted;
1673
- text-decoration: underline dotted;
1674
- }
1675
-
1676
- /**
1677
- Add the correct font weight in Edge and Safari.
1649
+ Add the correct font weight in Chrome and Safari.
1678
1650
  */
1679
1651
 
1680
1652
  b,
@@ -1731,15 +1703,11 @@ Tabular data
1731
1703
  */
1732
1704
 
1733
1705
  /**
1734
- 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
1735
- 2. Correct table border color inheritance in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
1706
+ Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
1736
1707
  */
1737
1708
 
1738
1709
  table {
1739
- text-indent: 0;
1740
- /* 1 */
1741
- border-color: inherit;
1742
- /* 2 */
1710
+ border-color: currentcolor;
1743
1711
  }
1744
1712
 
1745
1713
  /*
@@ -1767,15 +1735,6 @@ textarea {
1767
1735
  /* 2 */
1768
1736
  }
1769
1737
 
1770
- /**
1771
- Remove the inheritance of text transform in Edge and Firefox.
1772
- */
1773
-
1774
- button,
1775
- select {
1776
- text-transform: none;
1777
- }
1778
-
1779
1738
  /**
1780
1739
  Correct the inability to style clickable types in iOS and Safari.
1781
1740
  */
@@ -1787,32 +1746,6 @@ button,
1787
1746
  -webkit-appearance: button;
1788
1747
  }
1789
1748
 
1790
- /**
1791
- Remove the inner border and padding in Firefox.
1792
- */
1793
-
1794
- ::-moz-focus-inner {
1795
- border-style: none;
1796
- padding: 0;
1797
- }
1798
-
1799
- /**
1800
- Restore the focus styles unset by the previous rule.
1801
- */
1802
-
1803
- :-moz-focusring {
1804
- outline: 1px dotted ButtonText;
1805
- }
1806
-
1807
- /**
1808
- Remove the additional ':invalid' styles in Firefox.
1809
- See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
1810
- */
1811
-
1812
- :-moz-ui-invalid {
1813
- box-shadow: none;
1814
- }
1815
-
1816
1749
  /**
1817
1750
  Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
1818
1751
  */
@@ -2410,8 +2343,143 @@ h6,
2410
2343
  line-height: 1.2;
2411
2344
  line-height: var(--line-height-title);
2412
2345
  letter-spacing: 0;
2413
- -webkit-hyphens: auto;
2414
- hyphens: auto;
2346
+ }
2347
+
2348
+ @supports (hyphenate-limit-chars: 1) {
2349
+ .h1,
2350
+ .h2,
2351
+ .h3,
2352
+ .h4,
2353
+ .h5,
2354
+ .h6,
2355
+ .title-1,
2356
+ .title-2,
2357
+ .title-3,
2358
+ .title-4,
2359
+ .title-5,
2360
+ h1,
2361
+ h2,
2362
+ h3,
2363
+ h4,
2364
+ h5,
2365
+ h6,
2366
+ .np-text-title-screen,
2367
+ .np-text-title-section,
2368
+ .np-text-title-subsection,
2369
+ .np-text-title-body,
2370
+ .np-text-title-group {
2371
+ -webkit-hyphens: auto;
2372
+ hyphens: auto;
2373
+ hyphenate-limit-chars: 7 3;
2374
+ }
2375
+ @media (min-width: 768px) {
2376
+ .h1,
2377
+ .h2,
2378
+ .h3,
2379
+ .h4,
2380
+ .h5,
2381
+ .h6,
2382
+ .title-1,
2383
+ .title-2,
2384
+ .title-3,
2385
+ .title-4,
2386
+ .title-5,
2387
+ h1,
2388
+ h2,
2389
+ h3,
2390
+ h4,
2391
+ h5,
2392
+ h6,
2393
+ .np-text-title-screen,
2394
+ .np-text-title-section,
2395
+ .np-text-title-subsection,
2396
+ .np-text-title-body,
2397
+ .np-text-title-group {
2398
+ hyphenate-limit-chars: 8 3;
2399
+ }
2400
+ }
2401
+ @media (min-width: 992px) {
2402
+ .h1,
2403
+ .h2,
2404
+ .h3,
2405
+ .h4,
2406
+ .h5,
2407
+ .h6,
2408
+ .title-1,
2409
+ .title-2,
2410
+ .title-3,
2411
+ .title-4,
2412
+ .title-5,
2413
+ h1,
2414
+ h2,
2415
+ h3,
2416
+ h4,
2417
+ h5,
2418
+ h6,
2419
+ .np-text-title-screen,
2420
+ .np-text-title-section,
2421
+ .np-text-title-subsection,
2422
+ .np-text-title-body,
2423
+ .np-text-title-group {
2424
+ hyphenate-limit-chars: 10 4 3;
2425
+ }
2426
+ }
2427
+ }
2428
+
2429
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
2430
+ .h1,
2431
+ .h2,
2432
+ .h3,
2433
+ .h4,
2434
+ .h5,
2435
+ .h6,
2436
+ .title-1,
2437
+ .title-2,
2438
+ .title-3,
2439
+ .title-4,
2440
+ .title-5,
2441
+ h1,
2442
+ h2,
2443
+ h3,
2444
+ h4,
2445
+ h5,
2446
+ h6,
2447
+ .np-text-title-screen,
2448
+ .np-text-title-section,
2449
+ .np-text-title-subsection,
2450
+ .np-text-title-body,
2451
+ .np-text-title-group {
2452
+ -webkit-hyphens: auto;
2453
+ hyphens: auto;
2454
+ -webkit-hyphenate-limit-before: 3;
2455
+ -webkit-hyphenate-limit-after: 3;
2456
+ }
2457
+ @media (min-width: 992px) {
2458
+ .h1,
2459
+ .h2,
2460
+ .h3,
2461
+ .h4,
2462
+ .h5,
2463
+ .h6,
2464
+ .title-1,
2465
+ .title-2,
2466
+ .title-3,
2467
+ .title-4,
2468
+ .title-5,
2469
+ h1,
2470
+ h2,
2471
+ h3,
2472
+ h4,
2473
+ h5,
2474
+ h6,
2475
+ .np-text-title-screen,
2476
+ .np-text-title-section,
2477
+ .np-text-title-subsection,
2478
+ .np-text-title-body,
2479
+ .np-text-title-group {
2480
+ -webkit-hyphenate-limit-before: 4;
2481
+ }
2482
+ }
2415
2483
  }
2416
2484
 
2417
2485
  .h1 + p,
@@ -5954,6 +6022,38 @@ html:not([dir="rtl"]) .p-x-panel {
5954
6022
  }
5955
6023
  }
5956
6024
 
6025
+ @supports (hyphenate-limit-chars: 1) {
6026
+ .np-text-hyphenated {
6027
+ -webkit-hyphens: auto;
6028
+ hyphens: auto;
6029
+ hyphenate-limit-chars: 7 3;
6030
+ }
6031
+ @media (min-width: 768px) {
6032
+ .np-text-hyphenated {
6033
+ hyphenate-limit-chars: 8 3;
6034
+ }
6035
+ }
6036
+ @media (min-width: 992px) {
6037
+ .np-text-hyphenated {
6038
+ hyphenate-limit-chars: 10 4 3;
6039
+ }
6040
+ }
6041
+ }
6042
+
6043
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
6044
+ .np-text-hyphenated {
6045
+ -webkit-hyphens: auto;
6046
+ hyphens: auto;
6047
+ -webkit-hyphenate-limit-before: 3;
6048
+ -webkit-hyphenate-limit-after: 3;
6049
+ }
6050
+ @media (min-width: 992px) {
6051
+ .np-text-hyphenated {
6052
+ -webkit-hyphenate-limit-before: 4;
6053
+ }
6054
+ }
6055
+ }
6056
+
5957
6057
  .border-bottom {
5958
6058
  border-bottom: 1px solid rgba(134,167,189,0.10196);
5959
6059
  border-bottom: 1px solid var(--color-background-neutral);
@@ -11332,13 +11432,13 @@ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-
11332
11432
  .np-checkbox.checkbox > label {
11333
11433
  display: flex;
11334
11434
  align-items: center;
11335
- padding: 8px 16px;
11435
+ padding: 8px 16px ;
11336
11436
  padding: var(--size-8) var(--size-16) ;
11337
11437
  }
11338
11438
 
11339
11439
  [dir="rtl"] .np-radio.radio > label,
11340
11440
  [dir="rtl"] .np-checkbox.checkbox > label {
11341
- padding: 8px 16px;
11441
+ padding: 8px 16px ;
11342
11442
  padding: var(--size-8) var(--size-16) ;
11343
11443
  }
11344
11444
 
@@ -11993,8 +12093,6 @@ html:not([dir="rtl"]) .input-group .form-control:not(:last-child) {
11993
12093
  line-height: 1.2;
11994
12094
  line-height: var(--line-height-title);
11995
12095
  letter-spacing: 0;
11996
- -webkit-hyphens: auto;
11997
- hyphens: auto;
11998
12096
  margin-bottom: 0;
11999
12097
  margin-bottom: initial;
12000
12098
  font-size: 1.375rem;
@@ -12021,6 +12119,48 @@ select[multiple].input-group-lg > .input-group-btn .btn {
12021
12119
  height: auto;
12022
12120
  }
12023
12121
 
12122
+ @supports (hyphenate-limit-chars: 1) {
12123
+ .input-group-lg > .form-control,
12124
+ .input-group-lg > .input-group-addon,
12125
+ .input-group-lg > .input-group-btn .btn {
12126
+ -webkit-hyphens: auto;
12127
+ hyphens: auto;
12128
+ hyphenate-limit-chars: 7 3;
12129
+ }
12130
+ @media (min-width: 768px) {
12131
+ .input-group-lg > .form-control,
12132
+ .input-group-lg > .input-group-addon,
12133
+ .input-group-lg > .input-group-btn .btn {
12134
+ hyphenate-limit-chars: 8 3;
12135
+ }
12136
+ }
12137
+ @media (min-width: 992px) {
12138
+ .input-group-lg > .form-control,
12139
+ .input-group-lg > .input-group-addon,
12140
+ .input-group-lg > .input-group-btn .btn {
12141
+ hyphenate-limit-chars: 10 4 3;
12142
+ }
12143
+ }
12144
+ }
12145
+
12146
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
12147
+ .input-group-lg > .form-control,
12148
+ .input-group-lg > .input-group-addon,
12149
+ .input-group-lg > .input-group-btn .btn {
12150
+ -webkit-hyphens: auto;
12151
+ hyphens: auto;
12152
+ -webkit-hyphenate-limit-before: 3;
12153
+ -webkit-hyphenate-limit-after: 3;
12154
+ }
12155
+ @media (min-width: 992px) {
12156
+ .input-group-lg > .form-control,
12157
+ .input-group-lg > .input-group-addon,
12158
+ .input-group-lg > .input-group-btn .btn {
12159
+ -webkit-hyphenate-limit-before: 4;
12160
+ }
12161
+ }
12162
+ }
12163
+
12024
12164
  .input-group-lg > .form-control + p,
12025
12165
  .input-group-lg > .input-group-addon + p,
12026
12166
  .input-group-lg > .input-group-btn .btn + p,
@@ -12991,8 +13131,6 @@ li > a > .currency-flag:first-child {
12991
13131
  line-height: 1.2;
12992
13132
  line-height: var(--line-height-title);
12993
13133
  letter-spacing: 0;
12994
- -webkit-hyphens: auto;
12995
- hyphens: auto;
12996
13134
  font-size: 1.125rem;
12997
13135
  font-size: var(--font-size-18);
12998
13136
  font-weight: 600;
@@ -13001,6 +13139,38 @@ li > a > .currency-flag:first-child {
13001
13139
  line-height: 135%;
13002
13140
  }
13003
13141
 
13142
+ @supports (hyphenate-limit-chars: 1) {
13143
+ .decision__title {
13144
+ -webkit-hyphens: auto;
13145
+ hyphens: auto;
13146
+ hyphenate-limit-chars: 7 3;
13147
+ }
13148
+ @media (min-width: 768px) {
13149
+ .decision__title {
13150
+ hyphenate-limit-chars: 8 3;
13151
+ }
13152
+ }
13153
+ @media (min-width: 992px) {
13154
+ .decision__title {
13155
+ hyphenate-limit-chars: 10 4 3;
13156
+ }
13157
+ }
13158
+ }
13159
+
13160
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
13161
+ .decision__title {
13162
+ -webkit-hyphens: auto;
13163
+ hyphens: auto;
13164
+ -webkit-hyphenate-limit-before: 3;
13165
+ -webkit-hyphenate-limit-after: 3;
13166
+ }
13167
+ @media (min-width: 992px) {
13168
+ .decision__title {
13169
+ -webkit-hyphenate-limit-before: 4;
13170
+ }
13171
+ }
13172
+ }
13173
+
13004
13174
  .decision__title + p,
13005
13175
  .decision__title + ul:not(.list-unstyled),
13006
13176
  .decision__title + ol:not(.list-unstyled) {
@@ -13510,8 +13680,6 @@ li > a > .currency-flag:first-child {
13510
13680
  line-height: 1.2;
13511
13681
  line-height: var(--line-height-title);
13512
13682
  letter-spacing: 0;
13513
- -webkit-hyphens: auto;
13514
- hyphens: auto;
13515
13683
  font-weight: 500;
13516
13684
  font-weight: var(--font-weight-medium);
13517
13685
  font-size: 0.875rem;
@@ -13520,6 +13688,38 @@ li > a > .currency-flag:first-child {
13520
13688
  line-height: 140%;
13521
13689
  }
13522
13690
 
13691
+ @supports (hyphenate-limit-chars: 1) {
13692
+ .dropdown-header {
13693
+ -webkit-hyphens: auto;
13694
+ hyphens: auto;
13695
+ hyphenate-limit-chars: 7 3;
13696
+ }
13697
+ @media (min-width: 768px) {
13698
+ .dropdown-header {
13699
+ hyphenate-limit-chars: 8 3;
13700
+ }
13701
+ }
13702
+ @media (min-width: 992px) {
13703
+ .dropdown-header {
13704
+ hyphenate-limit-chars: 10 4 3;
13705
+ }
13706
+ }
13707
+ }
13708
+
13709
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
13710
+ .dropdown-header {
13711
+ -webkit-hyphens: auto;
13712
+ hyphens: auto;
13713
+ -webkit-hyphenate-limit-before: 3;
13714
+ -webkit-hyphenate-limit-after: 3;
13715
+ }
13716
+ @media (min-width: 992px) {
13717
+ .dropdown-header {
13718
+ -webkit-hyphenate-limit-before: 4;
13719
+ }
13720
+ }
13721
+ }
13722
+
13523
13723
  .dropdown-header + p,
13524
13724
  .dropdown-header + ul:not(.list-unstyled),
13525
13725
  .dropdown-header + ol:not(.list-unstyled) {
@@ -17338,8 +17538,6 @@ html:not([dir="rtl"]) .list-group-item {
17338
17538
  line-height: 1.2;
17339
17539
  line-height: var(--line-height-title);
17340
17540
  letter-spacing: 0;
17341
- -webkit-hyphens: auto;
17342
- hyphens: auto;
17343
17541
  font-weight: 500;
17344
17542
  font-weight: var(--font-weight-medium);
17345
17543
  font-size: 0.875rem;
@@ -17350,6 +17548,38 @@ html:not([dir="rtl"]) .list-group-item {
17350
17548
  color: var(--color-content-primary);
17351
17549
  }
17352
17550
 
17551
+ @supports (hyphenate-limit-chars: 1) {
17552
+ .list-group-item-heading {
17553
+ -webkit-hyphens: auto;
17554
+ hyphens: auto;
17555
+ hyphenate-limit-chars: 7 3;
17556
+ }
17557
+ @media (min-width: 768px) {
17558
+ .list-group-item-heading {
17559
+ hyphenate-limit-chars: 8 3;
17560
+ }
17561
+ }
17562
+ @media (min-width: 992px) {
17563
+ .list-group-item-heading {
17564
+ hyphenate-limit-chars: 10 4 3;
17565
+ }
17566
+ }
17567
+ }
17568
+
17569
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
17570
+ .list-group-item-heading {
17571
+ -webkit-hyphens: auto;
17572
+ hyphens: auto;
17573
+ -webkit-hyphenate-limit-before: 3;
17574
+ -webkit-hyphenate-limit-after: 3;
17575
+ }
17576
+ @media (min-width: 992px) {
17577
+ .list-group-item-heading {
17578
+ -webkit-hyphenate-limit-before: 4;
17579
+ }
17580
+ }
17581
+ }
17582
+
17353
17583
  .list-group-item-heading + p,
17354
17584
  .list-group-item-heading + ul:not(.list-unstyled),
17355
17585
  .list-group-item-heading + ol:not(.list-unstyled) {
@@ -21530,8 +21760,6 @@ html:not([dir="rtl"]) .panel > .table-responsive > .table-bordered > tfoot > tr
21530
21760
  line-height: 1.2;
21531
21761
  line-height: var(--line-height-title);
21532
21762
  letter-spacing: 0;
21533
- -webkit-hyphens: auto;
21534
- hyphens: auto;
21535
21763
  font-size: 1.125rem;
21536
21764
  font-size: var(--font-size-18);
21537
21765
  font-weight: 600;
@@ -21545,6 +21773,38 @@ html:not([dir="rtl"]) .panel > .table-responsive > .table-bordered > tfoot > tr
21545
21773
  color: var(--color-content-primary) !important;
21546
21774
  }
21547
21775
 
21776
+ @supports (hyphenate-limit-chars: 1) {
21777
+ .popover-title {
21778
+ -webkit-hyphens: auto;
21779
+ hyphens: auto;
21780
+ hyphenate-limit-chars: 7 3;
21781
+ }
21782
+ @media (min-width: 768px) {
21783
+ .popover-title {
21784
+ hyphenate-limit-chars: 8 3;
21785
+ }
21786
+ }
21787
+ @media (min-width: 992px) {
21788
+ .popover-title {
21789
+ hyphenate-limit-chars: 10 4 3;
21790
+ }
21791
+ }
21792
+ }
21793
+
21794
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
21795
+ .popover-title {
21796
+ -webkit-hyphens: auto;
21797
+ hyphens: auto;
21798
+ -webkit-hyphenate-limit-before: 3;
21799
+ -webkit-hyphenate-limit-after: 3;
21800
+ }
21801
+ @media (min-width: 992px) {
21802
+ .popover-title {
21803
+ -webkit-hyphenate-limit-before: 4;
21804
+ }
21805
+ }
21806
+ }
21807
+
21548
21808
  .popover-title + p,
21549
21809
  .popover-title + ul:not(.list-unstyled),
21550
21810
  .popover-title + ol:not(.list-unstyled) {
@@ -333,8 +333,6 @@
333
333
  line-height: 1.2;
334
334
  line-height: var(--line-height-title);
335
335
  letter-spacing: 0;
336
- -webkit-hyphens: auto;
337
- hyphens: auto;
338
336
  font-size: 1.125rem;
339
337
  font-size: var(--font-size-18);
340
338
  font-weight: 600;
@@ -346,6 +344,34 @@
346
344
  border-bottom: 0;
347
345
  border-radius: 2px 2px 0 0;
348
346
  color: var(--color-content-primary) !important;
347
+ }@supports (hyphenate-limit-chars: 1) {
348
+ .popover-title {
349
+ -webkit-hyphens: auto;
350
+ hyphens: auto;
351
+ hyphenate-limit-chars: 7 3;
352
+ }
353
+ @media (min-width: 768px) {
354
+ .popover-title {
355
+ hyphenate-limit-chars: 8 3;
356
+ }
357
+ }
358
+ @media (min-width: 992px) {
359
+ .popover-title {
360
+ hyphenate-limit-chars: 10 4 3;
361
+ }
362
+ }
363
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
364
+ .popover-title {
365
+ -webkit-hyphens: auto;
366
+ hyphens: auto;
367
+ -webkit-hyphenate-limit-before: 3;
368
+ -webkit-hyphenate-limit-after: 3;
369
+ }
370
+ @media (min-width: 992px) {
371
+ .popover-title {
372
+ -webkit-hyphenate-limit-before: 4;
373
+ }
374
+ }
349
375
  }.popover-title + p,
350
376
  .popover-title + ul:not(.list-unstyled),
351
377
  .popover-title + ol:not(.list-unstyled) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@transferwise/neptune-css",
3
3
  "description": "Neptune CSS library",
4
- "version": "14.24.3",
4
+ "version": "14.24.5",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -26,9 +26,9 @@
26
26
  "@transferwise/neptune-tokens": "^8.18.0"
27
27
  },
28
28
  "devDependencies": {
29
- "gulp": "^5.0.0",
30
- "modern-normalize": "^2.0.0",
31
- "@transferwise/less-config": "3.1.1",
29
+ "gulp": "^5.0.1",
30
+ "modern-normalize": "^3.0.1",
31
+ "@transferwise/less-config": "3.1.2",
32
32
  "@wise/wds-configs": "0.0.0"
33
33
  },
34
34
  "publishConfig": {
@@ -46,3 +46,28 @@
46
46
  padding-bottom: var(--size-96);
47
47
  }
48
48
  }
49
+
50
+ .np-text-hyphenated {
51
+ @supports (hyphenate-limit-chars: 1) {
52
+ hyphens: auto;
53
+ hyphenate-limit-chars: 7 3;
54
+
55
+ @media (--screen-md) {
56
+ hyphenate-limit-chars: 8 3;
57
+ }
58
+
59
+ @media (--screen-lg) {
60
+ hyphenate-limit-chars: 10 4 3;
61
+ }
62
+ }
63
+
64
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
65
+ hyphens: auto;
66
+ -webkit-hyphenate-limit-before: 3;
67
+ -webkit-hyphenate-limit-after: 3;
68
+
69
+ @media (--screen-lg) {
70
+ -webkit-hyphenate-limit-before: 4;
71
+ }
72
+ }
73
+ }
@@ -24,7 +24,7 @@ h6,
24
24
  color: var(--color-content-primary);
25
25
  line-height: var(--line-height-title);
26
26
  letter-spacing: 0;
27
- hyphens: auto;
27
+ .np-text-hyphenated;
28
28
 
29
29
  + p,
30
30
  + ul:not(.list-unstyled),
@@ -214,32 +214,9 @@ a,
214
214
  .np-text-display-medium,
215
215
  .np-text-display-small {
216
216
  letter-spacing: normal;
217
-
218
- @supports (hyphenate-limit-chars: 1) {
219
- hyphens: auto;
220
- hyphenate-limit-chars: 7 3;
221
-
222
- @media (--screen-md) {
223
- hyphenate-limit-chars: 8 3;
224
- }
225
-
226
- @media (--screen-lg) {
227
- hyphenate-limit-chars: 10 4 3;
228
- }
229
- }
230
-
231
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
232
- hyphens: auto;
233
- -webkit-hyphenate-limit-before: 3;
234
- -webkit-hyphenate-limit-after: 3;
235
-
236
- @media (--screen-lg) {
237
- -webkit-hyphenate-limit-before: 4;
238
- }
239
- }
217
+ .np-text-hyphenated;
240
218
  }
241
219
 
242
-
243
220
  .np-text-display-extra-large,
244
221
  .np-text-display-large {
245
222
  .display-formatting(var(--size-64), normal, var(--font-weight-bold));