@transferwise/neptune-css 0.0.0-experimental-a8a7953 → 0.0.0-experimental-2ccb16f

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 (65) hide show
  1. package/dist/css/accordion.css +2 -0
  2. package/dist/css/alerts.css +5 -0
  3. package/dist/css/border-radius.css +0 -8
  4. package/dist/css/button-groups.css +1 -0
  5. package/dist/css/buttons.css +2 -0
  6. package/dist/css/circles.css +2 -0
  7. package/dist/css/decision.css +1 -0
  8. package/dist/css/dropdowns.css +13 -0
  9. package/dist/css/droppable.css +1 -0
  10. package/dist/css/flex.css +253 -417
  11. package/dist/css/footer.css +1 -0
  12. package/dist/css/grid.css +4 -0
  13. package/dist/css/input-groups.css +13 -0
  14. package/dist/css/list-group.css +1 -0
  15. package/dist/css/navbar-base.css +343 -167
  16. package/dist/css/navbar.css +125 -41
  17. package/dist/css/neptune-addons.css +893 -421
  18. package/dist/css/neptune-core.css +203 -163
  19. package/dist/css/neptune-social-media.css +1 -0
  20. package/dist/css/neptune.css +16160 -14775
  21. package/dist/css/popovers.css +8 -0
  22. package/dist/css/tooltip.css +1 -0
  23. package/dist/css/utilities.css +72 -1202
  24. package/package.json +9 -1
  25. package/src/less/addons/_display-utilities.less +159 -0
  26. package/src/less/addons/_spacing-utilities.less +26 -3
  27. package/src/less/addons/_utilities.less +147 -0
  28. package/src/less/border-radius.less +3 -1
  29. package/src/less/core/_scaffolding.less +27 -7
  30. package/src/less/core/_typography-utilities.less +237 -17
  31. package/src/less/flex.less +18 -9
  32. package/src/less/{addons → mixins}/_center-block.less +4 -2
  33. package/src/less/mixins/_flex.less +105 -0
  34. package/src/less/navbar.less +2 -10
  35. package/src/less/neptune-addons.less +1 -4
  36. package/src/less/neptune.bundle.less +1 -3
  37. package/src/less/utilities.less +141 -29
  38. package/src/less/utilities/align-items.less +0 -107
  39. package/src/less/utilities/align-self.less +0 -107
  40. package/src/less/utilities/border-radius.less +0 -11
  41. package/src/less/utilities/color.less +0 -70
  42. package/src/less/utilities/cursor.less +0 -3
  43. package/src/less/utilities/display.less +0 -178
  44. package/src/less/utilities/flex-direction.less +0 -47
  45. package/src/less/utilities/flex-grow.less +0 -27
  46. package/src/less/utilities/flex-wrap.less +0 -47
  47. package/src/less/utilities/float.less +0 -77
  48. package/src/less/utilities/font-weight.less +0 -11
  49. package/src/less/utilities/gap.less +0 -3
  50. package/src/less/utilities/justify-content.less +0 -107
  51. package/src/less/utilities/margin.less +0 -192
  52. package/src/less/utilities/max-width.less +0 -3
  53. package/src/less/utilities/order.less +0 -87
  54. package/src/less/utilities/outline-style.less +0 -8
  55. package/src/less/utilities/overflow-wrap.less +0 -3
  56. package/src/less/utilities/padding.less +0 -179
  57. package/src/less/utilities/position.less +0 -3
  58. package/src/less/utilities/rotate.less +0 -12
  59. package/src/less/utilities/screen-reader.less +0 -24
  60. package/src/less/utilities/text-align.less +0 -87
  61. package/src/less/utilities/text-decoration-line.less +0 -8
  62. package/src/less/utilities/text-overflow.less +0 -7
  63. package/src/less/utilities/text-transform.less +0 -11
  64. package/src/less/utilities/visibility.less +0 -3
  65. 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 */
@@ -947,6 +943,8 @@ h6,
947
943
  }
948
944
  .control-1,
