@transferwise/neptune-css 0.0.0-experimental-cb358e4 → 0.0.0-experimental-a21d52d

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 (88) hide show
  1. package/dist/css/accordion.css +11 -53
  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 +11 -53
  6. package/dist/css/dropdowns.css +18 -65
  7. package/dist/css/droppable.css +6 -28
  8. package/dist/css/footer.css +10 -41
  9. package/dist/css/input-groups.css +117 -249
  10. package/dist/css/list-group.css +8 -28
  11. package/dist/css/modals.css +1 -1
  12. package/dist/css/navbar.css +45 -92
  13. package/dist/css/navs.css +8 -8
  14. package/dist/css/neptune-addons.css +0 -15
  15. package/dist/css/neptune-core.css +536 -6243
  16. package/dist/css/neptune.css +1960 -8984
  17. package/dist/css/panels.css +2 -2
  18. package/dist/css/popovers.css +20 -64
  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/fonts/rubik/rubik-body-cyrillic-330-normal.woff2 +0 -0
  31. package/dist/fonts/rubik/rubik-body-cyrillic-600-normal.woff2 +0 -0
  32. package/dist/fonts/rubik/rubik-body-cyrillic-ext-330-normal.woff2 +0 -0
  33. package/dist/fonts/rubik/rubik-body-cyrillic-ext-600-normal.woff2 +0 -0
  34. package/dist/fonts/rubik/rubik-cyrillic-900-normal.woff2 +0 -0
  35. package/dist/fonts/rubik/rubik-cyrillic-ext-900-normal.woff2 +0 -0
  36. package/dist/less/legacy-variables.less +3 -3
  37. package/dist/less/neptune-tokens.less +48 -0
  38. package/dist/props/neptune-tokens.css +3 -805
  39. package/package.json +2 -2
  40. package/src/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  41. package/src/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  42. package/src/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  43. package/src/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  44. package/src/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  45. package/src/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  46. package/src/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  47. package/src/fonts/rubik/rubik-body-cyrillic-330-normal.woff2 +0 -0
  48. package/src/fonts/rubik/rubik-body-cyrillic-600-normal.woff2 +0 -0
  49. package/src/fonts/rubik/rubik-body-cyrillic-ext-330-normal.woff2 +0 -0
  50. package/src/fonts/rubik/rubik-body-cyrillic-ext-600-normal.woff2 +0 -0
  51. package/src/fonts/rubik/rubik-cyrillic-900-normal.woff2 +0 -0
  52. package/src/fonts/rubik/rubik-cyrillic-ext-900-normal.woff2 +0 -0
  53. package/src/less/addons/_background-utilities.less +0 -5
  54. package/src/less/badge.less +2 -2
  55. package/src/less/button-groups.less +2 -3
  56. package/src/less/buttons.less +7 -7
  57. package/src/less/core/_fonts.less +75 -7
  58. package/src/less/core/_scaffolding.less +4 -4
  59. package/src/less/core/_typography-utilities.less +3 -3
  60. package/src/less/core/_typography.less +237 -91
  61. package/src/less/decision.less +2 -2
  62. package/src/less/dropdowns.less +7 -8
  63. package/src/less/droppable.less +4 -4
  64. package/src/less/footer.less +3 -4
  65. package/src/less/forms/bootstrap-forms.less +72 -85
  66. package/src/less/forms/checkbox-radio.less +3 -3
  67. package/src/less/input-groups.less +9 -23
  68. package/src/less/list-group.less +5 -8
  69. package/src/less/mixins/_reset-text.less +1 -1
  70. package/src/less/mixins/_text-emphasis.less +1 -7
  71. package/src/less/modals.less +1 -1
  72. package/src/less/navbar.less +19 -19
  73. package/src/less/navs.less +8 -8
  74. package/src/less/neptune.bundle.less +0 -4
  75. package/src/less/panels.less +2 -2
  76. package/src/less/popovers.less +7 -7
  77. package/src/less/progress-bars.less +2 -2
  78. package/src/less/sequences.less +10 -15
  79. package/src/less/table.less +7 -7
  80. package/src/less/tooltip.less +1 -1
  81. package/src/variables/legacy-variables.less +3 -3
  82. package/src/less/core/fonts/_fonts-ar.less +0 -86
  83. package/src/less/core/fonts/_fonts-base.less +0 -99
  84. package/src/less/core/fonts/_fonts-he.less +0 -8
  85. package/src/less/core/fonts/_fonts-ja.less +0 -4247
  86. package/src/less/core/fonts/_fonts-ko.less +0 -1079
  87. package/src/less/core/fonts/_fonts-th.less +0 -8
  88. 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,62 +1,4 @@
