@transferwise/neptune-css 14.9.2 → 14.9.3
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 +0 -8
- package/dist/css/flex.css +253 -417
- package/dist/css/navbar-base.css +339 -168
- package/dist/css/navbar.css +107 -41
- package/dist/css/neptune-addons.css +893 -421
- package/dist/css/neptune-core.css +200 -163
- package/dist/css/neptune.css +15471 -14675
- package/dist/css/utilities.css +72 -1202
- package/package.json +1 -1
- package/src/less/addons/_display-utilities.less +159 -0
- package/src/less/addons/_spacing-utilities.less +26 -3
- package/src/less/addons/_utilities.less +147 -0
- package/src/less/border-radius.less +3 -1
- package/src/less/core/_scaffolding.less +27 -7
- package/src/less/core/_typography-utilities.less +237 -17
- package/src/less/flex.less +18 -9
- package/src/less/{addons → mixins}/_center-block.less +4 -2
- package/src/less/mixins/_flex.less +105 -0
- package/src/less/navbar.less +2 -10
- package/src/less/neptune-addons.less +1 -4
- package/src/less/utilities.less +141 -29
- package/src/less/utilities/align-items.less +0 -107
- package/src/less/utilities/align-self.less +0 -107
- package/src/less/utilities/border-radius.less +0 -11
- package/src/less/utilities/color.less +0 -70
- package/src/less/utilities/cursor.less +0 -3
- package/src/less/utilities/display.less +0 -178
- package/src/less/utilities/flex-direction.less +0 -47
- package/src/less/utilities/flex-grow.less +0 -27
- package/src/less/utilities/flex-wrap.less +0 -47
- package/src/less/utilities/float.less +0 -77
- package/src/less/utilities/font-weight.less +0 -11
- package/src/less/utilities/gap.less +0 -3
- package/src/less/utilities/justify-content.less +0 -107
- package/src/less/utilities/margin.less +0 -192
- package/src/less/utilities/max-width.less +0 -3
- package/src/less/utilities/order.less +0 -87
- package/src/less/utilities/outline-style.less +0 -8
- package/src/less/utilities/overflow-wrap.less +0 -3
- package/src/less/utilities/padding.less +0 -179
- package/src/less/utilities/position.less +0 -3
- package/src/less/utilities/rotate.less +0 -12
- package/src/less/utilities/screen-reader.less +0 -24
- package/src/less/utilities/text-align.less +0 -87
- package/src/less/utilities/text-decoration-line.less +0 -8
- package/src/less/utilities/text-overflow.less +0 -7
- package/src/less/utilities/text-transform.less +0 -11
- package/src/less/utilities/visibility.less +0 -3
- 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:
|
|
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 */
|
|
@@ -1785,87 +1781,17 @@ kbd kbd {
|
|
|
1785
1781
|
font-weight: var(--font-weight-bold);
|
|
1786
1782
|
font-size: 100%;
|
|
1787
1783
|
}
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
color: #37517e !important;
|
|
1791
|
-
color: var(--color-content-primary) !important;
|
|
1792
|
-
/* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
|
|
1793
|
-
}
|
|
1794
|
-
.bg-primary .text-primary {
|
|
1795
|
-
color: #ffffff !important;
|
|
1796
|
-
}
|
|
1797
|
-
.text-secondary {
|
|
1798
|
-
color: #5d7079 !important;
|
|
1799
|
-
color: var(--color-content-secondary) !important;
|
|
1800
|
-
}
|
|
1801
|
-
.text-muted {
|
|
1802
|
-
color: #768e9c !important;
|
|
1803
|
-
color: var(--color-content-tertiary) !important;
|
|
1804
|
-
}
|
|
1805
|
-
.text-accent,
|
|
1806
|
-
.text-info {
|
|
1807
|
-
color: var(--color-interactive-primary) !important;
|
|
1808
|
-
/* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
|
|
1809
|
-
}
|
|
1810
|
-
.bg-primary .text-accent,
|
|
1811
|
-
.bg-primary .text-info {
|
|
1812
|
-
color: #00b9ff !important;
|
|
1813
|
-
}
|
|
1814
|
-
.text-negative,
|
|
1815
|
-
.text-danger {
|
|
1816
|
-
color: var(--color-sentiment-negative) !important;
|
|
1817
|
-
/* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
|
|
1818
|
-
}
|
|
1819
|
-
.bg-primary .text-negative,
|
|
1820
|
-
.bg-primary .text-danger {
|
|
1821
|
-
color: #ffa6a9 !important;
|
|
1822
|
-
}
|
|
1823
|
-
.text-positive,
|
|
1824
|
-
.text-success {
|
|
1825
|
-
color: var(--color-sentiment-positive) !important;
|
|
1826
|
-
/* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
|
|
1827
|
-
}
|
|
1828
|
-
.bg-primary .text-positive,
|
|
1829
|
-
.bg-primary .text-success {
|
|
1830
|
-
color: #6fd698 !important;
|
|
1831
|
-
}
|
|
1832
|
-
/**
|
|
1833
|
-
* @deprecated This makes text inaccessible. Use background color in combination with `.text-primary` instead.
|
|
1834
|
-
*/
|
|
1835
|
-
.text-warning {
|
|
1836
|
-
color: var(--color-sentiment-warning) !important;
|
|
1837
|
-
/* @DEPRECATED: .bg-primary use .bg-elevated or ThemeProvider with theme="forest-green" instead */
|
|
1838
|
-
}
|
|
1839
|
-
.bg-primary .text-warning {
|
|
1840
|
-
color: #ffd184 !important;
|
|
1841
|
-
}
|
|
1842
|
-
/**
|
|
1843
|
-
* @deprecated Navy colors are obsolete.
|
|
1844
|
-
*/
|
|
1845
|
-
.text-inverse {
|
|
1846
|
-
color: #ffffff !important;
|
|
1847
|
-
}
|
|
1848
|
-
a.text-inverse:hover,
|
|
1849
|
-
a.text-inverse:focus {
|
|
1850
|
-
color: #c9cbce !important;
|
|
1851
|
-
}
|
|
1852
|
-
.font-weight-normal {
|
|
1853
|
-
font-weight: 400 !important;
|
|
1854
|
-
font-weight: var(--font-weight-regular) !important;
|
|
1855
|
-
}
|
|
1856
|
-
.font-weight-semi-bold {
|
|
1857
|
-
font-weight: 600 !important;
|
|
1858
|
-
font-weight: var(--font-weight-semi-bold) !important;
|
|
1784
|
+
.text-xs-left {
|
|
1785
|
+
text-align: left;
|
|
1859
1786
|
}
|
|
1860
|
-
.
|
|
1861
|
-
|
|
1862
|
-
font-weight: var(--font-weight-bold) !important;
|
|
1787
|
+
[dir="rtl"] .text-xs-left {
|
|
1788
|
+
text-align: right;
|
|
1863
1789
|
}
|
|
1864
|
-
.text-
|
|
1865
|
-
|
|
1790
|
+
.text-xs-right {
|
|
1791
|
+
text-align: right;
|
|
1866
1792
|
}
|
|
1867
|
-
.text-
|
|
1868
|
-
|
|
1793
|
+
[dir="rtl"] .text-xs-right {
|
|
1794
|
+
text-align: left;
|
|
1869
1795
|
}
|
|
1870
1796
|
.text-xs-center {
|
|
1871
1797
|
text-align: center;
|
|
@@ -1873,123 +1799,234 @@ a.text-inverse:focus {
|
|
|
1873
1799
|
.text-xs-justify {
|
|
1874
1800
|
text-align: justify;
|
|
1875
1801
|
}
|
|
1876
|
-
.text-xs-
|
|
1877
|
-
|
|
1878
|
-
}
|
|
1879
|
-
.text-xs-right {
|
|
1880
|
-
text-align: end;
|
|
1802
|
+
.text-xs-nowrap {
|
|
1803
|
+
white-space: nowrap;
|
|
1881
1804
|
}
|
|
1882
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
|
+
}
|
|
1883
1818
|
.text-sm-center {
|
|
1884
1819
|
text-align: center;
|
|
1885
1820
|
}
|
|
1886
1821
|
.text-sm-justify {
|
|
1887
1822
|
text-align: justify;
|
|
1888
1823
|
}
|
|
1889
|
-
.text-sm-
|
|
1890
|
-
|
|
1891
|
-
}
|
|
1892
|
-
.text-sm-right {
|
|
1893
|
-
text-align: end;
|
|
1824
|
+
.text-sm-nowrap {
|
|
1825
|
+
white-space: nowrap;
|
|
1894
1826
|
}
|
|
1895
1827
|
}
|
|
1896
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
|
+
}
|
|
1897
1841
|
.text-md-center {
|
|
1898
1842
|
text-align: center;
|
|
1899
1843
|
}
|
|
1900
1844
|
.text-md-justify {
|
|
1901
1845
|
text-align: justify;
|
|
1902
1846
|
}
|
|
1903
|
-
.text-md-
|
|
1904
|
-
|
|
1905
|
-
}
|
|
1906
|
-
.text-md-right {
|
|
1907
|
-
text-align: end;
|
|
1847
|
+
.text-md-nowrap {
|
|
1848
|
+
white-space: nowrap;
|
|
1908
1849
|
}
|
|
1909
1850
|
}
|
|
1910
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
|
+
}
|
|
1911
1864
|
.text-lg-center {
|
|
1912
1865
|
text-align: center;
|
|
1913
1866
|
}
|
|
1914
1867
|
.text-lg-justify {
|
|
1915
1868
|
text-align: justify;
|
|
1916
1869
|
}
|
|
1917
|
-
.text-lg-
|
|
1918
|
-
|
|
1919
|
-
}
|
|
1920
|
-
.text-lg-right {
|
|
1921
|
-
text-align: end;
|
|
1870
|
+
.text-lg-nowrap {
|
|
1871
|
+
white-space: nowrap;
|
|
1922
1872
|
}
|
|
1923
1873
|
}
|
|
1924
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
|
+
}
|
|
1925
1887
|
.text-xl-center {
|
|
1926
1888
|
text-align: center;
|
|
1927
1889
|
}
|
|
1928
1890
|
.text-xl-justify {
|
|
1929
1891
|
text-align: justify;
|
|
1930
1892
|
}
|
|
1931
|
-
.text-xl-
|
|
1932
|
-
|
|
1933
|
-
}
|
|
1934
|
-
.text-xl-right {
|
|
1935
|
-
text-align: end;
|
|
1893
|
+
.text-xl-nowrap {
|
|
1894
|
+
white-space: nowrap;
|
|
1936
1895
|
}
|
|
1937
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
|
+
}
|
|
1938
1906
|
.text-underline {
|
|
1939
|
-
text-decoration
|
|
1940
|
-
text-
|
|
1907
|
+
text-decoration: underline;
|
|
1908
|
+
-webkit-text-decoration: underline !important;
|
|
1909
|
+
text-decoration: underline !important;
|
|
1910
|
+
text-underline-offset: 0.3em;
|
|
1941
1911
|
}
|
|
1942
1912
|
.text-no-decoration {
|
|
1943
|
-
text-decoration
|
|
1913
|
+
-webkit-text-decoration: none !important;
|
|
1914
|
+
text-decoration: none !important;
|
|
1944
1915
|
}
|
|
1945
1916
|
.text-ellipsis,
|
|
1946
1917
|
.text-ellipses {
|
|
1947
1918
|
display: block;
|
|
1948
|
-
overflow: hidden;
|
|
1949
1919
|
text-overflow: ellipsis;
|
|
1950
1920
|
white-space: nowrap;
|
|
1921
|
+
overflow: hidden;
|
|
1951
1922
|
}
|
|
1952
|
-
.text-
|
|
1953
|
-
|
|
1923
|
+
.text-max-width {
|
|
1924
|
+
max-width: 600px;
|
|
1954
1925
|
}
|
|
1955
|
-
.text-
|
|
1956
|
-
|
|
1926
|
+
.text-word-break {
|
|
1927
|
+
word-break: break-all;
|
|
1957
1928
|
}
|
|
1958
|
-
.
|
|
1959
|
-
|
|
1929
|
+
.font-weight-bold {
|
|
1930
|
+
font-weight: 800 !important;
|
|
1931
|
+
font-weight: var(--font-weight-bold) !important;
|
|
1960
1932
|
}
|
|
1961
|
-
.
|
|
1962
|
-
|
|
1933
|
+
.font-weight-semi-bold {
|
|
1934
|
+
font-weight: 600 !important;
|
|
1935
|
+
font-weight: var(--font-weight-semi-bold) !important;
|
|
1963
1936
|
}
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
}
|
|
1937
|
+
.font-weight-normal {
|
|
1938
|
+
font-weight: 400 !important;
|
|
1939
|
+
font-weight: var(--font-weight-regular) !important;
|
|
1968
1940
|
}
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
white-space: nowrap;
|
|
1972
|
-
}
|
|
1941
|
+
.font-italic {
|
|
1942
|
+
font-style: italic !important;
|
|
1973
1943
|
}
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
}
|
|
1944
|
+
.text-primary {
|
|
1945
|
+
color: #37517e !important;
|
|
1946
|
+
color: var(--color-content-primary) !important;
|
|
1978
1947
|
}
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1948
|
+
a.text-primary:hover,
|
|
1949
|
+
a.text-primary:focus {
|
|
1950
|
+
color: #37517e !important;
|
|
1951
|
+
color: var(--color-content-primary) !important;
|
|
1983
1952
|
}
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
.
|
|
1988
|
-
|
|
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;
|
|
1989
2029
|
}
|
|
1990
|
-
/**
|
|
1991
|
-
* @deprecated Obsolete since the brand has turned green.
|
|
1992
|
-
*/
|
|
1993
2030
|
.colored-dot::after {
|
|
1994
2031
|
content: none;
|
|
1995
2032
|
}
|