@transferwise/neptune-css 14.8.2 → 14.9.1
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.
- package/dist/css/border-radius.css +8 -0
- package/dist/css/currency-flags.css +1 -0
- package/dist/css/flex.css +417 -253
- package/dist/css/navbar-base.css +168 -339
- package/dist/css/navbar.css +41 -107
- package/dist/css/neptune-addons.css +426 -898
- package/dist/css/neptune-core.css +163 -200
- package/dist/css/neptune.css +13978 -14772
- package/dist/css/utilities.css +1202 -72
- package/package.json +1 -1
- package/src/less/{mixins → addons}/_center-block.less +2 -4
- package/src/less/addons/_spacing-utilities.less +3 -26
- package/src/less/border-radius.less +1 -3
- package/src/less/core/_scaffolding.less +7 -27
- package/src/less/core/_typography-utilities.less +17 -237
- package/src/less/currency-flags.less +1 -0
- package/src/less/flex.less +9 -18
- package/src/less/navbar.less +10 -2
- package/src/less/neptune-addons.less +4 -1
- package/src/less/utilities/align-items.less +107 -0
- package/src/less/utilities/align-self.less +107 -0
- package/src/less/utilities/border-radius.less +11 -0
- package/src/less/utilities/color.less +70 -0
- package/src/less/utilities/cursor.less +3 -0
- package/src/less/utilities/display.less +178 -0
- package/src/less/utilities/flex-direction.less +47 -0
- package/src/less/utilities/flex-grow.less +27 -0
- package/src/less/utilities/flex-wrap.less +47 -0
- package/src/less/utilities/float.less +77 -0
- package/src/less/utilities/font-weight.less +11 -0
- package/src/less/utilities/gap.less +3 -0
- package/src/less/utilities/justify-content.less +107 -0
- package/src/less/utilities/margin.less +192 -0
- package/src/less/utilities/max-width.less +3 -0
- package/src/less/utilities/order.less +87 -0
- package/src/less/utilities/outline-style.less +8 -0
- package/src/less/utilities/overflow-wrap.less +3 -0
- package/src/less/utilities/padding.less +179 -0
- package/src/less/utilities/position.less +3 -0
- package/src/less/utilities/rotate.less +12 -0
- package/src/less/utilities/screen-reader.less +24 -0
- package/src/less/utilities/text-align.less +87 -0
- package/src/less/utilities/text-decoration-line.less +8 -0
- package/src/less/utilities/text-overflow.less +7 -0
- package/src/less/utilities/text-transform.less +11 -0
- package/src/less/utilities/visibility.less +3 -0
- package/src/less/utilities/white-space.less +27 -0
- package/src/less/utilities.less +29 -141
- package/src/less/addons/_display-utilities.less +0 -159
- package/src/less/addons/_utilities.less +0 -147
- 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: averta, avenir w02, avenir, helvetica, arial, sans-serif;
|
|
@@ -714,7 +736,8 @@ video {
|
|
|
714
736
|
border-radius: var(--radius-small);
|
|
715
737
|
}
|
|
716
738
|
.img-circle {
|
|
717
|
-
border-radius:
|
|
739
|
+
border-radius: 9999px;
|
|
740
|
+
border-radius: var(--radius-full);
|
|
718
741
|
}
|
|
719
742
|
.disabled,
|
|
720
743
|
:disabled {
|
|
@@ -722,25 +745,6 @@ video {
|
|
|
722
745
|
opacity: 0.45;
|
|
723
746
|
cursor: not-allowed !important;
|
|
724
747
|
}
|
|
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
748
|
/* stylelint-disable selector-max-empty-lines */
|
|
745
749
|
/* DEPRECATED: use .np-text-*-title instead */
|
|
746
750
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
@@ -1784,17 +1788,87 @@ kbd kbd {
|
|
|
1784
1788
|
font-weight: var(--font-weight-bold);
|
|
1785
1789
|
font-size: 100%;
|
|
1786
1790
|
}
|
|
1787
|
-
|
|
1788
|
-
|
|
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 */
|
|
1789
1796
|
}
|
|
1790
|
-
|
|
1791
|
-
|
|
1797
|
+
.bg-primary .text-primary {
|
|
1798
|
+
color: #ffffff !important;
|
|
1792
1799
|
}
|
|
1793
|
-
.text-
|
|
1794
|
-
|
|
1800
|
+
.text-secondary {
|
|
1801
|
+
color: #5d7079 !important;
|
|
1802
|
+
color: var(--color-content-secondary) !important;
|
|
1795
1803
|
}
|
|
1796
|
-
|
|
1797
|
-
|
|
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-weight-normal {
|
|
1856
|
+
font-weight: 400 !important;
|
|
1857
|
+
font-weight: var(--font-weight-regular) !important;
|
|
1858
|
+
}
|
|
1859
|
+
.font-weight-semi-bold {
|
|
1860
|
+
font-weight: 600 !important;
|
|
1861
|
+
font-weight: var(--font-weight-semi-bold) !important;
|
|
1862
|
+
}
|
|
1863
|
+
.font-weight-bold {
|
|
1864
|
+
font-weight: 800 !important;
|
|
1865
|
+
font-weight: var(--font-weight-bold) !important;
|
|
1866
|
+
}
|
|
1867
|
+
.text-max-width {
|
|
1868
|
+
max-width: 600px;
|
|
1869
|
+
}
|
|
1870
|
+
.text-word-break {
|
|
1871
|
+
word-wrap: break-word;
|
|
1798
1872
|
}
|
|
1799
1873
|
.text-xs-center {
|
|
1800
1874
|
text-align: center;
|
|
@@ -1802,234 +1876,123 @@ kbd kbd {
|
|
|
1802
1876
|
.text-xs-justify {
|
|
1803
1877
|
text-align: justify;
|
|
1804
1878
|
}
|
|
1805
|
-
.text-xs-
|
|
1806
|
-
|
|
1879
|
+
.text-xs-left {
|
|
1880
|
+
text-align: start;
|
|
1881
|
+
}
|
|
1882
|
+
.text-xs-right {
|
|
1883
|
+
text-align: end;
|
|
1807
1884
|
}
|
|
1808
1885
|
@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
1886
|
.text-sm-center {
|
|
1822
1887
|
text-align: center;
|
|
1823
1888
|
}
|
|
1824
1889
|
.text-sm-justify {
|
|
1825
1890
|
text-align: justify;
|
|
1826
1891
|
}
|
|
1827
|
-
.text-sm-
|
|
1828
|
-
|
|
1892
|
+
.text-sm-left {
|
|
1893
|
+
text-align: start;
|
|
1894
|
+
}
|
|
1895
|
+
.text-sm-right {
|
|
1896
|
+
text-align: end;
|
|
1829
1897
|
}
|
|
1830
1898
|
}
|
|
1831
1899
|
@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
1900
|
.text-md-center {
|
|
1845
1901
|
text-align: center;
|
|
1846
1902
|
}
|
|
1847
1903
|
.text-md-justify {
|
|
1848
1904
|
text-align: justify;
|
|
1849
1905
|
}
|
|
1850
|
-
.text-md-
|
|
1851
|
-
|
|
1906
|
+
.text-md-left {
|
|
1907
|
+
text-align: start;
|
|
1908
|
+
}
|
|
1909
|
+
.text-md-right {
|
|
1910
|
+
text-align: end;
|
|
1852
1911
|
}
|
|
1853
1912
|
}
|
|
1854
1913
|
@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
1914
|
.text-lg-center {
|
|
1868
1915
|
text-align: center;
|
|
1869
1916
|
}
|
|
1870
1917
|
.text-lg-justify {
|
|
1871
1918
|
text-align: justify;
|
|
1872
1919
|
}
|
|
1873
|
-
.text-lg-
|
|
1874
|
-
|
|
1920
|
+
.text-lg-left {
|
|
1921
|
+
text-align: start;
|
|
1922
|
+
}
|
|
1923
|
+
.text-lg-right {
|
|
1924
|
+
text-align: end;
|
|
1875
1925
|
}
|
|
1876
1926
|
}
|
|
1877
1927
|
@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
1928
|
.text-xl-center {
|
|
1891
1929
|
text-align: center;
|
|
1892
1930
|
}
|
|
1893
1931
|
.text-xl-justify {
|
|
1894
1932
|
text-align: justify;
|
|
1895
1933
|
}
|
|
1896
|
-
.text-xl-
|
|
1897
|
-
|
|
1934
|
+
.text-xl-left {
|
|
1935
|
+
text-align: start;
|
|
1936
|
+
}
|
|
1937
|
+
.text-xl-right {
|
|
1938
|
+
text-align: end;
|
|
1898
1939
|
}
|
|
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
1940
|
}
|
|
1909
1941
|
.text-underline {
|
|
1910
|
-
text-decoration: underline;
|
|
1911
|
-
-
|
|
1912
|
-
text-decoration: underline !important;
|
|
1913
|
-
text-underline-offset: 0.3em;
|
|
1942
|
+
text-decoration-line: underline !important;
|
|
1943
|
+
text-underline-offset: 2px;
|
|
1914
1944
|
}
|
|
1915
1945
|
.text-no-decoration {
|
|
1916
|
-
|
|
1917
|
-
text-decoration: none !important;
|
|
1946
|
+
text-decoration-line: none !important;
|
|
1918
1947
|
}
|
|
1919
1948
|
.text-ellipsis,
|
|
1920
1949
|
.text-ellipses {
|
|
1921
1950
|
display: block;
|
|
1951
|
+
overflow: hidden;
|
|
1922
1952
|
text-overflow: ellipsis;
|
|
1923
1953
|
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
|
-
}
|
|
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
1954
|
}
|
|
1985
|
-
|
|
1986
|
-
|
|
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;
|
|
1955
|
+
.text-uppercase {
|
|
1956
|
+
text-transform: uppercase;
|
|
1999
1957
|
}
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
color: #855400 !important;
|
|
2003
|
-
color: var(--color-content-warning-hover) !important;
|
|
1958
|
+
.text-lowercase {
|
|
1959
|
+
text-transform: lowercase;
|
|
2004
1960
|
}
|
|
2005
|
-
.
|
|
2006
|
-
|
|
1961
|
+
.text-capitalize {
|
|
1962
|
+
text-transform: capitalize;
|
|
2007
1963
|
}
|
|
2008
|
-
.text-
|
|
2009
|
-
|
|
2010
|
-
color: var(--color-sentiment-negative) !important;
|
|
1964
|
+
.text-xs-nowrap {
|
|
1965
|
+
white-space: nowrap;
|
|
2011
1966
|
}
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
color: var(--color-sentiment-negative-hover) !important;
|
|
1967
|
+
@media (min-width: 576px) {
|
|
1968
|
+
.text-sm-nowrap {
|
|
1969
|
+
white-space: nowrap;
|
|
1970
|
+
}
|
|
2017
1971
|
}
|
|
2018
|
-
|
|
2019
|
-
.
|
|
2020
|
-
|
|
1972
|
+
@media (min-width: 768px) {
|
|
1973
|
+
.text-md-nowrap {
|
|
1974
|
+
white-space: nowrap;
|
|
1975
|
+
}
|
|
2021
1976
|
}
|
|
2022
|
-
|
|
2023
|
-
|
|
1977
|
+
@media (min-width: 992px) {
|
|
1978
|
+
.text-lg-nowrap {
|
|
1979
|
+
white-space: nowrap;
|
|
1980
|
+
}
|
|
2024
1981
|
}
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
1982
|
+
@media (min-width: 1200px) {
|
|
1983
|
+
.text-xl-nowrap {
|
|
1984
|
+
white-space: nowrap;
|
|
1985
|
+
}
|
|
2028
1986
|
}
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
1987
|
+
/**
|
|
1988
|
+
* @deprecated Obsolete since the brand has turned green.
|
|
1989
|
+
*/
|
|
1990
|
+
.font-italic {
|
|
1991
|
+
font-style: italic !important;
|
|
2032
1992
|
}
|
|
1993
|
+
/**
|
|
1994
|
+
* @deprecated Obsolete since the brand has turned green.
|
|
1995
|
+
*/
|
|
2033
1996
|
.colored-dot::after {
|
|
2034
1997
|
content: none;
|
|
2035
1998
|
}
|