@transferwise/neptune-css 14.9.2 → 14.9.4

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.
Files changed (58) hide show
  1. package/dist/css/accordion.css +0 -4
  2. package/dist/css/border-radius.css +0 -8
  3. package/dist/css/button-groups.css +0 -4
  4. package/dist/css/decision.css +0 -4
  5. package/dist/css/dropdowns.css +0 -8
  6. package/dist/css/flex.css +253 -417
  7. package/dist/css/footer.css +0 -8
  8. package/dist/css/input-groups.css +0 -8
  9. package/dist/css/navbar-base.css +339 -168
  10. package/dist/css/navbar.css +107 -49
  11. package/dist/css/neptune-addons.css +893 -421
  12. package/dist/css/neptune-core.css +209 -233
  13. package/dist/css/neptune.css +15708 -15023
  14. package/dist/css/popovers.css +0 -8
  15. package/dist/css/tooltip.css +0 -4
  16. package/dist/css/utilities.css +72 -1202
  17. package/package.json +1 -1
  18. package/src/less/addons/_display-utilities.less +159 -0
  19. package/src/less/addons/_spacing-utilities.less +26 -3
  20. package/src/less/addons/_utilities.less +147 -0
  21. package/src/less/border-radius.less +3 -1
  22. package/src/less/core/_scaffolding.less +27 -7
  23. package/src/less/core/_typography-utilities.less +237 -17
  24. package/src/less/core/_typography.less +9 -65
  25. package/src/less/flex.less +18 -9
  26. package/src/less/{addons → mixins}/_center-block.less +4 -2
  27. package/src/less/mixins/_flex.less +105 -0
  28. package/src/less/navbar.less +2 -10
  29. package/src/less/neptune-addons.less +1 -4
  30. package/src/less/utilities.less +141 -29
  31. package/src/less/utilities/align-items.less +0 -107
  32. package/src/less/utilities/align-self.less +0 -107
  33. package/src/less/utilities/border-radius.less +0 -11
  34. package/src/less/utilities/color.less +0 -70
  35. package/src/less/utilities/cursor.less +0 -3
  36. package/src/less/utilities/display.less +0 -178
  37. package/src/less/utilities/flex-direction.less +0 -47
  38. package/src/less/utilities/flex-grow.less +0 -27
  39. package/src/less/utilities/flex-wrap.less +0 -47
  40. package/src/less/utilities/float.less +0 -77
  41. package/src/less/utilities/font-weight.less +0 -11
  42. package/src/less/utilities/gap.less +0 -3
  43. package/src/less/utilities/justify-content.less +0 -107
  44. package/src/less/utilities/margin.less +0 -192
  45. package/src/less/utilities/max-width.less +0 -3
  46. package/src/less/utilities/order.less +0 -87
  47. package/src/less/utilities/outline-style.less +0 -8
  48. package/src/less/utilities/overflow-wrap.less +0 -3
  49. package/src/less/utilities/padding.less +0 -179
  50. package/src/less/utilities/position.less +0 -3
  51. package/src/less/utilities/rotate.less +0 -12
  52. package/src/less/utilities/screen-reader.less +0 -24
  53. package/src/less/utilities/text-align.less +0 -87
  54. package/src/less/utilities/text-decoration-line.less +0 -8
  55. package/src/less/utilities/text-overflow.less +0 -7
  56. package/src/less/utilities/text-transform.less +0 -11
  57. package/src/less/utilities/visibility.less +0 -3
  58. package/src/less/utilities/white-space.less +0 -27
@@ -311,28 +311,6 @@ Add the correct display in Chrome and Safari.
311
311
  summary {
312
312
  display: list-item;
313
313
  }
