@transferwise/neptune-css 0.0.0-experimental-92f9701 → 0.0.0-experimental-2d03128

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 (67) hide show
  1. package/dist/css/accordion.css +0 -2
  2. package/dist/css/alerts.css +0 -5
  3. package/dist/css/border-radius.css +8 -0
  4. package/dist/css/button-groups.css +0 -1
  5. package/dist/css/buttons.css +0 -2
  6. package/dist/css/circles.css +0 -2
  7. package/dist/css/decision.css +0 -1
  8. package/dist/css/dropdowns.css +0 -13
  9. package/dist/css/droppable.css +0 -1
  10. package/dist/css/flex.css +417 -253
  11. package/dist/css/footer.css +0 -1
  12. package/dist/css/grid.css +0 -4
  13. package/dist/css/input-groups.css +0 -13
  14. package/dist/css/list-group.css +0 -1
  15. package/dist/css/navbar-base.css +167 -343
  16. package/dist/css/navbar.css +41 -125
  17. package/dist/css/neptune-addons.css +423 -895
  18. package/dist/css/neptune-core.css +163 -201
  19. package/dist/css/neptune-social-media.css +0 -1
  20. package/dist/css/neptune.css +14500 -15883
  21. package/dist/css/popovers.css +0 -8
  22. package/dist/css/progress-bars.css +6 -6
  23. package/dist/css/tooltip.css +0 -1
  24. package/dist/css/utilities.css +1202 -72
  25. package/package.json +1 -1
  26. package/src/less/{mixins → addons}/_center-block.less +2 -4
  27. package/src/less/addons/_spacing-utilities.less +3 -26
  28. package/src/less/border-radius.less +1 -3
  29. package/src/less/core/_scaffolding.less +7 -27
  30. package/src/less/core/_typography-utilities.less +17 -237
  31. package/src/less/flex.less +9 -18
  32. package/src/less/navbar.less +10 -2
  33. package/src/less/neptune-addons.less +4 -1
  34. package/src/less/neptune.bundle.less +3 -1
  35. package/src/less/progress-bars.less +2 -2
  36. package/src/less/utilities/align-items.less +107 -0
  37. package/src/less/utilities/align-self.less +107 -0
  38. package/src/less/utilities/border-radius.less +11 -0
  39. package/src/less/utilities/color.less +70 -0
  40. package/src/less/utilities/cursor.less +3 -0
  41. package/src/less/utilities/display.less +178 -0
  42. package/src/less/utilities/flex-direction.less +47 -0
  43. package/src/less/utilities/flex-grow.less +27 -0
  44. package/src/less/utilities/flex-wrap.less +47 -0
  45. package/src/less/utilities/float.less +77 -0
  46. package/src/less/utilities/font-weight.less +11 -0
  47. package/src/less/utilities/gap.less +3 -0
  48. package/src/less/utilities/justify-content.less +107 -0
  49. package/src/less/utilities/margin.less +192 -0
  50. package/src/less/utilities/max-width.less +3 -0
  51. package/src/less/utilities/order.less +87 -0
  52. package/src/less/utilities/outline-style.less +8 -0
  53. package/src/less/utilities/overflow-wrap.less +3 -0
  54. package/src/less/utilities/padding.less +179 -0
  55. package/src/less/utilities/position.less +3 -0
  56. package/src/less/utilities/rotate.less +12 -0
  57. package/src/less/utilities/screen-reader.less +24 -0
  58. package/src/less/utilities/text-align.less +87 -0
  59. package/src/less/utilities/text-decoration-line.less +8 -0
  60. package/src/less/utilities/text-overflow.less +7 -0
  61. package/src/less/utilities/text-transform.less +11 -0
  62. package/src/less/utilities/visibility.less +3 -0
  63. package/src/less/utilities/white-space.less +27 -0
  64. package/src/less/utilities.less +29 -141
  65. package/src/less/addons/_display-utilities.less +0 -159
  66. package/src/less/addons/_utilities.less +0 -147
  67. package/src/less/mixins/_flex.less +0 -105
