@transferwise/neptune-css 0.0.0-experimental-9e05ecb → 0.0.0-experimental-012dcef

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 (76) hide show
  1. package/dist/css/accordion.css +44 -22
  2. package/dist/css/badge.css +2 -2
  3. package/dist/css/button-groups.css +6 -29
  4. package/dist/css/buttons.css +11 -35
  5. package/dist/css/decision.css +44 -22
  6. package/dist/css/dropdowns.css +54 -39
  7. package/dist/css/droppable.css +6 -28
  8. package/dist/css/footer.css +10 -41
  9. package/dist/css/input-groups.css +167 -203
  10. package/dist/css/list-group.css +42 -1
  11. package/dist/css/modals.css +1 -1
  12. package/dist/css/navbar.css +81 -66
  13. package/dist/css/navs.css +8 -8
  14. package/dist/css/neptune-addons.css +0 -15
  15. package/dist/css/neptune-core.css +524 -5935
  16. package/dist/css/neptune.css +2092 -8533
  17. package/dist/css/panels.css +2 -2
  18. package/dist/css/popovers.css +56 -39
  19. package/dist/css/progress-bars.css +2 -2
  20. package/dist/css/sequences.css +9 -14
  21. package/dist/css/table.css +7 -7
  22. package/dist/css/tooltip.css +6 -28
  23. package/dist/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  24. package/dist/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  25. package/dist/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  26. package/dist/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  27. package/dist/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  28. package/dist/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  29. package/dist/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  30. package/dist/less/legacy-variables.less +3 -3
  31. package/dist/less/neptune-tokens.less +48 -0
  32. package/dist/props/neptune-tokens.css +3 -804
  33. package/package.json +1 -1
  34. package/src/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  35. package/src/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  36. package/src/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  37. package/src/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  38. package/src/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  39. package/src/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  40. package/src/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  41. package/src/less/addons/_background-utilities.less +0 -5
  42. package/src/less/badge.less +2 -2
  43. package/src/less/button-groups.less +2 -3
  44. package/src/less/buttons.less +7 -7
  45. package/src/less/core/_fonts.less +75 -7
  46. package/src/less/core/_scaffolding.less +4 -4
  47. package/src/less/core/_typography-utilities.less +3 -3
  48. package/src/less/core/_typography.less +235 -81
  49. package/src/less/decision.less +2 -2
  50. package/src/less/dropdowns.less +7 -8
  51. package/src/less/droppable.less +4 -4
  52. package/src/less/footer.less +3 -4
  53. package/src/less/forms/bootstrap-forms.less +72 -85
  54. package/src/less/forms/checkbox-radio.less +3 -3
  55. package/src/less/input-groups.less +10 -20
  56. package/src/less/list-group.less +5 -8
  57. package/src/less/mixins/_reset-text.less +1 -1
  58. package/src/less/mixins/_text-emphasis.less +1 -7
  59. package/src/less/modals.less +1 -1
  60. package/src/less/navbar.less +19 -19
  61. package/src/less/navs.less +8 -8
  62. package/src/less/neptune.bundle.less +0 -4
  63. package/src/less/panels.less +2 -2
  64. package/src/less/popovers.less +7 -7
  65. package/src/less/progress-bars.less +2 -2
  66. package/src/less/sequences.less +10 -15
  67. package/src/less/table.less +7 -7
  68. package/src/less/tooltip.less +1 -1
  69. package/src/variables/legacy-variables.less +3 -3
  70. package/src/less/core/fonts/_fonts-ar.less +0 -140
  71. package/src/less/core/fonts/_fonts-en.less +0 -99
  72. package/src/less/core/fonts/_fonts-he.less +0 -8
  73. package/src/less/core/fonts/_fonts-ja.less +0 -4247
  74. package/src/less/core/fonts/_fonts-ko.less +0 -1079
  75. package/src/less/core/fonts/_fonts-th.less +0 -8
  76. package/src/less/core/fonts/_fonts-zh.less +0 -872
@@ -19,7 +19,7 @@
19
19
  .panel-title {
20
20
  margin-block-start: 0;
21
21
  margin-block-end: 0;
22
- line-height: calc(var(--wds-line-height-title-section) + 8px);
22
+ line-height: calc(var(--line-height-title) + 8px);
23
23
  }
24
24
  .panel-title > a {
25
25
  -webkit-text-decoration: none;
@@ -69,7 +69,7 @@
69
69
  }
