@transferwise/neptune-css 14.9.1 → 14.9.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.
Files changed (50) hide show
  1. package/dist/css/border-radius.css +0 -8
  2. package/dist/css/flex.css +253 -417
  3. package/dist/css/navbar-base.css +339 -168
  4. package/dist/css/navbar.css +107 -41
  5. package/dist/css/neptune-addons.css +893 -421
  6. package/dist/css/neptune-core.css +203 -169
  7. package/dist/css/neptune.css +15450 -14660
  8. package/dist/css/ring.css +0 -4
  9. package/dist/css/utilities.css +72 -1202
  10. package/package.json +1 -1
  11. package/src/less/addons/_display-utilities.less +159 -0
  12. package/src/less/addons/_spacing-utilities.less +26 -3
  13. package/src/less/addons/_utilities.less +147 -0
  14. package/src/less/border-radius.less +3 -1
  15. package/src/less/core/_scaffolding.less +29 -9
  16. package/src/less/core/_typography-utilities.less +237 -17
  17. package/src/less/flex.less +18 -9
  18. package/src/less/{addons → mixins}/_center-block.less +4 -2
  19. package/src/less/mixins/_flex.less +105 -0
  20. package/src/less/navbar.less +2 -10
  21. package/src/less/neptune-addons.less +1 -4
  22. package/src/less/utilities.less +141 -29
  23. package/src/less/utilities/align-items.less +0 -107
  24. package/src/less/utilities/align-self.less +0 -107
  25. package/src/less/utilities/border-radius.less +0 -11
  26. package/src/less/utilities/color.less +0 -70
  27. package/src/less/utilities/cursor.less +0 -3
  28. package/src/less/utilities/display.less +0 -178
  29. package/src/less/utilities/flex-direction.less +0 -47
  30. package/src/less/utilities/flex-grow.less +0 -27
  31. package/src/less/utilities/flex-wrap.less +0 -47
  32. package/src/less/utilities/float.less +0 -77
  33. package/src/less/utilities/font-weight.less +0 -11
  34. package/src/less/utilities/gap.less +0 -3
  35. package/src/less/utilities/justify-content.less +0 -107
  36. package/src/less/utilities/margin.less +0 -192
  37. package/src/less/utilities/max-width.less +0 -3
  38. package/src/less/utilities/order.less +0 -87
  39. package/src/less/utilities/outline-style.less +0 -8
  40. package/src/less/utilities/overflow-wrap.less +0 -3
  41. package/src/less/utilities/padding.less +0 -179
  42. package/src/less/utilities/position.less +0 -3
  43. package/src/less/utilities/rotate.less +0 -12
  44. package/src/less/utilities/screen-reader.less +0 -24
  45. package/src/less/utilities/text-align.less +0 -87
  46. package/src/less/utilities/text-decoration-line.less +0 -8
  47. package/src/less/utilities/text-overflow.less +0 -7
  48. package/src/less/utilities/text-transform.less +0 -11
  49. package/src/less/utilities/visibility.less +0 -3
  50. package/src/less/utilities/white-space.less +0 -27
@@ -311,31 +311,9 @@ 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
- --font-family-regular: averta, avenir w02, avenir, helvetica, arial, sans-serif;
316
+ --font-family-regular: "Inter", Helvetica, Arial, sans-serif;
339
317
  --input-group-addon-padding: 12px 16px calc(12px - 2px);
340
318
  --btn-padding: 12px 24px calc(12px - 2px);
341
319
  --btn-xs-padding: 2px 8px calc(2px - 2px);