@@ -311,6 +311,28 @@ 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
+ }
314
336
  :root {
315
337
  --base-font-size: 16px;
316
338
  --font-family-regular: "Inter", Helvetica, Arial, sans-serif;
@@ -711,7 +733,8 @@ video {
711
733
  border-radius: var(--radius-small);
712
734
  }
713
735
  .img-circle {
714
- border-radius: 50%;
736
+ border-radius: 9999px;
737
+ border-radius: var(--radius-full);
715
738
  }
716
739
  .disabled,
717
740
  :disabled {
@@ -719,25 +742,6 @@ video {
719
742
  opacity: 0.45;
720
743
  cursor: not-allowed !important;
721
744
  }
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
745
  /* stylelint-disable selector-max-empty-lines */
742
746
  /* DEPRECATED: use .np-text-*-title instead */
743
747
  /* stylelint-disable-next-line selector-list-comma-newline-after */
@@ -1637,7 +1641,6 @@ blockquote footer::before {
1637
1641
  }
1638
1642
  [dir="rtl"] .blockquote-reverse {
1639
1643
  padding-left: 22px;
1640
- padding-right: 0;
1641
1644
  padding-right: initial;
1642
1645
  }
1643
1646
  [dir="rtl"] .blockquote-reverse {
@@ -1720,17 +1723,87 @@ kbd kbd {
1720
1723
  font-weight: var(--font-weight-bold);
1721
1724
  font-size: 100%;
1722
1725
  }
1723
- .text-xs-left {
1724
- text-align: left;
1726
+ /* TODO: Remove utility imports to prevent duplicates */
1727
+ .text-primary {
1728
+ color: #37517e !important;
1729
+ color: var(--color-content-primary) !important;
1730
+ /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1725
1731
  }
1726
- [dir="rtl"] .text-xs-left {
1727
- text-align: right;
1732
+ .bg-primary .text-primary {
1733
+ color: #ffffff !important;
1728
1734
  }
1729
- .text-xs-right {
1730
- text-align: right;
1735
+ .text-secondary {
1736
+ color: #5d7079 !important;
1737
+ color: var(--color-content-secondary) !important;
1731
1738
  }
1732
- [dir="rtl"] .text-xs-right {
1733
- text-align: left;
1739
+ .text-muted {
1740
+ color: #768e9c !important;
1741
+ color: var(--color-content-tertiary) !important;
1742
+ }
1743
+ .text-accent,
1744
+ .text-info {
1745
+ color: var(--color-interactive-primary) !important;
1746
+ /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1747
+ }
1748
+ .bg-primary .text-accent,
1749
+ .bg-primary .text-info {
1750
+ color: #00b9ff !important;
1751
+ }
1752
+ .text-negative,
1753
+ .text-danger {
1754
+ color: var(--color-sentiment-negative) !important;
1755
+ /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1756
+ }
1757
+ .bg-primary .text-negative,
1758
+ .bg-primary .text-danger {
1759
+ color: #ffa6a9 !important;
1760
+ }
1761
+ .text-positive,
1762
+ .text-success {
1763
+ color: var(--color-sentiment-positive) !important;
1764
+ /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1765
+ }
1766
+ .bg-primary .text-positive,
1767
+ .bg-primary .text-success {
1768
+ color: #6fd698 !important;
1769
+ }
1770
+ /**
1771
+ * @deprecated This makes text inaccessible. Use background color in combination with `.text-primary` instead.
1772
+ */
1773
+ .text-warning {
1774
+ color: var(--color-sentiment-warning) !important;
1775
+ /* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
1776
+ }
1777
+ .bg-primary .text-warning {
1778
+ color: #ffd184 !important;
1779
+ }
1780
+ /**
1781
+ * @deprecated Navy colors are obsolete.
1782
+ */
1783
+ .text-inverse {
1784
+ color: #ffffff !important;
1785
+ }
1786
+ a.text-inverse:hover,
1787
+ a.text-inverse:focus {
1788
+ color: #c9cbce !important;
1789
+ }
1790
+ .font-weight-normal {
1791
+ font-weight: 400 !important;
1792
+ font-weight: var(--font-weight-regular) !important;
1793
+ }
1794
+ .font-weight-semi-bold {
1795
+ font-weight: 600 !important;
1796
+ font-weight: var(--font-weight-semi-bold) !important;
1797
+ }
1798
+ .font-weight-bold {
1799
+ font-weight: 700 !important;
1800
+ font-weight: var(--font-weight-bold) !important;
1801
+ }
1802
+ .text-max-width {
1803
+ max-width: 600px;
1804
+ }
1805
+ .text-word-break {
1806
+ word-wrap: break-word;
1734
1807
  }
1735
1808
  .text-xs-center {
1736
1809
  text-align: center;
@@ -1738,234 +1811,123 @@ kbd kbd {
1738
1811
  .text-xs-justify {
1739
1812
  text-align: justify;
1740
1813
  }
1741
- .text-xs-nowrap {
1742
- white-space: nowrap;
1814
+ .text-xs-left {
1815
+ text-align: start;
1816
+ }
1817
+ .text-xs-right {
1818
+ text-align: end;
1743
1819
  }
1744
1820
  @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
- }
1757
1821
  .text-sm-center {
1758
1822
  text-align: center;
1759
1823
  }
1760
1824
  .text-sm-justify {
1761
1825
  text-align: justify;
1762
1826
  }
1763
- .text-sm-nowrap {
1764
- white-space: nowrap;
1827
+ .text-sm-left {
1828
+ text-align: start;
1829
+ }
1830
+ .text-sm-right {
1831
+ text-align: end;
1765
1832
  }
1766
1833
  }
1767
1834
  @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
- }
1780
1835
  .text-md-center {
1781
1836
  text-align: center;
1782
1837
  }
1783
1838
  .text-md-justify {
1784
1839
  text-align: justify;
1785
1840
  }
1786
- .text-md-nowrap {
1787
- white-space: nowrap;
1841
+ .text-md-left {
1842
+ text-align: start;
1843
+ }
1844
+ .text-md-right {
1845
+ text-align: end;
1788
1846
  }
1789
1847
  }
1790
1848
  @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
- }
1803
1849
  .text-lg-center {
1804
1850
  text-align: center;
1805
1851
  }
1806
1852
  .text-lg-justify {
1807
1853
  text-align: justify;
1808
1854
  }
1809
- .text-lg-nowrap {
1810
- white-space: nowrap;
1855
+ .text-lg-left {
1856
+ text-align: start;
1857
+ }
1858
+ .text-lg-right {
1859
+ text-align: end;
1811
1860
  }
1812
1861
  }
1813
1862
  @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
- }
1826
1863
  .text-xl-center {
1827
1864
  text-align: center;
1828
1865
  }
1829
1866
  .text-xl-justify {
1830
1867
  text-align: justify;
1831
1868
  }
1832
- .text-xl-nowrap {
1833
- white-space: nowrap;
1869
+ .text-xl-left {
1870
+ text-align: start;
1871
+ }
1872
+ .text-xl-right {
1873
+ text-align: end;
1834
1874
  }
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
1875
  }
1845
1876
  .text-underline {
1846
- text-decoration: underline;
1847
- -webkit-text-decoration: underline !important;
1848
- text-decoration: underline !important;
1849
- text-underline-offset: 0.3em;
1877
+ text-decoration-line: underline !important;
1878
+ text-underline-offset: 2px;
1850
1879
  }
1851
1880
  .text-no-decoration {
1852
- -webkit-text-decoration: none !important;
1853
- text-decoration: none !important;
1881
+ text-decoration-line: none !important;
1854
1882
  }
1855
1883
  .text-ellipsis,
1856
1884
  .text-ellipses {
1857
1885
  display: block;
1886
+ overflow: hidden;
1858
1887
  text-overflow: ellipsis;
1859
1888
  white-space: nowrap;
1860
- overflow: hidden;
1861
- }
1862
- .text-max-width {
1863
- max-width: 600px;
1864
- }
1865
- .text-word-break {
1866
- word-break: break-all;
1867
- }
1868
- .font-weight-bold {
1869
- font-weight: 700 !important;
1870
- font-weight: var(--font-weight-bold) !important;
1871
- }
1872
- .font-weight-semi-bold {
1873
- font-weight: 600 !important;
1874
- font-weight: var(--font-weight-semi-bold) !important;
1875
- }
1876
- .font-weight-normal {
1877
- font-weight: 400 !important;
1878
- font-weight: var(--font-weight-regular) !important;
1879
- }
1880
- .font-italic {
1881
- font-style: italic !important;
1882
- }
1883
- .text-primary {
1884
- color: #37517e !important;
1885
- color: var(--color-content-primary) !important;
1886
- }
1887
- a.text-primary:hover,
1888
- a.text-primary:focus {
1889
- color: #37517e !important;
1890
- color: var(--color-content-primary) !important;
1891
- }
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
1889
  }
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;
1890
+ .text-uppercase {
1891
+ text-transform: uppercase;
1935
1892
  }
1936
- a.text-warning:hover,
1937
- a.text-warning:focus {
1938
- color: #855400 !important;
1939
- color: var(--color-content-warning-hover) !important;
1893
+ .text-lowercase {
1894
+ text-transform: lowercase;
1940
1895
  }
1941
- .bg-primary .text-warning {
1942
- color: #ffd184 !important;
1896
+ .text-capitalize {
1897
+ text-transform: capitalize;
1943
1898
  }
1944
- .text-negative,
1945
- .text-danger {
1946
- color: var(--color-sentiment-negative) !important;
1899
+ .text-xs-nowrap {
1900
+ white-space: nowrap;
1947
1901
  }
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;
1902
+ @media (min-width: 576px) {
1903
+ .text-sm-nowrap {
1904
+ white-space: nowrap;
1905
+ }
1953
1906
  }
1954
- .bg-primary .text-negative,
1955
- .bg-primary .text-danger {
1956
- color: #ffa6a9 !important;
1907
+ @media (min-width: 768px) {
1908
+ .text-md-nowrap {
1909
+ white-space: nowrap;
1910
+ }
1957
1911
  }
1958
- .text-inverse {
1959
- color: #ffffff !important;
1912
+ @media (min-width: 992px) {
1913
+ .text-lg-nowrap {
1914
+ white-space: nowrap;
1915
+ }
1960
1916
  }
1961
- a.text-inverse:hover,
1962
- a.text-inverse:focus {
1963
- color: #c9cbce !important;
1917
+ @media (min-width: 1200px) {
1918
+ .text-xl-nowrap {
1919
+ white-space: nowrap;
1920
+ }
1964
1921
  }
1965
- .text-muted {
1966
- color: #768e9c !important;
1967
- color: var(--color-content-tertiary) !important;
1922
+ /**
1923
+ * @deprecated Obsolete since the brand has turned green.
1924
+ */
1925
+ .font-italic {
1926
+ font-style: italic !important;
1968
1927
  }
1928
+ /**
1929
+ * @deprecated Obsolete since the brand has turned green.
1930
+ */
1969
1931
  .colored-dot::after {
1970
1932
  content: none;
1971
1933
  }
@@ -103,7 +103,6 @@
103
103
  }
104
104
  [dir="rtl"] .btn-facebook.btn-block,
105
105
  [dir="rtl"] .btn-google.btn-block {
106
- padding-left: 44px;
107
106
  padding-right: 0;
108
107
  padding-right: initial;
109
108
  }