949
945
  .control-2 {
946
+ color: #0097c7;
947
+ color: var(--color-content-accent);
950
948
  font-weight: 600;
951
949
  font-weight: var(--font-weight-semi-bold);
952
950
  line-height: 1.2;
@@ -1700,6 +1698,7 @@ blockquote footer::before {
1700
1698
  }
1701
1699
  [dir="rtl"] .blockquote-reverse {
1702
1700
  padding-left: 22px;
1701
+ padding-right: 0;
1703
1702
  padding-right: initial;
1704
1703
  }
1705
1704
  [dir="rtl"] .blockquote-reverse {
@@ -1782,87 +1781,17 @@ kbd kbd {
1782
1781
  font-weight: var(--font-weight-bold);
1783
1782
  font-size: 100%;
1784
1783
  }
1785
- /* TODO: Remove utility imports to prevent duplicates */
1786
- .text-primary {
1787
- color: #37517e !important;
1788
- color: var(--color-content-primary) !important;
1789
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1790
- }
1791
- .bg-primary .text-primary {
1792
- color: #ffffff !important;
1793
- }
1794
- .text-secondary {
1795
- color: #5d7079 !important;
1796
- color: var(--color-content-secondary) !important;
1797
- }
1798
- .text-muted {
1799
- color: #768e9c !important;
1800
- color: var(--color-content-tertiary) !important;
1801
- }
1802
- .text-accent,
1803
- .text-info {
1804
- color: var(--color-interactive-primary) !important;
1805
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1806
- }
1807
- .bg-primary .text-accent,
1808
- .bg-primary .text-info {
1809
- color: #00b9ff !important;
1810
- }
1811
- .text-negative,
1812
- .text-danger {
1813
- color: var(--color-sentiment-negative) !important;
1814
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1815
- }
1816
- .bg-primary .text-negative,
1817
- .bg-primary .text-danger {
1818
- color: #ffa6a9 !important;
1819
- }
1820
- .text-positive,
1821
- .text-success {
1822
- color: var(--color-sentiment-positive) !important;
1823
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1824
- }
1825
- .bg-primary .text-positive,
1826
- .bg-primary .text-success {
1827
- color: #6fd698 !important;
1828
- }
1829
- /**
1830
- * @deprecated This makes text inaccessible. Use background color in combination with `.text-primary` instead.
1831
- */
1832
- .text-warning {
1833
- color: var(--color-sentiment-warning) !important;
1834
- /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1835
- }
1836
- .bg-primary .text-warning {
1837
- color: #ffd184 !important;
1838
- }
1839
- /**
1840
- * @deprecated Navy colors are obsolete.
1841
- */
1842
- .text-inverse {
1843
- color: #ffffff !important;
1844
- }
1845
- a.text-inverse:hover,
1846
- a.text-inverse:focus {
1847
- color: #c9cbce !important;
1848
- }
1849
- .font-weight-normal {
1850
- font-weight: 400 !important;
1851
- font-weight: var(--font-weight-regular) !important;
1852
- }
1853
- .font-weight-semi-bold {
1854
- font-weight: 600 !important;
1855
- font-weight: var(--font-weight-semi-bold) !important;
1784
+ .text-xs-left {
1785
+ text-align: left;
1856
1786
  }
1857
- .font-weight-bold {
1858
- font-weight: 800 !important;
1859
- font-weight: var(--font-weight-bold) !important;
1787
+ [dir="rtl"] .text-xs-left {
1788
+ text-align: right;
1860
1789
  }
1861
- .text-max-width {
1862
- max-width: 600px;
1790
+ .text-xs-right {
1791
+ text-align: right;
1863
1792
  }
1864
- .text-word-break {
1865
- word-wrap: break-word;
1793
+ [dir="rtl"] .text-xs-right {
1794
+ text-align: left;
1866
1795
  }
1867
1796
  .text-xs-center {
1868
1797
  text-align: center;
@@ -1870,123 +1799,234 @@ a.text-inverse:focus {
1870
1799
  .text-xs-justify {
1871
1800
  text-align: justify;
1872
1801
  }
1873
- .text-xs-left {
1874
- text-align: start;
1875
- }
1876
- .text-xs-right {
1877
- text-align: end;
1802
+ .text-xs-nowrap {
1803
+ white-space: nowrap;
1878
1804
  }
1879
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
+ }
1880
1818
  .text-sm-center {
1881
1819
  text-align: center;
1882
1820
  }
1883
1821
  .text-sm-justify {
1884
1822
  text-align: justify;
1885
1823
  }
1886
- .text-sm-left {
1887
- text-align: start;
1888
- }
1889
- .text-sm-right {
1890
- text-align: end;
1824
+ .text-sm-nowrap {
1825
+ white-space: nowrap;
1891
1826
  }
1892
1827
  }
1893
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
+ }
1894
1841
  .text-md-center {
1895
1842
  text-align: center;
1896
1843
  }
1897
1844
  .text-md-justify {
1898
1845
  text-align: justify;
1899
1846
  }
1900
- .text-md-left {
1901
- text-align: start;
1902
- }
1903
- .text-md-right {
1904
- text-align: end;
1847
+ .text-md-nowrap {
1848
+ white-space: nowrap;
1905
1849
  }
1906
1850
  }
1907
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
+ }
1908
1864
  .text-lg-center {
1909
1865
  text-align: center;
1910
1866
  }
1911
1867
  .text-lg-justify {
1912
1868
  text-align: justify;
1913
1869
  }
1914
- .text-lg-left {
1915
- text-align: start;
1916
- }
1917
- .text-lg-right {
1918
- text-align: end;
1870
+ .text-lg-nowrap {
1871
+ white-space: nowrap;
1919
1872
  }
1920
1873
  }
1921
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
+ }
1922
1887
  .text-xl-center {
1923
1888
  text-align: center;
1924
1889
  }
1925
1890
  .text-xl-justify {
1926
1891
  text-align: justify;
1927
1892
  }
1928
- .text-xl-left {
1929
- text-align: start;
1930
- }
1931
- .text-xl-right {
1932
- text-align: end;
1893
+ .text-xl-nowrap {
1894
+ white-space: nowrap;
1933
1895
  }
1934
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
+ }
1935
1906
  .text-underline {
1936
- text-decoration-line: underline !important;
1937
- 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;
1938
1911
  }
1939
1912
  .text-no-decoration {
1940
- text-decoration-line: none !important;
1913
+ -webkit-text-decoration: none !important;
1914
+ text-decoration: none !important;
1941
1915
  }
1942
1916
  .text-ellipsis,
1943
1917
  .text-ellipses {
1944
1918
  display: block;
1945
- overflow: hidden;
1946
1919
  text-overflow: ellipsis;
1947
1920
  white-space: nowrap;
1921
+ overflow: hidden;
1948
1922
  }
1949
- .text-uppercase {
1950
- text-transform: uppercase;
1923
+ .text-max-width {
1924
+ max-width: 600px;
1951
1925
  }
1952
- .text-lowercase {
1953
- text-transform: lowercase;
1926
+ .text-word-break {
1927
+ word-break: break-all;
1954
1928
  }
1955
- .text-capitalize {
1956
- text-transform: capitalize;
1929
+ .font-weight-bold {
1930
+ font-weight: 800 !important;
1931
+ font-weight: var(--font-weight-bold) !important;
1957
1932
  }
1958
- .text-xs-nowrap {
1959
- white-space: nowrap;
1933
+ .font-weight-semi-bold {
1934
+ font-weight: 600 !important;
1935
+ font-weight: var(--font-weight-semi-bold) !important;
1960
1936
  }
1961
- @media (min-width: 576px) {
1962
- .text-sm-nowrap {
1963
- white-space: nowrap;
1964
- }
1937
+ .font-weight-normal {
1938
+ font-weight: 400 !important;
1939
+ font-weight: var(--font-weight-regular) !important;
1965
1940
  }
1966
- @media (min-width: 768px) {
1967
- .text-md-nowrap {
1968
- white-space: nowrap;
1969
- }
1941
+ .font-italic {
1942
+ font-style: italic !important;
1970
1943
  }
1971
- @media (min-width: 992px) {
1972
- .text-lg-nowrap {
1973
- white-space: nowrap;
1974
- }
1944
+ .text-primary {
1945
+ color: #37517e !important;
1946
+ color: var(--color-content-primary) !important;
1975
1947
  }
1976
- @media (min-width: 1200px) {
1977
- .text-xl-nowrap {
1978
- white-space: nowrap;
1979
- }
1948
+ a.text-primary:hover,
1949
+ a.text-primary:focus {
1950
+ color: #37517e !important;
1951
+ color: var(--color-content-primary) !important;
1980
1952
  }
1981
- /**
1982
- * @deprecated Obsolete since the brand has turned green.
1983
- */
1984
- .font-italic {
1985
- 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;
1986
2029
  }
1987
- /**
1988
- * @deprecated Obsolete since the brand has turned green.
1989
- */
1990
2030
  .colored-dot::after {
1991
2031
  content: none;
1992
2032
  }
@@ -103,6 +103,7 @@
103
103
  }
104
104
  [dir="rtl"] .btn-facebook.btn-block,
105
105
  [dir="rtl"] .btn-google.btn-block {
106
+ padding-left: 44px;
106
107
  padding-right: 0;
107
108
  padding-right: initial;
108
109
  }