@transferwise/neptune-css 0.0.0-experimental-113dd46 → 0.0.0-experimental-dadc692

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 +13964 -14774
  8. package/dist/css/utilities.css +1205 -72
  9. package/package.json +2 -2
  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: averta, avenir w02, avenir, helvetica, arial, sans-serif;
@@ -709,38 +742,12 @@ video {
709
742
  height: auto;
710
743
  vertical-align: middle;
711
744
  }
712
- .img-rounded {
713
- border-radius: 10px;
714
- border-radius: var(--radius-small);
715
- }
716
- .img-circle {
717
- border-radius: 50%;
718
- }
719
745
  .disabled,
720
746
  :disabled {
721
747
  filter: grayscale(1);
722
748
  opacity: 0.45;
723
749
  cursor: not-allowed !important;
724
750
  }
725
- .sr-only {
726
- position: absolute;
727
- width: 1px;
728
- height: 1px;
729
- margin: -1px;
730
- padding: 0;
731
- overflow: hidden;
732
- border: 0;
733
- clip: rect(0, 0, 0, 0);
734
- }
735
- .sr-only-focusable:active,
736
- .sr-only-focusable:focus {
737
- position: static;
738
- width: auto;
739
- height: auto;
740
- margin: 0;
741
- overflow: visible;
742
- clip: auto;
743
- }
744
751
  /* stylelint-disable selector-max-empty-lines */
745
752
  /* DEPRECATED: use .np-text-*-title instead */
746
753
  /* stylelint-disable-next-line selector-list-comma-newline-after */
@@ -1784,17 +1791,90 @@ kbd kbd {
1784
1791
  font-weight: var(--font-weight-bold);
1785
1792
  font-size: 100%;
1786
1793
  }