1
- .popover-title {
2
- margin: 0;color: var(--color-content-primary);word-wrap: break-word;
3
- }
4
- @supports (hyphenate-limit-chars: 1) {
5
- .popover-title {
6
- hyphens: auto;hyphenate-limit-chars: 7 3;
7
- }
8
- @media (min-width: 840px) {
9
- .popover-title {
10
- hyphenate-limit-chars: 8 3;
11
- }
12
- }
13
- @media (min-width: 1160px) {
14
- .popover-title {
15
- hyphenate-limit-chars: 10 4 3;
16
- }
17
- }
18
- }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
19
- .popover-title {
20
- hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
21
- }
22
- @media (min-width: 1160px) {
23
- .popover-title {
24
- -webkit-hyphenate-limit-before: 4;
25
- }
26
- }
27
- }.popover,
28
- .popover-content {
29
- word-wrap: break-word;
30
- }
31
- @supports (hyphenate-limit-chars: 1) {
32
- .popover,
33
- .popover-content {
34
- hyphens: auto;hyphenate-limit-chars: 7 3;
35
- }
36
- @media (min-width: 840px) {
37
- .popover,
38
- .popover-content {
39
- hyphenate-limit-chars: 8 3;
40
- }
41
- }
42
- @media (min-width: 1160px) {
43
- .popover,
44
- .popover-content {
45
- hyphenate-limit-chars: 10 4 3;
46
- }
47
- }
48
- }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
49
- .popover,
50
- .popover-content {
51
- hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
52
- }
53
- @media (min-width: 1160px) {
54
- .popover,
55
- .popover-content {
56
- -webkit-hyphenate-limit-before: 4;
57
- }
58
- }
59
- }.close {
1
+ .close {
60
2
  float: inline-end;
61
3
  color: var(--color-content-accent);
62
4
  -webkit-text-decoration: none;
@@ -104,7 +46,7 @@ button.close {
104
46
  inline-size: 276px;
105
47
  padding-block: 18px;
106
48
  padding-inline: 24px;
107
- font-family: var(--wds-font-family-regular);
49
+ font-family: var(--font-family-regular);
108
50
  font-style: normal;
109
51
  font-weight: normal;
110
52
  letter-spacing: normal;
@@ -119,6 +61,10 @@ button.close {
119
61
  word-break: normal;
120
62
  word-spacing: normal;
121
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);
122
68
  word-wrap: break-word;
123
69
  background-color: var(--color-background-screen);
124
70
  background-clip: padding-box;
@@ -307,7 +253,13 @@ button.close {
307
253
  padding: 0;
308
254
  margin: 0;
309
255
  color: var(--color-content-primary);
256
+ line-height: var(--line-height-title);
257
+ letter-spacing: 0;
310
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%;
311
263
  background-color: var(--color-background-screen);
312
264
  border-block-end: 0;
313
265
  border-start-start-radius: 2px;
@@ -351,6 +303,10 @@ button.close {
351
303
  }
352
304
  .popover-content {
353
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);
354
310
  word-wrap: break-word;
355
311
  color: var(--color-content-secondary);
356
312
  }
@@ -519,13 +475,13 @@ button.popover-close {
519
475
  }
520
476
  }
521
477
  .popover-promotion .popover-title {
522
- font-size: var(--wds-font-size-body-large);
523
- line-height: var(--wds-font-size-body-large);
478
+ font-size: var(--font-size-16);
479
+ line-height: var(--line-height-title);
524
480
  }
525
481
  @media (min-width: 840px) {
526
482
  .popover-promotion .popover-title {
527
- font-size: var(--wds-font-size-title-body);
528
- line-height: var(--wds-font-size-title-body);
483
+ font-size: var(--font-size-20);
484
+ line-height: var(--line-height-title);
529
485
  }
530
486
  }
531
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