314
- /* TODO: Remove utility imports to prevent duplicates */
315
- .sr-only {
316
- position: absolute;
317
- width: 1px;
318
- height: 1px;
319
- padding: 0;
320
- margin: -1px;
321
- overflow: hidden;
322
- clip: rect(0, 0, 0, 0);
323
- white-space: nowrap;
324
- border-width: 0;
325
- }
326
- .sr-only-focusable:focus {
327
- position: static;
328
- width: auto;
329
- height: auto;
330
- padding: 0;
331
- margin: 0;
332
- overflow: visible;
333
- clip: auto;
334
- white-space: normal;
335
- }
336
314
  :root {
337
315
  --base-font-size: 16px;
338
316
  --font-family-regular: "Inter", Helvetica, Arial, sans-serif;
@@ -733,8 +711,7 @@ video {
733
711
  border-radius: var(--radius-small);
734
712
  }
735
713
  .img-circle {
736
- border-radius: 9999px;
737
- border-radius: var(--radius-full);
714
+ border-radius: 50%;
738
715
  }
739
716
  .disabled,
740
717
  :disabled {
@@ -742,6 +719,25 @@ video {
742
719
  opacity: 0.45;
743
720
  cursor: not-allowed !important;
744
721
  }
722
+ .sr-only {
723
+ position: absolute;
724
+ width: 1px;
725
+ height: 1px;
726
+ margin: -1px;
727
+ padding: 0;
728
+ overflow: hidden;
729
+ border: 0;
730
+ clip: rect(0, 0, 0, 0);
731
+ }
732
+ .sr-only-focusable:active,
733
+ .sr-only-focusable:focus {
734
+ position: static;
735
+ width: auto;
736
+ height: auto;
737
+ margin: 0;
738
+ overflow: visible;
739
+ clip: auto;
740
+ }
745
741
  /* stylelint-disable selector-max-empty-lines */
746
742
  /* DEPRECATED: use .np-text-*-title instead */
747
743
  /* stylelint-disable-next-line selector-list-comma-newline-after */
@@ -916,60 +912,7 @@ h6,
916
912
  letter-spacing: -0.006em;
917
913
  line-height: 140%;
918
914
  }
919
- .body-1,
920
- .body-2,
921
- .body-3,
922
- .label,
923
- .value,
924
- .np-text-body-default {
925
- font-weight: 400;
926
- font-weight: var(--font-weight-regular);
927
- line-height: 1.5;
928
- line-height: var(--line-height-body);
929
- }
930
- .body-1,
931
- .np-text-body-default,
932
- .np-text-body-default-bold {
933
- font-size: 1rem;
934
- font-size: var(--font-size-16);
935
- }
936
- .np-text-body-default-bold {
937
- font-weight: 800;
938
- font-weight: var(--font-weight-bold);
939
- }
940
- .body-2 {
941
- font-size: 0.875rem;
942
- font-size: var(--font-size-14);
943
- }
944
- .body-3 {
945
- font-size: 0.75rem;
946
- font-size: var(--font-size-12);
947
- }
948
- .control-1,
949
- .control-2 {
950
- color: #0097c7;
951
- color: var(--color-content-accent);
952
- font-weight: 600;
953
- font-weight: var(--font-weight-semi-bold);
954
- line-height: 1.2;
955
- line-height: var(--line-height-title);
956
- }
957
- .control-1 {
958
- font-size: 1rem;
959
- font-size: var(--font-size-16);
960
- }
961
- .control-2 {
962
- font-size: 0.875rem;
963
- font-size: var(--font-size-14);
964
- }
965
- .label {
966
- font-size: 0.875rem;
967
- font-size: var(--font-size-14);
968
- }
969
- .value {
970
- font-size: 1rem;
971
- font-size: var(--font-size-16);
972
- }
915
+ /* DEPRECATED: use .np-text-title-body instead */
973
916
  .lead {
974
917
  margin-bottom: 24px;
975
918
  margin-bottom: var(--size-24);
@@ -978,21 +921,9 @@ h6,
978
921
  line-height: 1.2;
979
922
  line-height: var(--line-height-title);
980
923
  }
981
- small,
982
- .small,
983
- .body-2 {
984
- font-size: 0.875rem;
985
- font-size: var(--font-size-14);
986
- line-height: 1.5;
987
- line-height: var(--line-height-body);
988
- }
989
924
  .tiny {
990
925
  color: #5d7079;
991
926
  color: var(--color-content-secondary);
992
- font-size: 0.75rem;
993
- font-size: var(--font-size-12);
994
- line-height: 1.5;
995
- line-height: var(--line-height-body);
996
927
  }
997
928
  /* DEPRECATED: use .np-text-body-default instead */
998
929
  /* stylelint-disable-next-line selector-list-comma-newline-after */
@@ -1003,6 +934,7 @@ small,
1003
934
  .small,
1004
935
  .tiny,
1005
936
  body,
937
+ small,
1006
938
  .np-text-body-default {
1007
939
  font-size: 0.875rem;
1008
940
  font-size: var(--font-size-14);
@@ -1015,15 +947,13 @@ body,
1015
947
  /* stylelint-disable-next-line selector-list-comma-newline-after */
1016
948
  .control-2,
1017
949
  .np-text-body-default-bold {
950
+ font-size: 0.875rem;
951
+ font-size: var(--font-size-14);
1018
952
  line-height: 155%;
1019
953
  letter-spacing: -0.006em;
1020
954
  font-weight: 600;
1021
955
  font-weight: var(--font-weight-semi-bold);
1022
956
  }
1023
- .np-text-body-default-bold {
1024
- font-size: 0.875rem;
1025
- font-size: var(--font-size-14);
1026
- }
1027
957
  /* DEPRECATED: use .np-text-body-large instead */
1028
958
  /* stylelint-disable-next-line selector-list-comma-newline-after */
1029
959
  .body-1,
@@ -1526,6 +1456,7 @@ a,
1526
1456
  font-weight: 600;
1527
1457
  font-weight: var(--font-weight-semi-bold);
1528
1458
  }
1459
+ /* DEPRECATED: use `.np-text-display-*` instead */
1529
1460
  .display-1 {
1530
1461
  margin-bottom: 24px;
1531
1462
  margin-bottom: var(--size-24);
@@ -1539,6 +1470,7 @@ a,
1539
1470
  font-size: 6.5rem;
1540
1471
  }
1541
1472
  }
