@transferwise/neptune-css 0.0.0-experimental-aabbb4a → 0.0.0-experimental-8b73066

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 (41) hide show
  1. package/dist/css/accordion.css +4 -4
  2. package/dist/css/button-groups.css +6 -6
  3. package/dist/css/buttons.css +1 -1
  4. package/dist/css/circles.css +1 -1
  5. package/dist/css/column-layout.css +4 -4
  6. package/dist/css/decision.css +4 -4
  7. package/dist/css/dropdowns.css +10 -10
  8. package/dist/css/droppable.css +8 -8
  9. package/dist/css/flex.css +15 -13
  10. package/dist/css/footer.css +3 -3
  11. package/dist/css/grid.css +19 -19
  12. package/dist/css/input-groups.css +12 -12
  13. package/dist/css/list-group.css +8 -8
  14. package/dist/css/modals.css +3 -3
  15. package/dist/css/navbar.css +62 -62
  16. package/dist/css/navs.css +2 -2
  17. package/dist/css/neptune-addons.css +53 -37
  18. package/dist/css/neptune-core.css +58 -28
  19. package/dist/css/neptune.css +350 -532
  20. package/dist/css/panels.css +9 -9
  21. package/dist/css/popovers.css +13 -13
  22. package/dist/css/select.css +1 -1
  23. package/dist/css/sequences.css +6 -6
  24. package/dist/css/table.css +6 -6
  25. package/dist/css/utilities.css +20 -8
  26. package/dist/css/wells.css +18 -4
  27. package/dist/less/legacy-variables.less +47 -34
  28. package/dist/less/neptune-tokens.less +2 -2
  29. package/dist/props/custom-media.css +11 -23
  30. package/dist/props/neptune-tokens.css +1 -1
  31. package/package.json +2 -2
  32. package/src/less/addons/_display-utilities.less +27 -13
  33. package/src/less/core/_typography-utilities.less +22 -10
  34. package/src/less/core/_typography.less +28 -6
  35. package/src/less/flex.less +3 -1
  36. package/src/less/neptune.bundle.less +0 -1
  37. package/src/less/popovers.less +6 -6
  38. package/src/less/utilities.less +14 -6
  39. package/src/less/wells.less +5 -3
  40. package/src/props/custom-media.css +11 -1
  41. package/src/variables/legacy-variables.less +47 -4
@@ -139,91 +139,107 @@
139
139
  .visible-xl-inline-block {
140
140
  display: none !important;
141
141
  }
