@transferwise/neptune-css 0.0.0-experimental-2d03128 → 0.0.0-experimental-e6f7234

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 (68) 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.css +172 -88
  16. package/dist/css/neptune-addons.css +893 -421
  17. package/dist/css/neptune-core.css +201 -163
  18. package/dist/css/neptune-social-media.css +1 -0
  19. package/dist/css/neptune.css +15832 -14449
  20. package/dist/css/popovers.css +8 -0
  21. package/dist/css/progress-bars.css +6 -6
  22. package/dist/css/tooltip.css +1 -0
  23. package/dist/css/utilities.css +72 -1202
  24. package/package.json +1 -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 +1338 -11
  35. package/src/less/neptune-addons.less +1 -4
  36. package/src/less/neptune.bundle.less +1 -3
  37. package/src/less/progress-bars.less +2 -2
  38. package/src/less/utilities.less +141 -29
  39. package/dist/css/navbar-base.css +0 -1209
  40. package/src/less/navbar-base.less +0 -1338
  41. package/src/less/utilities/align-items.less +0 -107
  42. package/src/less/utilities/align-self.less +0 -107
  43. package/src/less/utilities/border-radius.less +0 -11
  44. package/src/less/utilities/color.less +0 -70
  45. package/src/less/utilities/cursor.less +0 -3
  46. package/src/less/utilities/display.less +0 -178
  47. package/src/less/utilities/flex-direction.less +0 -47
  48. package/src/less/utilities/flex-grow.less +0 -27
  49. package/src/less/utilities/flex-wrap.less +0 -47
  50. package/src/less/utilities/float.less +0 -77
  51. package/src/less/utilities/font-weight.less +0 -11
  52. package/src/less/utilities/gap.less +0 -3
  53. package/src/less/utilities/justify-content.less +0 -107
  54. package/src/less/utilities/margin.less +0 -192
  55. package/src/less/utilities/max-width.less +0 -3
  56. package/src/less/utilities/order.less +0 -87
  57. package/src/less/utilities/outline-style.less +0 -8
  58. package/src/less/utilities/overflow-wrap.less +0 -3
  59. package/src/less/utilities/padding.less +0 -179
  60. package/src/less/utilities/position.less +0 -3
  61. package/src/less/utilities/rotate.less +0 -12
  62. package/src/less/utilities/screen-reader.less +0 -24
  63. package/src/less/utilities/text-align.less +0 -87
  64. package/src/less/utilities/text-decoration-line.less +0 -8
  65. package/src/less/utilities/text-overflow.less +0 -7
  66. package/src/less/utilities/text-transform.less +0 -11
  67. package/src/less/utilities/visibility.less +0 -3
  68. 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 */
@@ -1641,6 +1637,7 @@ blockquote footer::before {
1641
1637
  }
1642
1638
  [dir="rtl"] .blockquote-reverse {
1643
1639
  padding-left: 22px;
1640
+ padding-right: 0;
1644
1641
  padding-right: initial;
1645
1642
  }
1646
1643
  [dir="rtl"] .blockquote-reverse {
@@ -1723,87 +1720,17 @@ kbd kbd {
1723
1720
  font-weight: var(--font-weight-bold);
1724
1721
  font-size: 100%;
1725
1722
  }
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 */
1731
- }
1732
- .bg-primary .text-primary {
1733
- color: #ffffff !important;
1734
- }
1735
- .text-secondary {
1736
- color: #5d7079 !important;
1737
- color: var(--color-content-secondary) !important;
1738
- }
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;
1723
+ .text-xs-left {
1724
+ text-align: left;
1797
1725
  }