@@ -356,15 +334,13 @@ summary {
356
334
  .np-theme-navy {
357
335
  --font-family-regular: averta, avenir w02, avenir, helvetica, arial, sans-serif !important;
358
336
  font-family: averta, avenir w02, avenir, helvetica, arial, sans-serif;
359
- font-family: 'Inter', Helvetica, Arial, sans-serif;
360
337
  font-family: var(--font-family-regular);
361
338
  line-height: 1.5;
362
339
  line-height: var(--line-height-body);
363
340
  }
364
341
  .np-theme-personal {
365
- --font-family-regular: "Inter", sans-serif, helvetica, arial, sans-serif !important;
366
- font-family: "Inter", sans-serif, helvetica, arial, sans-serif;
367
- font-family: 'Inter', Helvetica, Arial, sans-serif;
342
+ --font-family-regular: "Inter", Helvetica, Arial, sans-serif !important;
343
+ font-family: "Inter", Helvetica, Arial, sans-serif;
368
344
  font-family: var(--font-family-regular);
369
345
  font-feature-settings: "calt";
370
346
  --input-group-addon-padding: 12px 16px;
@@ -396,7 +372,6 @@ summary {
396
372
  html {
397
373
  font-size: 16px;
398
374
  font-size: var(--base-font-size);
399
- font-family: averta, avenir w02, avenir, helvetica, arial, sans-serif;
400
375
  font-family: 'Inter', Helvetica, Arial, sans-serif;
401
376
  font-family: var(--font-family-regular);
402
377
  color: #5d7079;
@@ -736,8 +711,7 @@ video {
736
711
  border-radius: var(--radius-small);
737
712
  }
738
713
  .img-circle {
739
- border-radius: 9999px;
740
- border-radius: var(--radius-full);
714
+ border-radius: 50%;
741
715
  }
742
716
  .disabled,
743
717
  :disabled {
@@ -745,6 +719,25 @@ video {
745
719
  opacity: 0.45;
746
720
  cursor: not-allowed !important;
747
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
+ }
748
741
  /* stylelint-disable selector-max-empty-lines */
749
742
  /* DEPRECATED: use .np-text-*-title instead */
750
743
  /* stylelint-disable-next-line selector-list-comma-newline-after */
@@ -1788,87 +1781,17 @@ kbd kbd {
1788
1781
  font-weight: var(--font-weight-bold);
1789
1782
  font-size: 100%;
1790
1783
  }
1791
- /* TODO: Remove utility imports to prevent duplicates */
1792
- .text-primary {
1793
- color: #37517e !important;
1794
- color: var(--color-content-primary) !important;
1795
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1796
- }
1797
- .bg-primary .text-primary {
1798
- color: #ffffff !important;
1799
- }
1800
- .text-secondary {
1801
- color: #5d7079 !important;
1802
- color: var(--color-content-secondary) !important;
1803
- }
1804
- .text-muted {
1805
- color: #768e9c !important;
1806
- color: var(--color-content-tertiary) !important;
1807
- }
1808
- .text-accent,
1809
- .text-info {
1810
- color: var(--color-interactive-primary) !important;
1811
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1812
- }
1813
- .bg-primary .text-accent,
1814
- .bg-primary .text-info {
1815
- color: #00b9ff !important;
1816
- }
1817
- .text-negative,
1818
- .text-danger {
1819
- color: var(--color-sentiment-negative) !important;
1820
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1821
- }
1822
- .bg-primary .text-negative,
1823
- .bg-primary .text-danger {
1824
- color: #ffa6a9 !important;
1825
- }
1826
- .text-positive,
1827
- .text-success {
1828
- color: var(--color-sentiment-positive) !important;
1829
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1830
- }
1831
- .bg-primary .text-positive,
1832
- .bg-primary .text-success {
1833
- color: #6fd698 !important;
1834
- }
1835
- /**
1836
- * @deprecated This makes text inaccessible. Use background color in combination with `.text-primary` instead.
1837
- */
1838
- .text-warning {
1839
- color: var(--color-sentiment-warning) !important;
1840
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1841
- }
1842
- .bg-primary .text-warning {
1843
- color: #ffd184 !important;
1844
- }
1845
- /**
1846
- * @deprecated Navy colors are obsolete.
1847
- */
1848
- .text-inverse {
1849
- color: #ffffff !important;
1850
- }
1851
- a.text-inverse:hover,
1852
- a.text-inverse:focus {
1853
- color: #c9cbce !important;
1854
- }
1855
- .font-weight-normal {
1856
- font-weight: 400 !important;
1857
- font-weight: var(--font-weight-regular) !important;
1858
- }
1859
- .font-weight-semi-bold {
1860
- font-weight: 600 !important;
1861
- font-weight: var(--font-weight-semi-bold) !important;
1784
+ .text-xs-left {
1785
+ text-align: left;
1862
1786
  }
1863
- .font-weight-bold {
1864
- font-weight: 800 !important;
1865
- font-weight: var(--font-weight-bold) !important;
1787
+ [dir="rtl"] .text-xs-left {
1788
+ text-align: right;
1866
1789
  }
1867
- .text-max-width {
1868
- max-width: 600px;
1790
+ .text-xs-right {
1791
+ text-align: right;
1869
1792
  }
1870
- .text-word-break {
1871
- word-wrap: break-word;
1793
+ [dir="rtl"] .text-xs-right {
1794
+ text-align: left;
1872
1795
  }
1873
1796
  .text-xs-center {
1874
1797
  text-align: center;
@@ -1876,123 +1799,234 @@ a.text-inverse:focus {
1876
1799
  .text-xs-justify {
1877
1800
  text-align: justify;
1878
1801
  }
1879
- .text-xs-left {
1880
- text-align: start;
1881
- }
1882
- .text-xs-right {
1883
- text-align: end;
1802
+ .text-xs-nowrap {
1803
+ white-space: nowrap;
1884
1804
  }
1885
1805
  @media (min-width: 576px) {
1806
+ .text-sm-left {
1807
+ text-align: left;
1808
+ }
1809
+ [dir="rtl"] .text-sm-left {
1810
+ text-align: right;
1811
+ }
1812
+ .text-sm-right {
1813
+ text-align: right;
1814
+ }
1815
+ [dir="rtl"] .text-sm-right {
1816
+ text-align: left;
1817
+ }
1886
1818
  .text-sm-center {
1887
1819
  text-align: center;
1888
1820
  }
1889
1821
  .text-sm-justify {
1890
1822
  text-align: justify;
1891
1823
  }
1892
- .text-sm-left {
1893
- text-align: start;
1894
- }
1895
- .text-sm-right {
1896
- text-align: end;
1824
+ .text-sm-nowrap {
1825
+ white-space: nowrap;
1897
1826
  }
1898
1827
  }
1899
1828
  @media (min-width: 768px) {
1829
+ .text-md-left {
1830
+ text-align: left;
1831
+ }
1832
+ [dir="rtl"] .text-md-left {
1833
+ text-align: right;
1834
+ }
1835
+ .text-md-right {
1836
+ text-align: right;
1837
+ }
1838
+ [dir="rtl"] .text-md-right {
1839
+ text-align: left;
1840
+ }
1900
1841
  .text-md-center {
1901
1842
  text-align: center;
1902
1843
  }
1903
1844
  .text-md-justify {
1904
1845
  text-align: justify;
1905
1846
  }
1906
- .text-md-left {
1907
- text-align: start;
1908
- }
1909
- .text-md-right {
1910
- text-align: end;
1847
+ .text-md-nowrap {
1848
+ white-space: nowrap;
1911
1849
  }
1912
1850
  }
1913
1851
  @media (min-width: 992px) {
1852
+ .text-lg-left {
1853
+ text-align: left;
1854
+ }
1855
+ [dir="rtl"] .text-lg-left {
1856
+ text-align: right;
1857
+ }
1858
+ .text-lg-right {
1859
+ text-align: right;
1860
+ }
1861
+ [dir="rtl"] .text-lg-right {
1862
+ text-align: left;
1863
+ }
1914
1864
  .text-lg-center {
1915
1865
  text-align: center;
1916
1866
  }
1917
1867
  .text-lg-justify {
1918
1868
  text-align: justify;
1919
1869
  }
1920
- .text-lg-left {
1921
- text-align: start;
1922
- }
1923
- .text-lg-right {
1924
- text-align: end;
1870
+ .text-lg-nowrap {
1871
+ white-space: nowrap;
1925
1872
  }
1926
1873
  }
1927
1874
  @media (min-width: 1200px) {
1875
+ .text-xl-left {
1876
+ text-align: left;
1877
+ }
1878
+ [dir="rtl"] .text-xl-left {
1879
+ text-align: right;
1880
+ }
1881
+ .text-xl-right {
1882
+ text-align: right;
1883
+ }
1884
+ [dir="rtl"] .text-xl-right {
1885
+ text-align: left;
1886
+ }
1928
1887
  .text-xl-center {
1929
1888
  text-align: center;
1930
1889
  }
1931
1890
  .text-xl-justify {
1932
1891
  text-align: justify;
1933
1892
  }
1934
- .text-xl-left {
1935
- text-align: start;
1936
- }
1937
- .text-xl-right {
1938
- text-align: end;
1893
+ .text-xl-nowrap {
1894
+ white-space: nowrap;
1939
1895
  }
1940
1896
  }
1897
+ .text-lowercase {
1898
+ text-transform: lowercase;
1899
+ }
1900
+ .text-uppercase {
1901
+ text-transform: uppercase;
1902
+ }
1903
+ .text-capitalize {
1904
+ text-transform: capitalize;
1905
+ }
1941
1906
  .text-underline {
1942
- text-decoration-line: underline !important;
1943
- text-underline-offset: 2px;
1907
+ text-decoration: underline;
1908
+ -webkit-text-decoration: underline !important;
1909
+ text-decoration: underline !important;
1910
+ text-underline-offset: 0.3em;
1944
1911
  }
1945
1912
  .text-no-decoration {
1946
- text-decoration-line: none !important;
1913
+ -webkit-text-decoration: none !important;
1914
+ text-decoration: none !important;
1947
1915
  }
1948
1916
  .text-ellipsis,
1949
1917
  .text-ellipses {
1950
1918
  display: block;
1951
- overflow: hidden;
1952
1919
  text-overflow: ellipsis;
1953
1920
  white-space: nowrap;
1921
+ overflow: hidden;
1954
1922
  }
1955
- .text-uppercase {
1956
- text-transform: uppercase;
1923
+ .text-max-width {
1924
+ max-width: 600px;
1957
1925
  }
1958
- .text-lowercase {
1959
- text-transform: lowercase;
1926
+ .text-word-break {
1927
+ word-break: break-all;
1960
1928
  }
1961
- .text-capitalize {
1962
- text-transform: capitalize;
1929
+ .font-weight-bold {
1930
+ font-weight: 800 !important;
1931
+ font-weight: var(--font-weight-bold) !important;
1963
1932
  }
1964
- .text-xs-nowrap {
1965
- white-space: nowrap;
1933
+ .font-weight-semi-bold {
1934
+ font-weight: 600 !important;
1935
+ font-weight: var(--font-weight-semi-bold) !important;
1966
1936
  }
1967
- @media (min-width: 576px) {
1968
- .text-sm-nowrap {
1969
- white-space: nowrap;
1970
- }
1937
+ .font-weight-normal {
1938
+ font-weight: 400 !important;
1939
+ font-weight: var(--font-weight-regular) !important;
1971
1940
  }
1972
- @media (min-width: 768px) {
1973
- .text-md-nowrap {
1974
- white-space: nowrap;
1975
- }
1941
+ .font-italic {
1942
+ font-style: italic !important;
1976
1943
  }
1977
- @media (min-width: 992px) {
1978
- .text-lg-nowrap {
1979
- white-space: nowrap;
1980
- }
1944
+ .text-primary {
1945
+ color: #37517e !important;
1946
+ color: var(--color-content-primary) !important;
1981
1947
  }
1982
- @media (min-width: 1200px) {
1983
- .text-xl-nowrap {
1984
- white-space: nowrap;
1985
- }
1948
+ a.text-primary:hover,
1949
+ a.text-primary:focus {
1950
+ color: #37517e !important;
1951
+ color: var(--color-content-primary) !important;
1986
1952
  }
1987
- /**
1988
- * @deprecated Obsolete since the brand has turned green.
1989
- */
1990
- .font-italic {
1991
- font-style: italic !important;
1953
+ .bg-primary .text-primary {
1954
+ color: #ffffff !important;
1955
+ }
1956
+ .text-secondary {
1957
+ color: #5d7079 !important;
1958
+ color: var(--color-content-secondary) !important;
1959
+ }
1960
+ .text-positive,
1961
+ .text-success {
1962
+ color: #008026 !important;
1963
+ color: var(--color-content-positive) !important;
1964
+ }
1965
+ a.text-positive:hover,
1966
+ a.text-success:hover,
1967
+ a.text-positive:focus,
1968
+ a.text-success:focus {
1969
+ color: #006d13 !important;
1970
+ color: var(--color-content-positive-hover) !important;
1971
+ }
1972
+ .bg-primary .text-positive,
1973
+ .bg-primary .text-success {
1974
+ color: #6fd698 !important;
1975
+ }
1976
+ .text-accent,
1977
+ .text-info {
1978
+ color: #0097c7 !important;
1979
+ color: var(--color-content-accent) !important;
1980
+ color: var(--color-interactive-primary) !important;
1981
+ }
1982
+ a.text-accent:hover,
1983
+ a.text-info:hover,
1984
+ a.text-accent:focus,
1985
+ a.text-info:focus {
1986
+ color: #0084b3 !important;
1987
+ color: var(--color-content-accent-hover) !important;
1988
+ }
1989
+ .bg-primary .text-accent,
1990
+ .bg-primary .text-info {
1991
+ color: #00b9ff !important;
1992
+ }
1993
+ .text-warning {
1994
+ color: #9a6500 !important;
1995
+ color: var(--color-content-warning) !important;
1996
+ }
1997
+ a.text-warning:hover,
1998
+ a.text-warning:focus {
1999
+ color: #855400 !important;
2000
+ color: var(--color-content-warning-hover) !important;
2001
+ }
2002
+ .bg-primary .text-warning {
2003
+ color: #ffd184 !important;
2004
+ }
2005
+ .text-negative,
2006
+ .text-danger {
2007
+ color: var(--color-sentiment-negative) !important;
2008
+ }
2009
+ a.text-negative:hover,
2010
+ a.text-danger:hover,
2011
+ a.text-negative:focus,
2012
+ a.text-danger:focus {
2013
+ color: var(--color-sentiment-negative-hover) !important;
2014
+ }
2015
+ .bg-primary .text-negative,
2016
+ .bg-primary .text-danger {
2017
+ color: #ffa6a9 !important;
2018
+ }
2019
+ .text-inverse {
2020
+ color: #ffffff !important;
2021
+ }
2022
+ a.text-inverse:hover,
2023
+ a.text-inverse:focus {
2024
+ color: #c9cbce !important;
2025
+ }
2026
+ .text-muted {
2027
+ color: #768e9c !important;
2028
+ color: var(--color-content-tertiary) !important;
1992
2029
  }
1993
- /**
1994
- * @deprecated Obsolete since the brand has turned green.
1995
- */
1996
2030
  .colored-dot::after {
1997
2031
  content: none;
1998
2032
  }