1787
- .text-xs-left {
1788
- text-align: left;
1794
+ /* TODO: Remove utility imports to prevent duplicates */
1795
+ .text-primary {
1796
+ color: #37517e !important;
1797
+ color: var(--color-content-primary) !important;
1798
+ /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1789
1799
  }
1790
- [dir="rtl"] .text-xs-left {
1791
- text-align: right;
1800
+ .bg-primary .text-primary {
1801
+ color: #ffffff !important;
1792
1802
  }
1793
- .text-xs-right {
1794
- text-align: right;
1803
+ .text-secondary {
1804
+ color: #5d7079 !important;
1805
+ color: var(--color-content-secondary) !important;
1795
1806
  }
1796
- [dir="rtl"] .text-xs-right {
1797
- text-align: left;
1807
+ .text-muted {
1808
+ color: #768e9c !important;
1809
+ color: var(--color-content-tertiary) !important;
1810
+ }
1811
+ .text-accent,
1812
+ .text-info {
1813
+ color: var(--color-interactive-primary) !important;
1814
+ /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1815
+ }
1816
+ .bg-primary .text-accent,
1817
+ .bg-primary .text-info {
1818
+ color: #00b9ff !important;
1819
+ }
1820
+ .text-negative,
1821
+ .text-danger {
1822
+ color: var(--color-sentiment-negative) !important;
1823
+ /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1824
+ }
1825
+ .bg-primary .text-negative,
1826
+ .bg-primary .text-danger {
1827
+ color: #ffa6a9 !important;
1828
+ }
1829
+ .text-positive,
1830
+ .text-success {
1831
+ color: var(--color-sentiment-positive) !important;
1832
+ /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1833
+ }
1834
+ .bg-primary .text-positive,
1835
+ .bg-primary .text-success {
1836
+ color: #6fd698 !important;
1837
+ }
1838
+ /**
1839
+ * @deprecated This makes text inaccessible. Use background color in combination with `.text-primary` instead.
1840
+ */
1841
+ .text-warning {
1842
+ color: var(--color-sentiment-warning) !important;
1843
+ /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1844
+ }
1845
+ .bg-primary .text-warning {
1846
+ color: #ffd184 !important;
1847
+ }
1848
+ /**
1849
+ * @deprecated Navy colors are obsolete.
1850
+ */
1851
+ .text-inverse {
1852
+ color: #ffffff !important;
1853
+ }
1854
+ a.text-inverse:hover,
1855
+ a.text-inverse:focus {
1856
+ color: #c9cbce !important;
1857
+ }
1858
+ .font-italic {
1859
+ font-style: italic !important;
1860
+ }
1861
+ .font-weight-normal {
1862
+ font-weight: 400 !important;
1863
+ font-weight: var(--font-weight-regular) !important;
1864
+ }
1865
+ .font-weight-semi-bold {
1866
+ font-weight: 600 !important;
1867
+ font-weight: var(--font-weight-semi-bold) !important;
1868
+ }
1869
+ .font-weight-bold {
1870
+ font-weight: 800 !important;
1871
+ font-weight: var(--font-weight-bold) !important;
1872
+ }
1873
+ .text-max-width {
1874
+ max-width: 600px;
1875
+ }
1876
+ .text-word-break {
1877
+ word-wrap: break-word;
1798
1878
  }
1799
1879
  .text-xs-center {
1800
1880
  text-align: center;
@@ -1802,234 +1882,117 @@ kbd kbd {
1802
1882
  .text-xs-justify {
1803
1883
  text-align: justify;
1804
1884
  }
1805
- .text-xs-nowrap {
1806
- white-space: nowrap;
1885
+ .text-xs-left {
1886
+ text-align: start;
1887
+ }
1888
+ .text-xs-right {
1889
+ text-align: end;
1807
1890
  }
1808
1891
  @media (min-width: 576px) {
1809
- .text-sm-left {
1810
- text-align: left;
1811
- }
1812
- [dir="rtl"] .text-sm-left {
1813
- text-align: right;
1814
- }
1815
- .text-sm-right {
1816
- text-align: right;
1817
- }
1818
- [dir="rtl"] .text-sm-right {
1819
- text-align: left;
1820
- }
1821
1892
  .text-sm-center {
1822
1893
  text-align: center;
1823
1894
  }
1824
1895
  .text-sm-justify {
1825
1896
  text-align: justify;
1826
1897
  }
1827
- .text-sm-nowrap {
1828
- white-space: nowrap;
1898
+ .text-sm-left {
1899
+ text-align: start;
1900
+ }
1901
+ .text-sm-right {
1902
+ text-align: end;
1829
1903
  }
1830
1904
  }
1831
1905
  @media (min-width: 768px) {
1832
- .text-md-left {
1833
- text-align: left;
1834
- }
1835
- [dir="rtl"] .text-md-left {
1836
- text-align: right;
1837
- }
1838
- .text-md-right {
1839
- text-align: right;
1840
- }
1841
- [dir="rtl"] .text-md-right {
1842
- text-align: left;
1843
- }
1844
1906
  .text-md-center {
1845
1907
  text-align: center;
1846
1908
  }
1847
1909
  .text-md-justify {
1848
1910
  text-align: justify;
1849
1911
  }
1850
- .text-md-nowrap {
1851
- white-space: nowrap;
1912
+ .text-md-left {
1913
+ text-align: start;
1914
+ }
1915
+ .text-md-right {
1916
+ text-align: end;
1852
1917
  }
1853
1918
  }
1854
1919
  @media (min-width: 992px) {
1855
- .text-lg-left {
1856
- text-align: left;
1857
- }
1858
- [dir="rtl"] .text-lg-left {
1859
- text-align: right;
1860
- }
1861
- .text-lg-right {
1862
- text-align: right;
1863
- }
1864
- [dir="rtl"] .text-lg-right {
1865
- text-align: left;
1866
- }
1867
1920
  .text-lg-center {
1868
1921
  text-align: center;
1869
1922
  }
1870
1923
  .text-lg-justify {
1871
1924
  text-align: justify;
1872
1925
  }
1873
- .text-lg-nowrap {
1874
- white-space: nowrap;
1926
+ .text-lg-left {
1927
+ text-align: start;
1928
+ }
1929
+ .text-lg-right {
1930
+ text-align: end;
1875
1931
  }
1876
1932
  }
1877
1933
  @media (min-width: 1200px) {
1878
- .text-xl-left {
1879
- text-align: left;
1880
- }
1881
- [dir="rtl"] .text-xl-left {
1882
- text-align: right;
1883
- }
1884
- .text-xl-right {
1885
- text-align: right;
1886
- }
1887
- [dir="rtl"] .text-xl-right {
1888
- text-align: left;
1889
- }
1890
1934
  .text-xl-center {
1891
1935
  text-align: center;
1892
1936
  }
1893
1937
  .text-xl-justify {
1894
1938
  text-align: justify;
1895
1939
  }
1896
- .text-xl-nowrap {
1897
- white-space: nowrap;
1940
+ .text-xl-left {
1941
+ text-align: start;
1942
+ }
1943
+ .text-xl-right {
1944
+ text-align: end;
1898
1945
  }
1899
- }
1900
- .text-lowercase {
1901
- text-transform: lowercase;
1902
- }
1903
- .text-uppercase {
1904
- text-transform: uppercase;
1905
- }
1906
- .text-capitalize {
1907
- text-transform: capitalize;
1908
1946
  }
1909
1947
  .text-underline {
1910
- text-decoration: underline;
1911
- -webkit-text-decoration: underline !important;
1912
- text-decoration: underline !important;
1913
- text-underline-offset: 0.3em;
1948
+ text-decoration-line: underline !important;
1949
+ text-underline-offset: 2px;
1914
1950
  }
1915
1951
  .text-no-decoration {
1916
- -webkit-text-decoration: none !important;
1917
- text-decoration: none !important;
1952
+ text-decoration-line: none !important;
1918
1953
  }
1919
1954
  .text-ellipsis,
1920
1955
  .text-ellipses {
1921
1956
  display: block;
1957
+ overflow: hidden;
1922
1958
  text-overflow: ellipsis;
1923
1959
  white-space: nowrap;
1924
- overflow: hidden;
1925
- }
1926
- .text-max-width {
1927
- max-width: 600px;
1928
- }
1929
- .text-word-break {
1930
- word-break: break-all;
1931
- }
1932
- .font-weight-bold {
1933
- font-weight: 800 !important;
1934
- font-weight: var(--font-weight-bold) !important;
1935
- }
1936
- .font-weight-semi-bold {
1937
- font-weight: 600 !important;
1938
- font-weight: var(--font-weight-semi-bold) !important;
1939
- }
1940
- .font-weight-normal {
1941
- font-weight: 400 !important;
1942
- font-weight: var(--font-weight-regular) !important;
1943
- }
1944
- .font-italic {
1945
- font-style: italic !important;
1946
1960
  }
1947
- .text-primary {
1948
- color: #37517e !important;
1949
- color: var(--color-content-primary) !important;
1950
- }
1951
- a.text-primary:hover,
1952
- a.text-primary:focus {
1953
- color: #37517e !important;
1954
- color: var(--color-content-primary) !important;
1955
- }
1956
- .bg-primary .text-primary {
1957
- color: #ffffff !important;
1958
- }
1959
- .text-secondary {
1960
- color: #5d7079 !important;
1961
- color: var(--color-content-secondary) !important;
1962
- }
1963
- .text-positive,
1964
- .text-success {
1965
- color: #008026 !important;
1966
- color: var(--color-content-positive) !important;
1967
- }
1968
- a.text-positive:hover,
1969
- a.text-success:hover,
1970
- a.text-positive:focus,
1971
- a.text-success:focus {
1972
- color: #006d13 !important;
1973
- color: var(--color-content-positive-hover) !important;
1974
- }
1975
- .bg-primary .text-positive,
1976
- .bg-primary .text-success {
1977
- color: #6fd698 !important;
1978
- }
1979
- .text-accent,
1980
- .text-info {
1981
- color: #0097c7 !important;
1982
- color: var(--color-content-accent) !important;
1983
- color: var(--color-interactive-primary) !important;
1984
- }
1985
- a.text-accent:hover,
1986
- a.text-info:hover,
1987
- a.text-accent:focus,
1988
- a.text-info:focus {
1989
- color: #0084b3 !important;
1990
- color: var(--color-content-accent-hover) !important;
1991
- }
1992
- .bg-primary .text-accent,
1993
- .bg-primary .text-info {
1994
- color: #00b9ff !important;
1995
- }
1996
- .text-warning {
1997
- color: #9a6500 !important;
1998
- color: var(--color-content-warning) !important;
1999
- }
2000
- a.text-warning:hover,
2001
- a.text-warning:focus {
2002
- color: #855400 !important;
2003
- color: var(--color-content-warning-hover) !important;
1961
+ .text-uppercase {
1962
+ text-transform: uppercase;
2004
1963
  }
2005
- .bg-primary .text-warning {
2006
- color: #ffd184 !important;
1964
+ .text-lowercase {
1965
+ text-transform: lowercase;
2007
1966
  }
2008
- .text-negative,
2009
- .text-danger {
2010
- color: var(--color-sentiment-negative) !important;
1967
+ .text-capitalize {
1968
+ text-transform: capitalize;
2011
1969
  }
2012
- a.text-negative:hover,
2013
- a.text-danger:hover,
2014
- a.text-negative:focus,
2015
- a.text-danger:focus {
2016
- color: var(--color-sentiment-negative-hover) !important;
1970
+ .text-xs-nowrap {
1971
+ white-space: nowrap;
2017
1972
  }
2018
- .bg-primary .text-negative,
2019
- .bg-primary .text-danger {
2020
- color: #ffa6a9 !important;
1973
+ @media (min-width: 576px) {
1974
+ .text-sm-nowrap {
1975
+ white-space: nowrap;
1976
+ }
2021
1977
  }
2022
- .text-inverse {
2023
- color: #ffffff !important;
1978
+ @media (min-width: 768px) {
1979
+ .text-md-nowrap {
1980
+ white-space: nowrap;
1981
+ }
2024
1982
  }
2025
- a.text-inverse:hover,
2026
- a.text-inverse:focus {
2027
- color: #c9cbce !important;
1983
+ @media (min-width: 992px) {
1984
+ .text-lg-nowrap {
1985
+ white-space: nowrap;
1986
+ }
2028
1987
  }
2029
- .text-muted {
2030
- color: #768e9c !important;
2031
- color: var(--color-content-tertiary) !important;
1988
+ @media (min-width: 1200px) {
1989
+ .text-xl-nowrap {
1990
+ white-space: nowrap;
1991
+ }
2032
1992
  }
1993
+ /**
1994
+ * @deprecated Obsolete since the brand has turned green.
1995
+ */
2033
1996
  .colored-dot::after {
2034
1997
  content: none;
2035
1998
  }