1798
- .font-weight-bold {
1799
- font-weight: 700 !important;
1800
- font-weight: var(--font-weight-bold) !important;
1726
+ [dir="rtl"] .text-xs-left {
1727
+ text-align: right;
1801
1728
  }
1802
- .text-max-width {
1803
- max-width: 600px;
1729
+ .text-xs-right {
1730
+ text-align: right;
1804
1731
  }
1805
- .text-word-break {
1806
- word-wrap: break-word;
1732
+ [dir="rtl"] .text-xs-right {
1733
+ text-align: left;
1807
1734
  }
1808
1735
  .text-xs-center {
1809
1736
  text-align: center;
@@ -1811,123 +1738,234 @@ a.text-inverse:focus {
1811
1738
  .text-xs-justify {
1812
1739
  text-align: justify;
1813
1740
  }
1814
- .text-xs-left {
1815
- text-align: start;
1816
- }
1817
- .text-xs-right {
1818
- text-align: end;
1741
+ .text-xs-nowrap {
1742
+ white-space: nowrap;
1819
1743
  }
1820
1744
  @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
+ }
1821
1757
  .text-sm-center {
1822
1758
  text-align: center;
1823
1759
  }
1824
1760
  .text-sm-justify {
1825
1761
  text-align: justify;
1826
1762
  }
1827
- .text-sm-left {
1828
- text-align: start;
1829
- }
1830
- .text-sm-right {
1831
- text-align: end;
1763
+ .text-sm-nowrap {
1764
+ white-space: nowrap;
1832
1765
  }
1833
1766
  }
1834
1767
  @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
+ }
1835
1780
  .text-md-center {
1836
1781
  text-align: center;
1837
1782
  }
1838
1783
  .text-md-justify {
1839
1784
  text-align: justify;
1840
1785
  }
1841
- .text-md-left {
1842
- text-align: start;
1843
- }
1844
- .text-md-right {
1845
- text-align: end;
1786
+ .text-md-nowrap {
1787
+ white-space: nowrap;
1846
1788
  }
1847
1789
  }
1848
1790
  @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
+ }
1849
1803
  .text-lg-center {
1850
1804
  text-align: center;
1851
1805
  }
1852
1806
  .text-lg-justify {
1853
1807
  text-align: justify;
1854
1808
  }
1855
- .text-lg-left {
1856
- text-align: start;
1857
- }
1858
- .text-lg-right {
1859
- text-align: end;
1809
+ .text-lg-nowrap {
1810
+ white-space: nowrap;
1860
1811
  }
1861
1812
  }
1862
1813
  @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
+ }
1863
1826
  .text-xl-center {
1864
1827
  text-align: center;
1865
1828
  }
1866
1829
  .text-xl-justify {
1867
1830
  text-align: justify;
1868
1831
  }
1869
- .text-xl-left {
1870
- text-align: start;
1871
- }
1872
- .text-xl-right {
1873
- text-align: end;
1832
+ .text-xl-nowrap {
1833
+ white-space: nowrap;
1874
1834
  }
1875
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
+ }
1876
1845
  .text-underline {
1877
- text-decoration-line: underline !important;
1878
- text-underline-offset: 2px;
1846
+ text-decoration: underline;
1847
+ -webkit-text-decoration: underline !important;
1848
+ text-decoration: underline !important;
1849
+ text-underline-offset: 0.3em;
1879
1850
  }
1880
1851
  .text-no-decoration {
1881
- text-decoration-line: none !important;
1852
+ -webkit-text-decoration: none !important;
1853
+ text-decoration: none !important;
1882
1854
  }
1883
1855
  .text-ellipsis,
1884
1856
  .text-ellipses {
1885
1857
  display: block;
1886
- overflow: hidden;
1887
1858
  text-overflow: ellipsis;
1888
1859
  white-space: nowrap;
1860
+ overflow: hidden;
1889
1861
  }
1890
- .text-uppercase {
1891
- text-transform: uppercase;
1862
+ .text-max-width {
1863
+ max-width: 600px;
1892
1864
  }
1893
- .text-lowercase {
1894
- text-transform: lowercase;
1865
+ .text-word-break {
1866
+ word-break: break-all;
1895
1867
  }
1896
- .text-capitalize {
1897
- text-transform: capitalize;
1868
+ .font-weight-bold {
1869
+ font-weight: 700 !important;
1870
+ font-weight: var(--font-weight-bold) !important;
1898
1871
  }
1899
- .text-xs-nowrap {
1900
- white-space: nowrap;
1872
+ .font-weight-semi-bold {
1873
+ font-weight: 600 !important;
1874
+ font-weight: var(--font-weight-semi-bold) !important;
1901
1875
  }
1902
- @media (min-width: 576px) {
1903
- .text-sm-nowrap {
1904
- white-space: nowrap;
1905
- }
1876
+ .font-weight-normal {
1877
+ font-weight: 400 !important;
1878
+ font-weight: var(--font-weight-regular) !important;
1906
1879
  }
1907
- @media (min-width: 768px) {
1908
- .text-md-nowrap {
1909
- white-space: nowrap;
1910
- }
1880
+ .font-italic {
1881
+ font-style: italic !important;
1911
1882
  }
1912
- @media (min-width: 992px) {
1913
- .text-lg-nowrap {
1914
- white-space: nowrap;
1915
- }
1883
+ .text-primary {
1884
+ color: #37517e !important;
1885
+ color: var(--color-content-primary) !important;
1916
1886
  }
1917
- @media (min-width: 1200px) {
1918
- .text-xl-nowrap {
1919
- white-space: nowrap;
1920
- }
1887
+ a.text-primary:hover,
1888
+ a.text-primary:focus {
1889
+ color: #37517e !important;
1890
+ color: var(--color-content-primary) !important;
1921
1891
  }
1922
- /**
1923
- * @deprecated Obsolete since the brand has turned green.
1924
- */
1925
- .font-italic {
1926
- font-style: italic !important;
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
+ }
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;
1935
+ }
1936
+ a.text-warning:hover,
1937
+ a.text-warning:focus {
1938
+ color: #855400 !important;
1939
+ color: var(--color-content-warning-hover) !important;
1940
+ }
1941
+ .bg-primary .text-warning {
1942
+ color: #ffd184 !important;
1943
+ }
1944
+ .text-negative,
1945
+ .text-danger {
1946
+ color: var(--color-sentiment-negative) !important;
1947
+ }
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;
1953
+ }
1954
+ .bg-primary .text-negative,
1955
+ .bg-primary .text-danger {
1956
+ color: #ffa6a9 !important;
1957
+ }
1958
+ .text-inverse {
1959
+ color: #ffffff !important;
1960
+ }
1961
+ a.text-inverse:hover,
1962
+ a.text-inverse:focus {
1963
+ color: #c9cbce !important;
1964
+ }
1965
+ .text-muted {
1966
+ color: #768e9c !important;
1967
+ color: var(--color-content-tertiary) !important;
1927
1968
  }
1928
- /**
1929
- * @deprecated Obsolete since the brand has turned green.
1930
- */
1931
1969
  .colored-dot::after {
1932
1970
  content: none;
1933
1971
  }
@@ -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
  }