@transferwise/neptune-css 0.0.0-experimental-84ab1ae → 0.0.0-experimental-2acee4e

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 +8 -0
  2. package/dist/css/flex.css +417 -253
  3. package/dist/css/navbar-base.css +168 -339
  4. package/dist/css/navbar.css +41 -107
  5. package/dist/css/neptune-addons.css +426 -898
  6. package/dist/css/neptune-core.css +170 -207
  7. package/dist/css/neptune.css +13952 -14762
  8. package/dist/css/utilities.css +1205 -72
  9. package/package.json +1 -1
  10. package/src/less/{mixins → addons}/_center-block.less +2 -4
  11. package/src/less/addons/_spacing-utilities.less +3 -26
  12. package/src/less/border-radius.less +1 -3
  13. package/src/less/core/_scaffolding.less +4 -33
  14. package/src/less/core/_typography-utilities.less +15 -241
  15. package/src/less/flex.less +9 -18
  16. package/src/less/navbar.less +10 -2
  17. package/src/less/neptune-addons.less +4 -1
  18. package/src/less/utilities/align-items.less +107 -0
  19. package/src/less/utilities/align-self.less +107 -0
  20. package/src/less/utilities/border-radius.less +11 -0
  21. package/src/less/utilities/color.less +70 -0
  22. package/src/less/utilities/cursor.less +3 -0
  23. package/src/less/utilities/display.less +178 -0
  24. package/src/less/utilities/flex-direction.less +47 -0
  25. package/src/less/utilities/flex-grow.less +27 -0
  26. package/src/less/utilities/flex-wrap.less +47 -0
  27. package/src/less/utilities/float.less +77 -0
  28. package/src/less/utilities/font-style.less +3 -0
  29. package/src/less/utilities/font-weight.less +11 -0
  30. package/src/less/utilities/gap.less +3 -0
  31. package/src/less/utilities/justify-content.less +107 -0
  32. package/src/less/utilities/margin.less +192 -0
  33. package/src/less/utilities/max-width.less +3 -0
  34. package/src/less/utilities/order.less +87 -0
  35. package/src/less/utilities/outline-style.less +8 -0
  36. package/src/less/utilities/overflow-wrap.less +3 -0
  37. package/src/less/utilities/padding.less +179 -0
  38. package/src/less/utilities/position.less +3 -0
  39. package/src/less/utilities/rotate.less +12 -0
  40. package/src/less/utilities/screen-reader.less +24 -0
  41. package/src/less/utilities/text-align.less +87 -0
  42. package/src/less/utilities/text-decoration-line.less +8 -0
  43. package/src/less/utilities/text-overflow.less +7 -0
  44. package/src/less/utilities/text-transform.less +11 -0
  45. package/src/less/utilities/visibility.less +3 -0
  46. package/src/less/utilities/white-space.less +27 -0
  47. package/src/less/utilities.less +30 -141
  48. package/src/less/addons/_display-utilities.less +0 -159
  49. package/src/less/addons/_utilities.less +0 -147
  50. package/src/less/mixins/_flex.less +0 -105
@@ -311,6 +311,39 @@ 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
+ .rounded-sm {
316
+ border-radius: 2px;
317
+ }
318
+ .img-rounded {
319
+ border-radius: 10px;
320
+ border-radius: var(--radius-small);
321
+ }
322
+ .img-circle {
323
+ border-radius: 9999px;
324
+ border-radius: var(--radius-full);
325
+ }
326
+ .sr-only {
327
+ position: absolute;
328
+ width: 1px;
329
+ height: 1px;
330
+ padding: 0;
331
+ margin: -1px;
332
+ overflow: hidden;
333
+ clip: rect(0, 0, 0, 0);
334
+ white-space: nowrap;
335
+ border-width: 0;
336
+ }
337
+ .sr-only-focusable:focus {
338
+ position: static;
339
+ width: auto;
340
+ height: auto;
341
+ padding: 0;
342
+ margin: 0;
343
+ overflow: visible;
344
+ clip: auto;
345
+ white-space: normal;
346
+ }
314
347
  :root {
315
348
  --base-font-size: 16px;
316
349
  --font-family-regular: "Inter", Helvetica, Arial, sans-serif;
@@ -706,38 +739,12 @@ video {
706
739
  height: auto;
707
740
  vertical-align: middle;
708
741
  }
709
- .img-rounded {
710
- border-radius: 10px;
711
- border-radius: var(--radius-small);
712
- }
713
- .img-circle {
714
- border-radius: 50%;
715
- }
716
742
  .disabled,
717
743
  :disabled {
718
744
  filter: grayscale(1);
719
745
  opacity: 0.45;
720
746
  cursor: not-allowed !important;
721
747
  }
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
- }
741
748
  /* stylelint-disable selector-max-empty-lines */