70
70
  @media (min-width: 840px) {
71
71
  .panel-title {
72
- line-height: calc(var(--wds-line-height-title-section) * 2);
72
+ line-height: calc(var(--line-height-title) * 2);
73
73
  }
74
74
  .panel-heading > .btn-sm {
75
75
  margin-block-start: 8px;
@@ -1,36 +1,4 @@
1
- .popover,
2
- .popover-content {
3
- word-wrap: break-word;
4
- }
5
- @supports (hyphenate-limit-chars: 1) {
6
- .popover,
7
- .popover-content {
8
- hyphens: auto;hyphenate-limit-chars: 7 3;
9
- }
10
- @media (min-width: 840px) {
11
- .popover,
12
- .popover-content {
13
- hyphenate-limit-chars: 8 3;
14
- }
15
- }
16
- @media (min-width: 1160px) {
17
- .popover,
18
- .popover-content {
19
- hyphenate-limit-chars: 10 4 3;
20
- }
21
- }
22
- }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
23
- .popover,
24
- .popover-content {
25
- hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
26
- }
27
- @media (min-width: 1160px) {
28
- .popover,
29
- .popover-content {
30
- -webkit-hyphenate-limit-before: 4;
31
- }
32
- }
33
- }.close {
1
+ .close {
34
2
  float: inline-end;
35
3
  color: var(--color-content-accent);
36
4
  -webkit-text-decoration: none;
@@ -78,7 +46,7 @@ button.close {
78
46
  inline-size: 276px;
79
47
  padding-block: 18px;
80
48
  padding-inline: 24px;
81
- font-family: var(--wds-font-family-regular);
49
+ font-family: var(--font-family-regular);
82
50
  font-style: normal;
83
51
  font-weight: normal;
84
52
  letter-spacing: normal;
@@ -93,6 +61,10 @@ button.close {
93
61
  word-break: normal;
94
62
  word-spacing: normal;
95
63
  word-wrap: normal;
64
+ font-size: var(--font-size-14);
65
+ line-height: 155%;
66
+ letter-spacing: -0.006em;
67
+ font-weight: var(--font-weight-regular);
96
68
  word-wrap: break-word;
97
69
  background-color: var(--color-background-screen);
98
70
  background-clip: padding-box;
@@ -278,8 +250,16 @@ button.close {
278
250
  margin-inline: 0;
279
251
  }
280
252
  .popover-title {
281
- margin: 0;
282
253
  padding: 0;
254
+ margin: 0;
255
+ color: var(--color-content-primary);
256
+ line-height: var(--line-height-title);
257
+ letter-spacing: 0;
258
+ word-wrap: break-word;
259
+ font-size: var(--font-size-18);
260
+ font-weight: var(--font-weight-semi-bold);
261
+ letter-spacing: -0.014em;
262
+ line-height: 135%;
283
263
  background-color: var(--color-background-screen);
284
264
  border-block-end: 0;
285
265
  border-start-start-radius: 2px;
@@ -288,8 +268,45 @@ button.close {
288
268
  border-end-start-radius: 0;
289
269
  color: var(--color-content-primary) !important;
290
270
  }
271
+ @supports (hyphenate-limit-chars: 1) {
272
+ .popover-title {
273
+ hyphens: auto;
274
+ hyphenate-limit-chars: 7 3;
275
+ }
276
+ @media (min-width: 840px) {
277
+ .popover-title {
278
+ hyphenate-limit-chars: 8 3;
279
+ }
280
+ }
281
+ @media (min-width: 1160px) {
282
+ .popover-title {
283
+ hyphenate-limit-chars: 10 4 3;
284
+ }
285
+ }
286
+ }
287
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
288
+ .popover-title {
289
+ hyphens: auto;
290
+ -webkit-hyphenate-limit-before: 3;
291
+ -webkit-hyphenate-limit-after: 3;
292
+ }
293
+ @media (min-width: 1160px) {
294
+ .popover-title {
295
+ -webkit-hyphenate-limit-before: 4;
296
+ }
297
+ }
298
+ }
299
+ .popover-title + p,
300
+ .popover-title + ul:not(.list-unstyled),
301
+ .popover-title + ol:not(.list-unstyled) {
302
+ margin-block-start: var(--size-8);
303
+ }
291
304
  .popover-content {
292
305
  padding: 0;
306
+ font-size: var(--font-size-14);
307
+ line-height: 155%;
308
+ letter-spacing: -0.006em;
309
+ font-weight: var(--font-weight-regular);
293
310
  word-wrap: break-word;
294
311
  color: var(--color-content-secondary);
295
312
  }
@@ -458,13 +475,13 @@ button.popover-close {
458
475
  }
459
476
  }
460
477
  .popover-promotion .popover-title {
461
- font-size: var(--wds-font-size-body-large);
462
- line-height: var(--wds-font-size-body-large);
478
+ font-size: var(--font-size-16);
479
+ line-height: var(--line-height-title);
463
480
  }
464
481
  @media (min-width: 840px) {
465
482
  .popover-promotion .popover-title {
466
- font-size: var(--wds-font-size-title-body);
467
- line-height: var(--wds-font-size-title-body);
483
+ font-size: var(--font-size-20);
484
+ line-height: var(--line-height-title);
468
485
  }
469
486
  }
470
487
  @media (max-width: 320px) {
@@ -15,8 +15,8 @@
15
15
  inset-block-start: calc(-1 * var(--progress-bar-border-width));
16
16
  inset-inline-start: calc(-1 * var(--progress-bar-start-shift));
17
17
  block-size: calc(var(--progress-bar-height) + var(--progress-bar-border-width) * 2);
18
- font-size: var(--wds-font-size-body-large);
19
- font-weight: var(--wds-font-weight-body-bold);
18
+ font-size: var(--font-size-16);
19
+ font-weight: var(--font-weight-bold);
20
20
  color: #fff;
21
21
  text-align: end;
22
22
  background-color: var(--color-content-accent);
@@ -4,7 +4,7 @@
4
4
  margin-inline-start: 25px;
5
5
  margin-block-start: 0;
6
6
  margin-block-end: 0;
7
- font-size: var(--wds-font-size-body);
7
+ font-size: var(--font-size-14);
8
8
  border-color: var(--color-border-neutral);
9
9
  }
10
10
  .sequence > li {
@@ -81,7 +81,7 @@
81
81
  @media (min-width: 840px) {
82
82
  .sequence {
83
83
  padding-inline-end: 24px;
84
- font-size: var(--wds-font-size-body-large);
84
+ font-size: var(--font-size-16);
85
85
  }
86
86
  }
87
87
  .sequence > li {
@@ -94,7 +94,7 @@
94
94
  display: block;
95
95
  -webkit-text-decoration: none;
96
96
  text-decoration: none;
97
- font-weight: var(--wds-font-weight-body-regular);
97
+ font-weight: var(--font-weight-regular);
98
98
  color: var(--color-content-accent);
99
99
  outline-offset: -1px;
100
100
  }
@@ -123,10 +123,6 @@
123
123
  .sequence > li .h2,
124
124
  .sequence > li .h3,
125
125
  .sequence > li .h4,
126
- .sequence > li .wds-text-title-screen,
127
- .sequence > li .wds-text-title-section,
128
- .sequence > li .wds-text-title-subsection,
129
- .sequence > li .wds-text-title-body,
130
126
  .sequence > li .btn-toolbar {
131
127
  margin-block-end: 16px;
132
128
  }
@@ -163,7 +159,7 @@
163
159
  -webkit-text-decoration: none;
164
160
  text-decoration: none;
165
161
  color: var(--color-content-primary);
166
- font-weight: var(--wds-font-weight-title-body);
162
+ font-weight: var(--font-weight-semi-bold);
167
163
  }
168
164
  .sequence > .active > a:hover,
169
165
  .sequence > .active > a:focus {
@@ -188,7 +184,7 @@
188
184
  .sequence a {
189
185
  -webkit-text-decoration: none;
190
186
  text-decoration: none;
191
- font-weight: var(--wds-font-weight-body-regular);
187
+ font-weight: var(--font-weight-regular);
192
188
  }
193
189
  .sequence-top > li:first-child::after {
194
190
  inset-block-start: 0;
@@ -207,8 +203,7 @@
207
203
  }
208
204
  .sequence-inverse > .active .small,
209
205
  .sequence-inverse > .active .body-2,
210
- .sequence-inverse > .active .np-text-body-default,
211
- .sequence-inverse > .active .wds-text-body-default {
206
+ .sequence-inverse > .active .np-text-body-default {
212
207
  color: var(--color-content-secondary);
213
208
  }
214
209
  .sequence-inverse > .active::after,
@@ -356,7 +351,7 @@
356
351
  font-size: var(--font-size-12);
357
352
  }
358
353
  .sequence-icon .icon {
359
- font-size: var(--wds-font-size-body-large);
354
+ font-size: var(--font-size-16);
360
355
  line-height: 23px;
361
356
  }
362
357
  .sequence-inverse .sequence-icon {
@@ -447,14 +442,14 @@
447
442
  block-size: 32px;
448
443
  line-height: 30px;
449
444
  margin-block-start: -6px;
450
- font-size: var(--wds-font-size-body);
445
+ font-size: var(--font-size-14);
451
446
  }
452
447
  .sequence-icon-lg {
453
448
  inline-size: 40px;
454
449
  block-size: 40px;
455
450
  line-height: 38px;
456
451
  margin-block-start: -6px;
457
- font-size: var(--wds-font-size-body-large);
452
+ font-size: var(--font-size-16);
458
453
  }
459
454
  .sequence-icon-lg .icon {
460
455
  font-size: 22px;
@@ -30,7 +30,7 @@ th {
30
30
  .table > tfoot > tr > td {
31
31
  padding-block: var(--size-24);
32
32
  padding-inline: var(--size-16);
33
- line-height: var(--wds-line-height-body-large);
33
+ line-height: var(--line-height-body);
34
34
  vertical-align: top;
35
35
  border-block-start: 1px solid var(--color-border-neutral);
36
36
  border-block-end: 0;
@@ -41,7 +41,7 @@ th {
41
41
  .table > .tfoot > ol > li {
42
42
  padding-block: var(--size-24);
43
43
  padding-inline: var(--size-16);
44
- line-height: var(--wds-line-height-body-large);
44
+ line-height: var(--line-height-body);
45
45
  vertical-align: top;
46
46
  border-block-start: 1px solid var(--color-border-neutral);
47
47
  border-block-end: 0;
@@ -81,12 +81,12 @@ th {
81
81
  .table > tfoot,
82
82
  .table > .thead,
83
83
  .table > .tfoot {
84
- font-size: var(--wds-font-size-body);
84
+ font-size: var(--font-size-14);
85
85
  color: var(--color-content-primary);
86
86
  }
87
87
  .table > tbody,
88
88
  .table > .tbody {
89
- font-size: var(--wds-font-size-body);
89
+ font-size: var(--font-size-14);
90
90
  }
91
91
  .table > tbody > tr > th,
92
92
  .table > .tbody > dl > .th {
@@ -328,7 +328,7 @@ table col[class*="col-"] {
328
328
  }
329
329
  .table > .thead > ol > li {
330
330
  display: table-cell;
331
- font-weight: var(--wds-font-weight-title-body);
331
+ font-weight: var(--font-weight-bold);
332
332
  color: var(--color-content-primary);
333
333
  }
334
334
  .table > .tbody {
@@ -342,7 +342,7 @@ table col[class*="col-"] {
342
342
  }
343
343
  .table > .tbody > dl > dd {
344
344
  display: table-cell;
345
- font-size: var(--wds-font-size-body);
345
+ font-size: var(--font-size-14);
346
346
  color: var(--color-content-secondary);
347
347
  }
348
348
  .table > .tfoot {
@@ -358,7 +358,7 @@ table col[class*="col-"] {
358
358
  border-radius: 3px;
359
359
  margin-block-end: var(--size-24);
360
360
  padding-block: var(--size-24) 0;
361
- padding-inline: var(--wds-line-height-body-large);
361
+ padding-inline: var(--line-height-body);
362
362
  }
363
363
  .table > .tbody > dl > dd {
364
364
  padding: 0;
@@ -1,34 +1,8 @@
1
- .tooltip-inner {
2
- word-wrap: break-word;
3
- }
4
- @supports (hyphenate-limit-chars: 1) {
5
- .tooltip-inner {
6
- hyphens: auto;hyphenate-limit-chars: 7 3;
7
- }
8
- @media (min-width: 840px) {
9
- .tooltip-inner {
10
- hyphenate-limit-chars: 8 3;
11
- }
12
- }
13
- @media (min-width: 1160px) {
14
- .tooltip-inner {
15
- hyphenate-limit-chars: 10 4 3;
16
- }
17
- }
18
- }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
19
- .tooltip-inner {
20
- hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
21
- }
22
- @media (min-width: 1160px) {
23
- .tooltip-inner {
24
- -webkit-hyphenate-limit-before: 4;
25
- }
26
- }
27
- }.tooltip {
1
+ .tooltip {
28
2
  position: absolute;
29
3
  z-index: 1070;
30
4
  display: block;
31
- font-family: var(--wds-font-family-regular);
5
+ font-family: var(--font-family-regular);
32
6
  font-style: normal;
33
7
  font-weight: normal;
34
8
  letter-spacing: normal;
@@ -69,6 +43,10 @@
69
43
  padding-inline: 5px;
70
44
  }
71
45
  .tooltip-inner {
46
+ font-size: var(--font-size-14);
47
+ line-height: 155%;
48
+ letter-spacing: -0.006em;
49
+ font-weight: var(--font-weight-regular);
72
50
  word-wrap: break-word;
73
51
  max-inline-size: 200px;
74
52
  min-inline-size: 120px;
@@ -157,7 +157,7 @@
157
157
  //
158
158
  //## Font, line-height, and color for body text, headings, and more.
159
159
 
160
- @font-family-sans-serif: var(--wds-font-family-regular);
160
+ @font-family-sans-serif: var(--font-family-regular);
161
161
  @font-family-serif: Georgia, "Times New Roman", Times, serif;
162
162
  //** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
163
163
  @font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
@@ -196,7 +196,7 @@
196
196
  @line-height-computed: 24px; // ~24px
197
197
 
198
198
  //** By default, this inherits from the `<body>`.
199
- @headings-font-family: var(--wds-font-family-regular);
199
+ @headings-font-family: var(--font-family-regular);
200
200
  @headings-font-weight: @font-weight-semi-bold;
201
201
  @headings-line-height: 1.2; //1.1;
202
202
  @headings-color: @brand-navy-minus-10;
@@ -221,7 +221,7 @@
221
221
  @display3-line-height: 88px;
222
222
  @display4-line-height: 72px;
223
223
 
224
- @buttons-font-family: var(--wds-font-family-regular);
224
+ @buttons-font-family: var(--font-family-regular);
225
225
 
226
226
  //** Global textual link color.
227
227
  @link-color: @brand-light-blue;
@@ -171,6 +171,54 @@
171
171
  @space-medium: 32px;
172
172
  @space-large: 40px;
173
173
  @space-x-large: 56px;
174
+ @font-size-12: 0.75rem;
175
+ @font-size-14: 0.875rem;
176
+ @font-size-16: 1rem;
177
+ @font-size-18: 1.125rem;
178
+ @font-size-20: 1.25rem;
179
+ @font-size-22: 1.375rem;
180
+ @font-size-24: 1.5rem;
181
+ @font-size-26: 1.625rem;
182
+ @font-size-28: 1.75rem;
183
+ @font-size-30: 1.875rem;
184
+ @font-size-32: 2rem;
185
+ @letter-spacing-xxs: 0.005em;
186
+ @letter-spacing-xs: 0.01em;
187
+ @letter-spacing-sm: 0.0125em;
188
+ @letter-spacing-md: 0.015em;
189
+ @letter-spacing-lg: 0.02em;
190
+ @letter-spacing-xl: 0.025em;
191
+ @letter-spacing-negative-xxs: -0.005em;
192
+ @letter-spacing-negative-xs: -0.01em;
193
+ @letter-spacing-negative-sm: -0.0125em;
194
+ @letter-spacing-negative-md: -0.015em;
195
+ @letter-spacing-negative-lg: -0.02em;
196
+ @letter-spacing-negative-xl: -0.025em;
197
+ @letter-spacing-negative-xxl: -0.03em;
198
+ @letter-spacing-negative-xxxl: -0.04em;
199
+ @letter-spacing-negative-xxxxl: -0.05em;
200
+ @line-height-18: 1.125rem;
201
+ @line-height-20: 1.25rem;
202
+ @line-height-22: 1.375rem;
203
+ @line-height-24: 1.5rem;
204
+ @line-height-28: 1.75rem;
205
+ @line-height-30: 1.875rem;
206
+ @line-height-32: 2rem;
207
+ @line-height-34: 2.125rem;
208
+ @line-height-36: 2.25rem;
209
+ @line-height-42: 2.625rem;
210
+ @line-height-48: 3rem;
211
+ @line-height-title: 1.2;
212
+ @line-height-body: 1.5;
213
+ @line-height-control: 1.2;
214
+ @font-weight-light: 300;
215
+ @font-weight-regular: 400;
216
+ @font-weight-medium: 500;
217
+ @font-weight-semi-bold: 600;
218
+ @font-weight-bold: 700;
219
+ @font-weight-black: 900;
220
+ @font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
221
+ @font-family-display: 'Wise Sans', 'Inter', sans-serif;
174
222
 
175
223
  // Do not edit directly, this file was auto-generated.
176
224