142
- @media (max-width: 599.98px) {
142
+ @media (max-width: 575px) {
143
143
  .visible-xs,
144
144
  .visible-xs-block {
145
145
  display: block !important;
146
146
  }
147
147
  }
148
- @media (max-width: 599.98px) {
148
+ @media (max-width: 575px) {
149
149
  .visible-xs-inline {
150
150
  display: inline !important;
151
151
  }
152
152
  }
153
- @media (max-width: 599.98px) {
153
+ @media (max-width: 575px) {
154
154
  .visible-xs-inline-block {
155
155
  display: inline-block !important;
156
156
  }
157
157
  }
158
- @media (min-width: 600px) and (max-width: 839.98px) {
158
+ @media (min-width: 576px) and (max-width: 767px) {
159
159
  .visible-sm,
160
160
  .visible-sm-block {
161
161
  display: block !important;
162
162
  }
163
163
  }
164
- @media (min-width: 600px) and (max-width: 839.98px) {
164
+ @media (min-width: 576px) and (max-width: 767px) {
165
165
  .visible-sm-inline {
166
166
  display: inline !important;
167
167
  }
168
168
  }
169
- @media (min-width: 600px) and (max-width: 839.98px) {
169
+ @media (min-width: 576px) and (max-width: 767px) {
170
170
  .visible-sm-inline-block {
171
171
  display: inline-block !important;
172
172
  }
173
173
  }
174
- @media (min-width: 840px) and (max-width: 1159.98px) {
174
+ @media (min-width: 768px) and (max-width: 991px) {
175
175
  .visible-md,
176
176
  .visible-md-block {
177
177
  display: block !important;
178
178
  }
179
179
  }
180
- @media (min-width: 840px) and (max-width: 1159.98px) {
180
+ @media (min-width: 768px) and (max-width: 991px) {
181
181
  .visible-md-inline {
182
182
  display: inline !important;
183
183
  }
184
184
  }
185
- @media (min-width: 840px) and (max-width: 1159.98px) {
185
+ @media (min-width: 768px) and (max-width: 991px) {
186
186
  .visible-md-inline-block {
187
187
  display: inline-block !important;
188
188
  }
189
189
  }
190
- @media (min-width: 1160px) {
190
+ @media (min-width: 992px) and (max-width: 1199px) {
191
191
  .visible-lg,
192
- .visible-lg-block,
192
+ .visible-lg-block {
193
+ display: block !important;
194
+ }
195
+ }
196
+ @media (min-width: 992px) and (max-width: 1199px) {
197
+ .visible-lg-inline {
198
+ display: inline !important;
199
+ }
200
+ }
201
+ @media (min-width: 992px) and (max-width: 1199px) {
202
+ .visible-lg-inline-block {
203
+ display: inline-block !important;
204
+ }
205
+ }
206
+ @media (min-width: 1200px) {
193
207
  .visible-xl,
194
208
  .visible-xl-block {
195
209
  display: block !important;
196
210
  }
197
211
  }
198
- @media (min-width: 1160px) {
199
- .visible-lg-inline,
212
+ @media (min-width: 1200px) {
200
213
  .visible-xl-inline {
201
214
  display: inline !important;
202
215
  }
203
216
  }
204
- @media (min-width: 1160px) {
205
- .visible-lg-inline-block,
217
+ @media (min-width: 1200px) {
206
218
  .visible-xl-inline-block {
207
219
  display: inline-block !important;
208
220
  }
209
221
  }
210
- @media (max-width: 599.98px) {
222
+ @media (max-width: 575px) {
211
223
  .hidden-xs {
212
224
  display: none !important;
213
225
  }
214
226
  }
215
- @media (min-width: 600px) and (max-width: 839.98px) {
227
+ @media (min-width: 576px) and (max-width: 767px) {
216
228
  .hidden-sm {
217
229
  display: none !important;
218
230
  }
219
231
  }
220
- @media (min-width: 840px) and (max-width: 1159.98px) {
232
+ @media (min-width: 768px) and (max-width: 991px) {
221
233
  .hidden-md {
222
234
  display: none !important;
223
235
  }
224
236
  }
225
- @media (min-width: 1160px) {
226
- .hidden-lg,
237
+ @media (min-width: 992px) and (max-width: 1199px) {
238
+ .hidden-lg {
239
+ display: none !important;
240
+ }
241
+ }
242
+ @media (min-width: 1200px) {
227
243
  .hidden-xl {
228
244
  display: none !important;
229
245
  }
@@ -1115,7 +1131,7 @@ html:not([dir="rtl"]) .p-a-panel {
1115
1131
  padding-left: 16px !important;
1116
1132
  padding-left: var(--size-16) !important;
1117
1133
  }
1118
- @media (min-width: 600px) {
1134
+ @media (min-width: 576px) {
1119
1135
  .m-a-panel {
1120
1136
  margin-top: 24px !important;
1121
1137
  margin-top: var(--size-24) !important;
@@ -1161,7 +1177,7 @@ html:not([dir="rtl"]) .p-a-panel {
1161
1177
  padding-left: var(--size-24) !important;
1162
1178
  }
1163
1179
  }
1164
- @media (min-width: 1160px) {
1180
+ @media (min-width: 992px) {
1165
1181
  .m-a-panel {
1166
1182
  margin-top: 32px !important;
1167
1183
  margin-top: var(--size-32) !important;
@@ -1235,7 +1251,7 @@ html:not([dir="rtl"]) .p-a-panel {
1235
1251
  padding-bottom: 16px !important;
1236
1252
  padding-bottom: var(--size-16) !important;
1237
1253
  }
1238
- @media (min-width: 600px) {
1254
+ @media (min-width: 576px) {
1239
1255
  .m-t-panel {
1240
1256
  margin-top: 24px !important;
1241
1257
  margin-top: var(--size-24) !important;
@@ -1265,7 +1281,7 @@ html:not([dir="rtl"]) .p-a-panel {
1265
1281
  padding-bottom: var(--size-24) !important;
1266
1282
  }
1267
1283
  }
1268
- @media (min-width: 1160px) {
1284
+ @media (min-width: 992px) {
1269
1285
  .m-t-panel {
1270
1286
  margin-top: 32px !important;
1271
1287
  margin-top: var(--size-32) !important;
@@ -1359,7 +1375,7 @@ html:not([dir="rtl"]) .p-x-panel {
1359
1375
  padding-right: 16px !important;
1360
1376
  padding-right: var(--size-16) !important;
1361
1377
  }
1362
- @media (min-width: 600px) {
1378
+ @media (min-width: 576px) {
1363
1379
  [dir="rtl"] .m-l-panel {
1364
1380
  margin-right: 24px !important;
1365
1381
  margin-right: var(--size-24) !important;
@@ -1425,7 +1441,7 @@ html:not([dir="rtl"]) .p-x-panel {
1425
1441
  padding-right: var(--size-24) !important;
1426
1442
  }
1427
1443
  }
1428
- @media (min-width: 1160px) {
1444
+ @media (min-width: 992px) {
1429
1445
  [dir="rtl"] .m-l-panel {
1430
1446
  margin-right: 32px !important;
1431
1447
  margin-right: var(--size-32) !important;
@@ -1519,7 +1535,7 @@ html:not([dir="rtl"]) .p-x-panel {
1519
1535
  padding-bottom: 16px !important;
1520
1536
  padding-bottom: var(--size-16) !important;
1521
1537
  }
1522
- @media (min-width: 600px) {
1538
+ @media (min-width: 576px) {
1523
1539
  .m-t-section-1 {
1524
1540
  margin-top: 24px !important;
1525
1541
  margin-top: var(--size-24) !important;
@@ -1549,7 +1565,7 @@ html:not([dir="rtl"]) .p-x-panel {
1549
1565
  padding-bottom: var(--size-24) !important;
1550
1566
  }
1551
1567
  }
1552
- @media (min-width: 1160px) {
1568
+ @media (min-width: 992px) {
1553
1569
  .m-t-section-1 {
1554
1570
  margin-top: 32px !important;
1555
1571
  margin-top: var(--size-32) !important;
@@ -1607,7 +1623,7 @@ html:not([dir="rtl"]) .p-x-panel {
1607
1623
  padding-bottom: 32px !important;
1608
1624
  padding-bottom: var(--size-32) !important;
1609
1625
  }
1610
- @media (min-width: 600px) {
1626
+ @media (min-width: 576px) {
1611
1627
  .m-t-section-2 {
1612
1628
  margin-top: 48px !important;
1613
1629
  margin-top: var(--size-48) !important;
@@ -1637,7 +1653,7 @@ html:not([dir="rtl"]) .p-x-panel {
1637
1653
  padding-bottom: var(--size-48) !important;
1638
1654
  }
1639
1655
  }
1640
- @media (min-width: 1160px) {
1656
+ @media (min-width: 992px) {
1641
1657
  .m-t-section-2 {
1642
1658
  margin-top: 64px !important;
1643
1659
  margin-top: var(--size-64) !important;
@@ -1695,7 +1711,7 @@ html:not([dir="rtl"]) .p-x-panel {
1695
1711
  padding-bottom: 48px !important;
1696
1712
  padding-bottom: var(--size-48) !important;
1697
1713
  }
1698
- @media (min-width: 600px) {
1714
+ @media (min-width: 576px) {
1699
1715
  .m-t-section-3 {
1700
1716
  margin-top: 72px !important;
1701
1717
  margin-top: var(--size-72) !important;
@@ -1725,7 +1741,7 @@ html:not([dir="rtl"]) .p-x-panel {
1725
1741
  padding-bottom: var(--size-72) !important;
1726
1742
  }
1727
1743
  }
1728
- @media (min-width: 1160px) {
1744
+ @media (min-width: 992px) {
1729
1745
  .m-t-section-3 {
1730
1746
  margin-top: 96px !important;
1731
1747
  margin-top: var(--size-96) !important;
@@ -1791,7 +1807,7 @@ html:not([dir="rtl"]) .p-x-panel {
1791
1807
  padding-bottom: 48px;
1792
1808
  padding-bottom: var(--size-48);
1793
1809
  }
1794
- @media (min-width: 600px) {
1810
+ @media (min-width: 576px) {
1795
1811
  .section {
1796
1812
  padding-top: 72px;
1797
1813
  padding-top: var(--size-72);
@@ -1799,7 +1815,7 @@ html:not([dir="rtl"]) .p-x-panel {
1799
1815
  padding-bottom: var(--size-72);
1800
1816
  }
1801
1817
  }
1802
- @media (min-width: 1160px) {
1818
+ @media (min-width: 992px) {
1803
1819
  .section {
1804
1820
  padding-top: 96px;
1805
1821
  padding-top: var(--size-96);
@@ -1812,12 +1828,12 @@ html:not([dir="rtl"]) .p-x-panel {
1812
1828
  hyphens: auto;
1813
1829
  hyphenate-limit-chars: 7 3;
1814
1830
  }
1815
- @media (min-width: 840px) {
1831
+ @media (min-width: 768px) {
1816
1832
  .np-text-hyphenated {
1817
1833
  hyphenate-limit-chars: 8 3;
1818
1834
  }
1819
1835
  }
1820
- @media (min-width: 1160px) {
1836
+ @media (min-width: 992px) {
1821
1837
  .np-text-hyphenated {
1822
1838
  hyphenate-limit-chars: 10 4 3;
1823
1839
  }
@@ -1829,7 +1845,7 @@ html:not([dir="rtl"]) .p-x-panel {
1829
1845
  -webkit-hyphenate-limit-before: 3;
1830
1846
  -webkit-hyphenate-limit-after: 3;
1831
1847
  }
1832
- @media (min-width: 1160px) {
1848
+ @media (min-width: 992px) {
1833
1849
  .np-text-hyphenated {
1834
1850
  -webkit-hyphenate-limit-before: 4;
1835
1851
  }
@@ -549,7 +549,7 @@ dd {
549
549
  color: #37517e;
550
550
  color: var(--color-content-primary);
551
551
  }
552
- @media (min-width: 600px) {
552
+ @media (min-width: 576px) {
553
553
  dd {
554
554
  margin-bottom: 24px;
555
555
  margin-bottom: var(--size-24);
@@ -564,7 +564,7 @@ dd {
564
564
  .dl-horizontal dd::after {
565
565
  clear: both;
566
566
  }
567
- @media (min-width: 600px) {
567
+ @media (min-width: 576px) {
568
568
  .dl-horizontal dt {
569
569
  float: left;
570
570
  clear: left;
@@ -620,13 +620,13 @@ hr {
620
620
  .bg-primary hr {
621
621
  border-top: 1px solid rgba(255,255,255,0.10196);
622
622
  }
623
- @media (min-width: 600px) {
623
+ @media (min-width: 576px) {
624
624
  hr {
625
625
  margin: 24px auto;
626
626
  margin: var(--size-24) auto;
627
627
  }
628
628
  }
629
- @media (min-width: 1160px) {
629
+ @media (min-width: 992px) {
630
630
  hr {
631
631
  margin: 32px auto;
632
632
  margin: var(--size-32) auto;
@@ -740,7 +740,7 @@ h6,
740
740
  hyphens: auto;
741
741
  hyphenate-limit-chars: 7 3;
742
742
  }
743
- @media (min-width: 840px) {
743
+ @media (min-width: 768px) {
744
744
  .h1,
745
745
  .h2,
746
746
  .h3,
@@ -766,7 +766,7 @@ h6,
766
766
  hyphenate-limit-chars: 8 3;
767
767
  }
768
768
  }
769
- @media (min-width: 1160px) {
769
+ @media (min-width: 992px) {
770
770
  .h1,
771
771
  .h2,
772
772
  .h3,
@@ -820,7 +820,7 @@ h6,
820
820
  -webkit-hyphenate-limit-before: 3;
821
821
  -webkit-hyphenate-limit-after: 3;
822
822
  }
823
- @media (min-width: 1160px) {
823
+ @media (min-width: 992px) {
824
824
  .h1,
825
825
  .h2,
826
826
  .h3,
@@ -1089,7 +1089,16 @@ a,
1089
1089
  .np-text-display-extra-large,
1090
1090
  .np-text-display-large,
1091
1091
  .np-text-display-medium,
1092
- .np-text-display-small {
1092
+ .np-text-display-small,
1093
+ .display-1--forced,
1094
+ .display-2--forced,
1095
+ .display-3--forced,
1096
+ .display-4--forced,
1097
+ .display-5--forced,
1098
+ .np-text-display-extra-large--forced,
1099
+ .np-text-display-large--forced,
1100
+ .np-text-display-medium--forced,
1101
+ .np-text-display-small--forced {
1093
1102
  font-family: 'Wise Sans', 'Inter', sans-serif;
1094
1103
  font-family: var(--font-family-display);
1095
1104
  font-synthesis: none;
@@ -1135,9 +1144,14 @@ a,
1135
1144
  * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
1136
1145
  * font files are browser-cached and we carried over to launchpad, where it causes issues
1137
1146
  * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
1147
+ * There are exceptions for small UI parts where Wise Sans is fine or expected — e.g. the
1148
+ * numeric input of ExpressiveMoneyInput.
1149
+ * Add `--forced` BEM modifier to the original class name to guarantee it.
1138
1150
  */
1139
1151
  font-family: 'Inter', Helvetica, Arial, sans-serif;
1140
1152
  font-family: var(--font-family-regular);
1153
+ line-height: 1.2;
1154
+ line-height: var(--line-height-title);
1141
1155
  }
1142
1156
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
1143
1157
  .np-text-display-extra-large,
@@ -1154,7 +1168,7 @@ a,
1154
1168
  hyphens: auto;
1155
1169
  hyphenate-limit-chars: 7 3;
1156
1170
  }
1157
- @media (min-width: 840px) {
1171
+ @media (min-width: 768px) {
1158
1172
  .np-text-display-extra-large,
1159
1173
  .np-text-display-large,
1160
1174
  .np-text-display-medium,
@@ -1162,7 +1176,7 @@ a,
1162
1176
  hyphenate-limit-chars: 8 3;
1163
1177
  }
1164
1178
  }
1165
- @media (min-width: 1160px) {
1179
+ @media (min-width: 992px) {
1166
1180
  .np-text-display-extra-large,
1167
1181
  .np-text-display-large,
1168
1182
  .np-text-display-medium,
@@ -1180,7 +1194,7 @@ a,
1180
1194
  -webkit-hyphenate-limit-before: 3;
1181
1195
  -webkit-hyphenate-limit-after: 3;
1182
1196
  }
1183
- @media (min-width: 1160px) {
1197
+ @media (min-width: 992px) {
1184
1198
  .np-text-display-extra-large,
1185
1199
  .np-text-display-large,
1186
1200
  .np-text-display-medium,
@@ -1584,7 +1598,7 @@ a,
1584
1598
  /* stylelint-disable-next-line number-max-precision */
1585
1599
  font-size: 3.73333333rem;
1586
1600
  }
1587
- @media (min-width: 840px) {
1601
+ @media (min-width: 768px) {
1588
1602
  .display-1 {
1589
1603
  margin-bottom: 8px;
1590
1604
  margin-bottom: var(--size-8);
@@ -1598,7 +1612,7 @@ a,
1598
1612
  /* stylelint-disable-next-line number-max-precision */
1599
1613
  font-size: 3.73333333rem;
1600
1614
  }
1601
- @media (min-width: 840px) {
1615
+ @media (min-width: 768px) {
1602
1616
  .display-2 {
1603
1617
  margin-bottom: 16px;
1604
1618
  margin-bottom: var(--size-16);
@@ -1611,7 +1625,7 @@ a,
1611
1625
  margin-bottom: var(--size-8);
1612
1626
  font-size: 2.8rem;
1613
1627
  }
1614
- @media (min-width: 840px) {
1628
+ @media (min-width: 768px) {
1615
1629
  .display-3 {
1616
1630
  margin-bottom: 24px;
1617
1631
  margin-bottom: var(--size-24);
@@ -1625,7 +1639,7 @@ a,
1625
1639
  /* stylelint-disable-next-line number-max-precision */
1626
1640
  font-size: 1.86666667rem;
1627
1641
  }
1628
- @media (min-width: 840px) {
1642
+ @media (min-width: 768px) {
1629
1643
  .display-4 {
1630
1644
  margin-bottom: 24px;
1631
1645
  margin-bottom: var(--size-24);
@@ -1639,7 +1653,7 @@ a,
1639
1653
  /* stylelint-disable-next-line number-max-precision */
1640
1654
  font-size: 1.86666667rem;
1641
1655
  }
1642
- @media (min-width: 840px) {
1656
+ @media (min-width: 768px) {
1643
1657
  .display-5 {
1644
1658
  margin-bottom: 8px;
1645
1659
  margin-bottom: var(--size-8);
@@ -1737,13 +1751,13 @@ blockquote footer {
1737
1751
  blockquote footer::before {
1738
1752
  content: "\2014 \00A0";
1739
1753
  }
1740
- @media (min-width: 600px) {
1754
+ @media (min-width: 576px) {
1741
1755
  blockquote {
1742
1756
  margin: 24px;
1743
1757
  margin: var(--size-24);
1744
1758
  }
1745
1759
  }
1746
- @media (min-width: 1160px) {
1760
+ @media (min-width: 992px) {
1747
1761
  blockquote {
1748
1762
  margin: 32px;
1749
1763
  margin: var(--size-32);
@@ -1862,7 +1876,7 @@ kbd kbd {
1862
1876
  .text-xs-nowrap {
1863
1877
  white-space: nowrap;
1864
1878
  }
1865
- @media (min-width: 600px) {
1879
+ @media (min-width: 576px) {
1866
1880
  .text-sm-left {
1867
1881
  text-align: left;
1868
1882
  }
@@ -1885,7 +1899,7 @@ kbd kbd {
1885
1899
  white-space: nowrap;
1886
1900
  }
1887
1901
  }
1888
- @media (min-width: 840px) {
1902
+ @media (min-width: 768px) {
1889
1903
  .text-md-left {
1890
1904
  text-align: left;
1891
1905
  }
@@ -1908,32 +1922,48 @@ kbd kbd {
1908
1922
  white-space: nowrap;
1909
1923
  }
1910
1924
  }
1911
- @media (min-width: 1160px) {
1912
- .text-lg-left,
1925
+ @media (min-width: 992px) {
1926
+ .text-lg-left {
1927
+ text-align: left;
1928
+ }
1929
+ [dir="rtl"] .text-lg-left {
1930
+ text-align: right;
1931
+ }
1932
+ .text-lg-right {
1933
+ text-align: right;
1934
+ }
1935
+ [dir="rtl"] .text-lg-right {
1936
+ text-align: left;
1937
+ }
1938
+ .text-lg-center {
1939
+ text-align: center;
1940
+ }
1941
+ .text-lg-justify {
1942
+ text-align: justify;
1943
+ }
1944
+ .text-lg-nowrap {
1945
+ white-space: nowrap;
1946
+ }
1947
+ }
1948
+ @media (min-width: 1200px) {
1913
1949
  .text-xl-left {
1914
1950
  text-align: left;
1915
1951
  }
1916
- [dir="rtl"] .text-lg-left,
1917
1952
  [dir="rtl"] .text-xl-left {
1918
1953
  text-align: right;
1919
1954
  }
1920
- .text-lg-right,
1921
1955
  .text-xl-right {
1922
1956
  text-align: right;
1923
1957
  }
1924
- [dir="rtl"] .text-lg-right,
1925
1958
  [dir="rtl"] .text-xl-right {
1926
1959
  text-align: left;
1927
1960
  }
1928
- .text-lg-center,
1929
1961
  .text-xl-center {
1930
1962
  text-align: center;
1931
1963
  }
1932
- .text-lg-justify,
1933
1964
  .text-xl-justify {
1934
1965
  text-align: justify;
1935
1966
  }
1936
- .text-lg-nowrap,
1937
1967
  .text-xl-nowrap {
1938
1968
  white-space: nowrap;
1939
1969
  }