742
749
  /* DEPRECATED: use .np-text-*-title instead */
743
750
  /* stylelint-disable-next-line selector-list-comma-newline-after */
@@ -1781,17 +1788,90 @@ kbd kbd {
1781
1788
  font-weight: var(--font-weight-bold);
1782
1789
  font-size: 100%;
1783
1790
  }
1784
- .text-xs-left {
1785
- text-align: left;
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 */
1786
1796
  }
1787
- [dir="rtl"] .text-xs-left {
1788
- text-align: right;
1797
+ .bg-primary .text-primary {
1798
+ color: #ffffff !important;
1789
1799
  }
1790
- .text-xs-right {
1791
- text-align: right;
1800
+ .text-secondary {
1801
+ color: #5d7079 !important;
1802
+ color: var(--color-content-secondary) !important;
1792
1803
  }
1793
- [dir="rtl"] .text-xs-right {
1794
- text-align: left;
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-italic {
1856
+ font-style: italic !important;
1857
+ }
1858
+ .font-weight-normal {
1859
+ font-weight: 400 !important;
1860
+ font-weight: var(--font-weight-regular) !important;
1861
+ }
1862
+ .font-weight-semi-bold {
1863
+ font-weight: 600 !important;
1864
+ font-weight: var(--font-weight-semi-bold) !important;
1865
+ }
1866
+ .font-weight-bold {
1867
+ font-weight: 800 !important;
1868
+ font-weight: var(--font-weight-bold) !important;
1869
+ }
1870
+ .text-max-width {
1871
+ max-width: 600px;
1872
+ }
1873
+ .text-word-break {
1874
+ word-wrap: break-word;
1795
1875
  }
1796
1876
  .text-xs-center {
1797
1877
  text-align: center;
@@ -1799,234 +1879,117 @@ kbd kbd {
1799
1879
  .text-xs-justify {
1800
1880
  text-align: justify;
1801
1881
  }
1802
- .text-xs-nowrap {
1803
- white-space: nowrap;
1882
+ .text-xs-left {
1883
+ text-align: start;
1884
+ }
1885
+ .text-xs-right {
1886
+ text-align: end;
1804
1887
  }
1805
1888
  @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
- }
1818
1889
  .text-sm-center {
1819
1890
  text-align: center;
1820
1891
  }
1821
1892
  .text-sm-justify {
1822
1893
  text-align: justify;
1823
1894
  }
1824
- .text-sm-nowrap {
1825
- white-space: nowrap;
1895
+ .text-sm-left {
1896
+ text-align: start;
1897
+ }
1898
+ .text-sm-right {
1899
+ text-align: end;
1826
1900
  }
1827
1901
  }
1828
1902
  @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
- }
1841
1903
  .text-md-center {
1842
1904
  text-align: center;
1843
1905
  }
1844
1906
  .text-md-justify {
1845
1907
  text-align: justify;
1846
1908
  }
1847
- .text-md-nowrap {
1848
- white-space: nowrap;
1909
+ .text-md-left {
1910
+ text-align: start;
1911
+ }
1912
+ .text-md-right {
1913
+ text-align: end;
1849
1914
  }
1850
1915
  }
1851
1916
  @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
- }
1864
1917
  .text-lg-center {
1865
1918
  text-align: center;
1866
1919
  }
1867
1920
  .text-lg-justify {
1868
1921
  text-align: justify;
1869
1922
  }
1870
- .text-lg-nowrap {
1871
- white-space: nowrap;
1923
+ .text-lg-left {
1924
+ text-align: start;
1925
+ }
1926
+ .text-lg-right {
1927
+ text-align: end;
1872
1928
  }
1873
1929
  }
1874
1930
  @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
- }
1887
1931
  .text-xl-center {
1888
1932
  text-align: center;
1889
1933
  }
1890
1934
  .text-xl-justify {
1891
1935
  text-align: justify;
1892
1936
  }
1893
- .text-xl-nowrap {
1894
- white-space: nowrap;
1937
+ .text-xl-left {
1938
+ text-align: start;
1939
+ }
1940
+ .text-xl-right {
1941
+ text-align: end;
1895
1942
  }
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
1943
  }
1906
1944
  .text-underline {
1907
- text-decoration: underline;
1908
- -webkit-text-decoration: underline !important;
1909
- text-decoration: underline !important;
1910
- text-underline-offset: 0.3em;
1945
+ text-decoration-line: underline !important;
1946
+ text-underline-offset: 2px;
1911
1947
  }
1912
1948
  .text-no-decoration {
1913
- -webkit-text-decoration: none !important;
1914
- text-decoration: none !important;
1949
+ text-decoration-line: none !important;
1915
1950
  }
1916
1951
  .text-ellipsis,
1917
1952
  .text-ellipses {
1918
1953
  display: block;
1954
+ overflow: hidden;
1919
1955
  text-overflow: ellipsis;
1920
1956
  white-space: nowrap;
1921
- overflow: hidden;
1922
- }
1923
- .text-max-width {
1924
- max-width: 600px;
1925
- }
1926
- .text-word-break {
1927
- word-break: break-all;
1928
- }
1929
- .font-weight-bold {
1930
- font-weight: 800 !important;
1931
- font-weight: var(--font-weight-bold) !important;
1932
- }
1933
- .font-weight-semi-bold {
1934
- font-weight: 600 !important;
1935
- font-weight: var(--font-weight-semi-bold) !important;
1936
- }
1937
- .font-weight-normal {
1938
- font-weight: 400 !important;
1939
- font-weight: var(--font-weight-regular) !important;
1940
- }
1941
- .font-italic {
1942
- font-style: italic !important;
1943
1957
  }
1944
- .text-primary {
1945
- color: #37517e !important;
1946
- color: var(--color-content-primary) !important;
1947
- }
1948
- a.text-primary:hover,
1949
- a.text-primary:focus {
1950
- color: #37517e !important;
1951
- color: var(--color-content-primary) !important;
1952
- }
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;
1958
+ .text-uppercase {
1959
+ text-transform: uppercase;
2001
1960
  }
2002
- .bg-primary .text-warning {
2003
- color: #ffd184 !important;
1961
+ .text-lowercase {
1962
+ text-transform: lowercase;
2004
1963
  }
2005
- .text-negative,
2006
- .text-danger {
2007
- color: var(--color-sentiment-negative) !important;
1964
+ .text-capitalize {
1965
+ text-transform: capitalize;
2008
1966
  }
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;
1967
+ .text-xs-nowrap {
1968
+ white-space: nowrap;
2014
1969
  }
2015
- .bg-primary .text-negative,
2016
- .bg-primary .text-danger {
2017
- color: #ffa6a9 !important;
1970
+ @media (min-width: 576px) {
1971
+ .text-sm-nowrap {
1972
+ white-space: nowrap;
1973
+ }
2018
1974
  }
2019
- .text-inverse {
2020
- color: #ffffff !important;
1975
+ @media (min-width: 768px) {
1976
+ .text-md-nowrap {
1977
+ white-space: nowrap;
1978
+ }
2021
1979
  }
2022
- a.text-inverse:hover,
2023
- a.text-inverse:focus {
2024
- color: #c9cbce !important;
1980
+ @media (min-width: 992px) {
1981
+ .text-lg-nowrap {
1982
+ white-space: nowrap;
1983
+ }
2025
1984
  }
2026
- .text-muted {
2027
- color: #768e9c !important;
2028
- color: var(--color-content-tertiary) !important;
1985
+ @media (min-width: 1200px) {
1986
+ .text-xl-nowrap {
1987
+ white-space: nowrap;
1988
+ }
2029
1989
  }
1990
+ /**
1991
+ * @deprecated Obsolete since the brand has turned green.
1992
+ */
2030
1993
  .colored-dot::after {
2031
1994
  content: none;
2032
1995
  }