@transferwise/neptune-css 0.0.0-experimental-96eba2f → 0.0.0-experimental-5e97558
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/flex.css +417 -253
- package/dist/css/navbar-base.css +167 -337
- package/dist/css/navbar.css +41 -107
- package/dist/css/neptune-addons.css +422 -838
- package/dist/css/neptune-core.css +163 -200
- package/dist/css/neptune.css +14541 -15118
- 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/flex.less +9 -18
- package/src/less/navbar.less +10 -2
- package/src/less/neptune-addons.less +4 -1
- package/src/less/neptune.bundle.less +3 -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: "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:
|
|
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 */
|
|
@@ -1778,17 +1782,87 @@ kbd kbd {
|
|
|
1778
1782
|
font-weight: var(--font-weight-bold);
|
|
1779
1783
|
font-size: 100%;
|
|
1780
1784
|
}
|
|
1781
|
-
|
|
1782
|
-
|
|
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 */
|
|
1783
1790
|
}
|
|
1784
|
-
|
|
1785
|
-
|
|
1791
|
+
.bg-primary .text-primary {
|
|
1792
|
+
color: #ffffff !important;
|
|
1786
1793
|
}
|
|
1787
|
-
.text-
|
|
1788
|
-
|
|
1794
|
+
.text-secondary {
|
|
1795
|
+
color: #5d7079 !important;
|
|
1796
|
+
color: var(--color-content-secondary) !important;
|
|
1789
1797
|
}
|
|
1790
|
-
|
|
1791
|
-
|
|
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;
|
|
1856
|
+
}
|
|
1857
|
+
.font-weight-bold {
|
|
1858
|
+
font-weight: 800 !important;
|
|
1859
|
+
font-weight: var(--font-weight-bold) !important;
|
|
1860
|
+
}
|
|
1861
|
+
.text-max-width {
|
|
1862
|
+
max-width: 600px;
|
|
1863
|
+
}
|
|
1864
|
+
.text-word-break {
|
|
1865
|
+
word-wrap: break-word;
|
|
1792
1866
|
}
|
|
1793
1867
|
.text-xs-center {
|
|
1794
1868
|
text-align: center;
|
|
@@ -1796,234 +1870,123 @@ kbd kbd {
|
|
|
1796
1870
|
.text-xs-justify {
|
|
1797
1871
|
text-align: justify;
|
|
1798
1872
|
}
|
|
1799
|
-
.text-xs-
|
|
1800
|
-
|
|
1873
|
+
.text-xs-left {
|
|
1874
|
+
text-align: start;
|
|
1875
|
+
}
|
|
1876
|
+
.text-xs-right {
|
|
1877
|
+
text-align: end;
|
|
1801
1878
|
}
|
|
1802
1879
|
@media (min-width: 576px) {
|
|
1803
|
-
.text-sm-left {
|
|
1804
|
-
text-align: left;
|
|
1805
|
-
}
|
|
1806
|
-
[dir="rtl"] .text-sm-left {
|
|
1807
|
-
text-align: right;
|
|
1808
|
-
}
|
|
1809
|
-
.text-sm-right {
|
|
1810
|
-
text-align: right;
|
|
1811
|
-
}
|
|
1812
|
-
[dir="rtl"] .text-sm-right {
|
|
1813
|
-
text-align: left;
|
|
1814
|
-
}
|
|
1815
1880
|
.text-sm-center {
|
|
1816
1881
|
text-align: center;
|
|
1817
1882
|
}
|
|
1818
1883
|
.text-sm-justify {
|
|
1819
1884
|
text-align: justify;
|
|
1820
1885
|
}
|
|
1821
|
-
.text-sm-
|
|
1822
|
-
|
|
1886
|
+
.text-sm-left {
|
|
1887
|
+
text-align: start;
|
|
1888
|
+
}
|
|
1889
|
+
.text-sm-right {
|
|
1890
|
+
text-align: end;
|
|
1823
1891
|
}
|
|
1824
1892
|
}
|
|
1825
1893
|
@media (min-width: 768px) {
|
|
1826
|
-
.text-md-left {
|
|
1827
|
-
text-align: left;
|
|
1828
|
-
}
|
|
1829
|
-
[dir="rtl"] .text-md-left {
|
|
1830
|
-
text-align: right;
|
|
1831
|
-
}
|
|
1832
|
-
.text-md-right {
|
|
1833
|
-
text-align: right;
|
|
1834
|
-
}
|
|
1835
|
-
[dir="rtl"] .text-md-right {
|
|
1836
|
-
text-align: left;
|
|
1837
|
-
}
|
|
1838
1894
|
.text-md-center {
|
|
1839
1895
|
text-align: center;
|
|
1840
1896
|
}
|
|
1841
1897
|
.text-md-justify {
|
|
1842
1898
|
text-align: justify;
|
|
1843
1899
|
}
|
|
1844
|
-
.text-md-
|
|
1845
|
-
|
|
1900
|
+
.text-md-left {
|
|
1901
|
+
text-align: start;
|
|
1902
|
+
}
|
|
1903
|
+
.text-md-right {
|
|
1904
|
+
text-align: end;
|
|
1846
1905
|
}
|
|
1847
1906
|
}
|
|
1848
1907
|
@media (min-width: 992px) {
|
|
1849
|
-
.text-lg-left {
|
|
1850
|
-
text-align: left;
|
|
1851
|
-
}
|
|
1852
|
-
[dir="rtl"] .text-lg-left {
|
|
1853
|
-
text-align: right;
|
|
1854
|
-
}
|
|
1855
|
-
.text-lg-right {
|
|
1856
|
-
text-align: right;
|
|
1857
|
-
}
|
|
1858
|
-
[dir="rtl"] .text-lg-right {
|
|
1859
|
-
text-align: left;
|
|
1860
|
-
}
|
|
1861
1908
|
.text-lg-center {
|
|
1862
1909
|
text-align: center;
|
|
1863
1910
|
}
|
|
1864
1911
|
.text-lg-justify {
|
|
1865
1912
|
text-align: justify;
|
|
1866
1913
|
}
|
|
1867
|
-
.text-lg-
|
|
1868
|
-
|
|
1914
|
+
.text-lg-left {
|
|
1915
|
+
text-align: start;
|
|
1916
|
+
}
|
|
1917
|
+
.text-lg-right {
|
|
1918
|
+
text-align: end;
|
|
1869
1919
|
}
|
|
1870
1920
|
}
|
|
1871
1921
|
@media (min-width: 1200px) {
|
|
1872
|
-
.text-xl-left {
|
|
1873
|
-
text-align: left;
|
|
1874
|
-
}
|
|
1875
|
-
[dir="rtl"] .text-xl-left {
|
|
1876
|
-
text-align: right;
|
|
1877
|
-
}
|
|
1878
|
-
.text-xl-right {
|
|
1879
|
-
text-align: right;
|
|
1880
|
-
}
|
|
1881
|
-
[dir="rtl"] .text-xl-right {
|
|
1882
|
-
text-align: left;
|
|
1883
|
-
}
|
|
1884
1922
|
.text-xl-center {
|
|
1885
1923
|
text-align: center;
|
|
1886
1924
|
}
|
|
1887
1925
|
.text-xl-justify {
|
|
1888
1926
|
text-align: justify;
|
|
1889
1927
|
}
|
|
1890
|
-
.text-xl-
|
|
1891
|
-
|
|
1928
|
+
.text-xl-left {
|
|
1929
|
+
text-align: start;
|
|
1930
|
+
}
|
|
1931
|
+
.text-xl-right {
|
|
1932
|
+
text-align: end;
|
|
1892
1933
|
}
|
|
1893
|
-
}
|
|
1894
|
-
.text-lowercase {
|
|
1895
|
-
text-transform: lowercase;
|
|
1896
|
-
}
|
|
1897
|
-
.text-uppercase {
|
|
1898
|
-
text-transform: uppercase;
|
|
1899
|
-
}
|
|
1900
|
-
.text-capitalize {
|
|
1901
|
-
text-transform: capitalize;
|
|
1902
1934
|
}
|
|
1903
1935
|
.text-underline {
|
|
1904
|
-
text-decoration: underline;
|
|
1905
|
-
-
|
|
1906
|
-
text-decoration: underline !important;
|
|
1907
|
-
text-underline-offset: 0.3em;
|
|
1936
|
+
text-decoration-line: underline !important;
|
|
1937
|
+
text-underline-offset: 2px;
|
|
1908
1938
|
}
|
|
1909
1939
|
.text-no-decoration {
|
|
1910
|
-
|
|
1911
|
-
text-decoration: none !important;
|
|
1940
|
+
text-decoration-line: none !important;
|
|
1912
1941
|
}
|
|
1913
1942
|
.text-ellipsis,
|
|
1914
1943
|
.text-ellipses {
|
|
1915
1944
|
display: block;
|
|
1945
|
+
overflow: hidden;
|
|
1916
1946
|
text-overflow: ellipsis;
|
|
1917
1947
|
white-space: nowrap;
|
|
1918
|
-
overflow: hidden;
|
|
1919
|
-
}
|
|
1920
|
-
.text-max-width {
|
|
1921
|
-
max-width: 600px;
|
|
1922
|
-
}
|
|
1923
|
-
.text-word-break {
|
|
1924
|
-
word-break: break-all;
|
|
1925
|
-
}
|
|
1926
|
-
.font-weight-bold {
|
|
1927
|
-
font-weight: 800 !important;
|
|
1928
|
-
font-weight: var(--font-weight-bold) !important;
|
|
1929
|
-
}
|
|
1930
|
-
.font-weight-semi-bold {
|
|
1931
|
-
font-weight: 600 !important;
|
|
1932
|
-
font-weight: var(--font-weight-semi-bold) !important;
|
|
1933
|
-
}
|
|
1934
|
-
.font-weight-normal {
|
|
1935
|
-
font-weight: 400 !important;
|
|
1936
|
-
font-weight: var(--font-weight-regular) !important;
|
|
1937
|
-
}
|
|
1938
|
-
.font-italic {
|
|
1939
|
-
font-style: italic !important;
|
|
1940
|
-
}
|
|
1941
|
-
.text-primary {
|
|
1942
|
-
color: #37517e !important;
|
|
1943
|
-
color: var(--color-content-primary) !important;
|
|
1944
|
-
}
|
|
1945
|
-
a.text-primary:hover,
|
|
1946
|
-
a.text-primary:focus {
|
|
1947
|
-
color: #37517e !important;
|
|
1948
|
-
color: var(--color-content-primary) !important;
|
|
1949
|
-
}
|
|
1950
|
-
.bg-primary .text-primary {
|
|
1951
|
-
color: #ffffff !important;
|
|
1952
|
-
}
|
|
1953
|
-
.text-secondary {
|
|
1954
|
-
color: #5d7079 !important;
|
|
1955
|
-
color: var(--color-content-secondary) !important;
|
|
1956
|
-
}
|
|
1957
|
-
.text-positive,
|
|
1958
|
-
.text-success {
|
|
1959
|
-
color: #008026 !important;
|
|
1960
|
-
color: var(--color-content-positive) !important;
|
|
1961
|
-
}
|
|
1962
|
-
a.text-positive:hover,
|
|
1963
|
-
a.text-success:hover,
|
|
1964
|
-
a.text-positive:focus,
|
|
1965
|
-
a.text-success:focus {
|
|
1966
|
-
color: #006d13 !important;
|
|
1967
|
-
color: var(--color-content-positive-hover) !important;
|
|
1968
|
-
}
|
|
1969
|
-
.bg-primary .text-positive,
|
|
1970
|
-
.bg-primary .text-success {
|
|
1971
|
-
color: #6fd698 !important;
|
|
1972
|
-
}
|
|
1973
|
-
.text-accent,
|
|
1974
|
-
.text-info {
|
|
1975
|
-
color: #0097c7 !important;
|
|
1976
|
-
color: var(--color-content-accent) !important;
|
|
1977
|
-
color: var(--color-interactive-primary) !important;
|
|
1978
1948
|
}
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
a.text-accent:focus,
|
|
1982
|
-
a.text-info:focus {
|
|
1983
|
-
color: #0084b3 !important;
|
|
1984
|
-
color: var(--color-content-accent-hover) !important;
|
|
1985
|
-
}
|
|
1986
|
-
.bg-primary .text-accent,
|
|
1987
|
-
.bg-primary .text-info {
|
|
1988
|
-
color: #00b9ff !important;
|
|
1989
|
-
}
|
|
1990
|
-
.text-warning {
|
|
1991
|
-
color: #9a6500 !important;
|
|
1992
|
-
color: var(--color-content-warning) !important;
|
|
1949
|
+
.text-uppercase {
|
|
1950
|
+
text-transform: uppercase;
|
|
1993
1951
|
}
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
color: #855400 !important;
|
|
1997
|
-
color: var(--color-content-warning-hover) !important;
|
|
1952
|
+
.text-lowercase {
|
|
1953
|
+
text-transform: lowercase;
|
|
1998
1954
|
}
|
|
1999
|
-
.
|
|
2000
|
-
|
|
1955
|
+
.text-capitalize {
|
|
1956
|
+
text-transform: capitalize;
|
|
2001
1957
|
}
|
|
2002
|
-
.text-
|
|
2003
|
-
|
|
2004
|
-
color: var(--color-sentiment-negative) !important;
|
|
1958
|
+
.text-xs-nowrap {
|
|
1959
|
+
white-space: nowrap;
|
|
2005
1960
|
}
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
color: var(--color-sentiment-negative-hover) !important;
|
|
1961
|
+
@media (min-width: 576px) {
|
|
1962
|
+
.text-sm-nowrap {
|
|
1963
|
+
white-space: nowrap;
|
|
1964
|
+
}
|
|
2011
1965
|
}
|
|
2012
|
-
|
|
2013
|
-
.
|
|
2014
|
-
|
|
1966
|
+
@media (min-width: 768px) {
|
|
1967
|
+
.text-md-nowrap {
|
|
1968
|
+
white-space: nowrap;
|
|
1969
|
+
}
|
|
2015
1970
|
}
|
|
2016
|
-
|
|
2017
|
-
|
|
1971
|
+
@media (min-width: 992px) {
|
|
1972
|
+
.text-lg-nowrap {
|
|
1973
|
+
white-space: nowrap;
|
|
1974
|
+
}
|
|
2018
1975
|
}
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
1976
|
+
@media (min-width: 1200px) {
|
|
1977
|
+
.text-xl-nowrap {
|
|
1978
|
+
white-space: nowrap;
|
|
1979
|
+
}
|
|
2022
1980
|
}
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
1981
|
+
/**
|
|
1982
|
+
* @deprecated Obsolete since the brand has turned green.
|
|
1983
|
+
*/
|
|
1984
|
+
.font-italic {
|
|
1985
|
+
font-style: italic !important;
|
|
2026
1986
|
}
|
|
1987
|
+
/**
|
|
1988
|
+
* @deprecated Obsolete since the brand has turned green.
|
|
1989
|
+
*/
|
|
2027
1990
|
.colored-dot::after {
|
|
2028
1991
|
content: none;
|
|
2029
1992
|
}
|