1473
+ /* DEPRECATED: use `.np-text-display-*` instead */
1542
1474
  .display-2 {
1543
1475
  margin-bottom: 24px;
1544
1476
  margin-bottom: var(--size-24);
@@ -1552,6 +1484,7 @@ a,
1552
1484
  font-size: 5.5rem;
1553
1485
  }
1554
1486
  }
1487
+ /* DEPRECATED: use `.np-text-display-*` instead */
1555
1488
  .display-3 {
1556
1489
  margin-bottom: 8px;
1557
1490
  margin-bottom: var(--size-8);
@@ -1564,6 +1497,7 @@ a,
1564
1497
  font-size: 4.5rem;
1565
1498
  }
1566
1499
  }
1500
+ /* DEPRECATED: use `.np-text-display-*` instead */
1567
1501
  .display-4 {
1568
1502
  margin-bottom: 4px;
1569
1503
  margin-bottom: var(--size-4);
@@ -1577,6 +1511,7 @@ a,
1577
1511
  font-size: 3.5rem;
1578
1512
  }
1579
1513
  }
1514
+ /* DEPRECATED: use `.np-text-display-*` instead */
1580
1515
  .display-5 {
1581
1516
  margin-bottom: 4px;
1582
1517
  margin-bottom: var(--size-4);
@@ -1785,87 +1720,17 @@ kbd kbd {
1785
1720
  font-weight: var(--font-weight-bold);
1786
1721
  font-size: 100%;
1787
1722
  }
1788
- /* TODO: Remove utility imports to prevent duplicates */
1789
- .text-primary {
1790
- color: #37517e !important;
1791
- color: var(--color-content-primary) !important;
1792
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1793
- }
1794
- .bg-primary .text-primary {
1795
- color: #ffffff !important;
1796
- }
1797
- .text-secondary {
1798
- color: #5d7079 !important;
1799
- color: var(--color-content-secondary) !important;
1800
- }
1801
- .text-muted {
1802
- color: #768e9c !important;
1803
- color: var(--color-content-tertiary) !important;
1804
- }
1805
- .text-accent,
1806
- .text-info {
1807
- color: var(--color-interactive-primary) !important;
1808
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1809
- }
1810
- .bg-primary .text-accent,
1811
- .bg-primary .text-info {
1812
- color: #00b9ff !important;
1813
- }
1814
- .text-negative,
1815
- .text-danger {
1816
- color: var(--color-sentiment-negative) !important;
1817
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1818
- }
1819
- .bg-primary .text-negative,
1820
- .bg-primary .text-danger {
1821
- color: #ffa6a9 !important;
1822
- }
1823
- .text-positive,
1824
- .text-success {
1825
- color: var(--color-sentiment-positive) !important;
1826
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1827
- }
1828
- .bg-primary .text-positive,
1829
- .bg-primary .text-success {
1830
- color: #6fd698 !important;
1831
- }
1832
- /**
1833
- * @deprecated This makes text inaccessible. Use background color in combination with `.text-primary` instead.
1834
- */
1835
- .text-warning {
1836
- color: var(--color-sentiment-warning) !important;
1837
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1838
- }
1839
- .bg-primary .text-warning {
1840
- color: #ffd184 !important;
1841
- }
1842
- /**
1843
- * @deprecated Navy colors are obsolete.
1844
- */
1845
- .text-inverse {
1846
- color: #ffffff !important;
1847
- }
1848
- a.text-inverse:hover,
1849
- a.text-inverse:focus {
1850
- color: #c9cbce !important;
1851
- }
1852
- .font-weight-normal {
1853
- font-weight: 400 !important;
1854
- font-weight: var(--font-weight-regular) !important;
1855
- }
1856
- .font-weight-semi-bold {
1857
- font-weight: 600 !important;
1858
- font-weight: var(--font-weight-semi-bold) !important;
1723
+ .text-xs-left {
1724
+ text-align: left;
1859
1725
  }
1860
- .font-weight-bold {
1861
- font-weight: 800 !important;
1862
- font-weight: var(--font-weight-bold) !important;
1726
+ [dir="rtl"] .text-xs-left {
1727
+ text-align: right;
1863
1728
  }
1864
- .text-max-width {
1865
- max-width: 600px;
1729
+ .text-xs-right {
1730
+ text-align: right;
1866
1731
  }
1867
- .text-word-break {
1868
- word-wrap: break-word;
1732
+ [dir="rtl"] .text-xs-right {
1733
+ text-align: left;
1869
1734
  }
1870
1735
  .text-xs-center {
1871
1736
  text-align: center;
@@ -1873,123 +1738,234 @@ a.text-inverse:focus {
1873
1738
  .text-xs-justify {
1874
1739
  text-align: justify;
1875
1740
  }
1876
- .text-xs-left {
1877
- text-align: start;
1878
- }
1879
- .text-xs-right {
1880
- text-align: end;
1741
+ .text-xs-nowrap {
1742
+ white-space: nowrap;
1881
1743
  }
1882
1744
  @media (min-width: 576px) {
1745
+ .text-sm-left {
1746
+ text-align: left;
1747
+ }
1748
+ [dir="rtl"] .text-sm-left {
1749
+ text-align: right;
1750
+ }
1751
+ .text-sm-right {
1752
+ text-align: right;
1753
+ }
1754
+ [dir="rtl"] .text-sm-right {
1755
+ text-align: left;
1756
+ }
1883
1757
  .text-sm-center {
1884
1758
  text-align: center;
1885
1759
  }
1886
1760
  .text-sm-justify {
1887
1761
  text-align: justify;
1888
1762
  }
1889
- .text-sm-left {
1890
- text-align: start;
1891
- }
1892
- .text-sm-right {
1893
- text-align: end;
1763
+ .text-sm-nowrap {
1764
+ white-space: nowrap;
1894
1765
  }
1895
1766
  }
1896
1767
  @media (min-width: 768px) {
1768
+ .text-md-left {
1769
+ text-align: left;
1770
+ }
1771
+ [dir="rtl"] .text-md-left {
1772
+ text-align: right;
1773
+ }
1774
+ .text-md-right {
1775
+ text-align: right;
1776
+ }
1777
+ [dir="rtl"] .text-md-right {
1778
+ text-align: left;
1779
+ }
1897
1780
  .text-md-center {
1898
1781
  text-align: center;
1899
1782
  }
1900
1783
  .text-md-justify {
1901
1784
  text-align: justify;
1902
1785
  }
1903
- .text-md-left {
1904
- text-align: start;
1905
- }
1906
- .text-md-right {
1907
- text-align: end;
1786
+ .text-md-nowrap {
1787
+ white-space: nowrap;
1908
1788
  }
1909
1789
  }
1910
1790
  @media (min-width: 992px) {
1791
+ .text-lg-left {
1792
+ text-align: left;
1793
+ }
1794
+ [dir="rtl"] .text-lg-left {
1795
+ text-align: right;
1796
+ }
1797
+ .text-lg-right {
1798
+ text-align: right;
1799
+ }
1800
+ [dir="rtl"] .text-lg-right {
1801
+ text-align: left;
1802
+ }
1911
1803
  .text-lg-center {
1912
1804
  text-align: center;
1913
1805
  }
1914
1806
  .text-lg-justify {
1915
1807
  text-align: justify;
1916
1808
  }
1917
- .text-lg-left {
1918
- text-align: start;
1919
- }
1920
- .text-lg-right {
1921
- text-align: end;
1809
+ .text-lg-nowrap {
1810
+ white-space: nowrap;
1922
1811
  }
1923
1812
  }
1924
1813
  @media (min-width: 1200px) {
1814
+ .text-xl-left {
1815
+ text-align: left;
1816
+ }
1817
+ [dir="rtl"] .text-xl-left {
1818
+ text-align: right;
1819
+ }
1820
+ .text-xl-right {
1821
+ text-align: right;
1822
+ }
1823
+ [dir="rtl"] .text-xl-right {
1824
+ text-align: left;
1825
+ }
1925
1826
  .text-xl-center {
1926
1827
  text-align: center;
1927
1828
  }
1928
1829
  .text-xl-justify {
1929
1830
  text-align: justify;
1930
1831
  }
1931
- .text-xl-left {
1932
- text-align: start;
1933
- }
1934
- .text-xl-right {
1935
- text-align: end;
1832
+ .text-xl-nowrap {
1833
+ white-space: nowrap;
1936
1834
  }
1937
1835
  }
1836
+ .text-lowercase {
1837
+ text-transform: lowercase;
1838
+ }
1839
+ .text-uppercase {
1840
+ text-transform: uppercase;
1841
+ }
1842
+ .text-capitalize {
1843
+ text-transform: capitalize;
1844
+ }
1938
1845
  .text-underline {
1939
- text-decoration-line: underline !important;
1940
- text-underline-offset: 2px;
1846
+ text-decoration: underline;
1847
+ -webkit-text-decoration: underline !important;
1848
+ text-decoration: underline !important;
1849
+ text-underline-offset: 0.3em;
1941
1850
  }
1942
1851
  .text-no-decoration {
1943
- text-decoration-line: none !important;
1852
+ -webkit-text-decoration: none !important;
1853
+ text-decoration: none !important;
1944
1854
  }
1945
1855
  .text-ellipsis,
1946
1856
  .text-ellipses {
1947
1857
  display: block;
1948
- overflow: hidden;
1949
1858
  text-overflow: ellipsis;
1950
1859
  white-space: nowrap;
1860
+ overflow: hidden;
1951
1861
  }
1952
- .text-uppercase {
1953
- text-transform: uppercase;
1862
+ .text-max-width {
1863
+ max-width: 600px;
1954
1864
  }
1955
- .text-lowercase {
1956
- text-transform: lowercase;
1865
+ .text-word-break {
1866
+ word-break: break-all;
1957
1867
  }
1958
- .text-capitalize {
1959
- text-transform: capitalize;
1868
+ .font-weight-bold {
1869
+ font-weight: 800 !important;
1870
+ font-weight: var(--font-weight-bold) !important;
1960
1871
  }
1961
- .text-xs-nowrap {
1962
- white-space: nowrap;
1872
+ .font-weight-semi-bold {
1873
+ font-weight: 600 !important;
1874
+ font-weight: var(--font-weight-semi-bold) !important;
1963
1875
  }
1964
- @media (min-width: 576px) {
1965
- .text-sm-nowrap {
1966
- white-space: nowrap;
1967
- }
1876
+ .font-weight-normal {
1877
+ font-weight: 400 !important;
1878
+ font-weight: var(--font-weight-regular) !important;
1968
1879
  }
1969
- @media (min-width: 768px) {
1970
- .text-md-nowrap {
1971
- white-space: nowrap;
1972
- }
1880
+ .font-italic {
1881
+ font-style: italic !important;
1973
1882
  }
1974
- @media (min-width: 992px) {
1975
- .text-lg-nowrap {
1976
- white-space: nowrap;
1977
- }
1883
+ .text-primary {
1884
+ color: #37517e !important;
1885
+ color: var(--color-content-primary) !important;
1978
1886
  }
1979
- @media (min-width: 1200px) {
1980
- .text-xl-nowrap {
1981
- white-space: nowrap;
1982
- }
1887
+ a.text-primary:hover,
1888
+ a.text-primary:focus {
1889
+ color: #37517e !important;
1890
+ color: var(--color-content-primary) !important;
1983
1891
  }
1984
- /**
1985
- * @deprecated Obsolete since the brand has turned green.
1986
- */
1987
- .font-italic {
1988
- font-style: italic !important;
1892
+ .bg-primary .text-primary {
1893
+ color: #ffffff !important;
1894
+ }
1895
+ .text-secondary {
1896
+ color: #5d7079 !important;
1897
+ color: var(--color-content-secondary) !important;
1898
+ }
1899
+ .text-positive,
1900
+ .text-success {
1901
+ color: #008026 !important;
1902
+ color: var(--color-content-positive) !important;
1903
+ }
1904
+ a.text-positive:hover,
1905
+ a.text-success:hover,
1906
+ a.text-positive:focus,
1907
+ a.text-success:focus {
1908
+ color: #006d13 !important;
1909
+ color: var(--color-content-positive-hover) !important;
1910
+ }
1911
+ .bg-primary .text-positive,
1912
+ .bg-primary .text-success {
1913
+ color: #6fd698 !important;
1914
+ }
1915
+ .text-accent,
1916
+ .text-info {
1917
+ color: #0097c7 !important;
1918
+ color: var(--color-content-accent) !important;
1919
+ color: var(--color-interactive-primary) !important;
1920
+ }
1921
+ a.text-accent:hover,
1922
+ a.text-info:hover,
1923
+ a.text-accent:focus,
1924
+ a.text-info:focus {
1925
+ color: #0084b3 !important;
1926
+ color: var(--color-content-accent-hover) !important;
1927
+ }
1928
+ .bg-primary .text-accent,
1929
+ .bg-primary .text-info {
1930
+ color: #00b9ff !important;
1931
+ }
1932
+ .text-warning {
1933
+ color: #9a6500 !important;
1934
+ color: var(--color-content-warning) !important;
1935
+ }
1936
+ a.text-warning:hover,
1937
+ a.text-warning:focus {
1938
+ color: #855400 !important;
1939
+ color: var(--color-content-warning-hover) !important;
1940
+ }
1941
+ .bg-primary .text-warning {
1942
+ color: #ffd184 !important;
1943
+ }
1944
+ .text-negative,
1945
+ .text-danger {
1946
+ color: var(--color-sentiment-negative) !important;
1947
+ }
1948
+ a.text-negative:hover,
1949
+ a.text-danger:hover,
1950
+ a.text-negative:focus,
1951
+ a.text-danger:focus {
1952
+ color: var(--color-sentiment-negative-hover) !important;
1953
+ }
1954
+ .bg-primary .text-negative,
1955
+ .bg-primary .text-danger {
1956
+ color: #ffa6a9 !important;
1957
+ }
1958
+ .text-inverse {
1959
+ color: #ffffff !important;
1960
+ }
1961
+ a.text-inverse:hover,
1962
+ a.text-inverse:focus {
1963
+ color: #c9cbce !important;
1964
+ }
1965
+ .text-muted {
1966
+ color: #768e9c !important;
1967
+ color: var(--color-content-tertiary) !important;
1989
1968
  }
1990
- /**
1991
- * @deprecated Obsolete since the brand has turned green.
1992
- */
1993
1969
  .colored-dot::after {
1994
1970
  content: none;
1995
1971
  }