@transferwise/neptune-css 0.0.0-experimental-7cfec48 → 0.0.0-experimental-1ed1574

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 (59) hide show
  1. package/dist/css/accordion.css +21 -6
  2. package/dist/css/alerts.css +159 -14
  3. package/dist/css/background.css +6 -2
  4. package/dist/css/badge.css +11 -1
  5. package/dist/css/breadcrumbs.css +2 -1
  6. package/dist/css/button-groups.css +8 -2
  7. package/dist/css/buttons.css +212 -142
  8. package/dist/css/chevron.css +1 -1
  9. package/dist/css/circles.css +22 -10
  10. package/dist/css/close.css +3 -2
  11. package/dist/css/column-layout.css +4 -0
  12. package/dist/css/currency-flags.css +5 -1
  13. package/dist/css/decision.css +14 -5
  14. package/dist/css/dropdowns.css +28 -8
  15. package/dist/css/droppable.css +18 -11
  16. package/dist/css/flex.css +32 -0
  17. package/dist/css/footer.css +46 -8
  18. package/dist/css/grid.css +6 -0
  19. package/dist/css/input-groups.css +188 -142
  20. package/dist/css/link-callout.css +2 -0
  21. package/dist/css/list-group.css +39 -8
  22. package/dist/css/media.css +6 -0
  23. package/dist/css/modals.css +13 -3
  24. package/dist/css/navbar-base.css +107 -19
  25. package/dist/css/navbar.css +175 -37
  26. package/dist/css/navs.css +33 -8
  27. package/dist/css/neptune-addons.css +466 -4
  28. package/dist/css/neptune-core.css +196 -32
  29. package/dist/css/neptune.css +2204 -655
  30. package/dist/css/panels.css +3 -0
  31. package/dist/css/popovers.css +30 -6
  32. package/dist/css/process.css +8 -8
  33. package/dist/css/progress-bars.css +11 -2
  34. package/dist/css/ring.css +2 -2
  35. package/dist/css/select.css +12 -2
  36. package/dist/css/sequences.css +173 -25
  37. package/dist/css/table.css +65 -18
  38. package/dist/css/tick.css +2 -0
  39. package/dist/css/tooltip.css +7 -1
  40. package/dist/css/wells.css +25 -5
  41. package/dist/less/neptune-tokens.less +264 -153
  42. package/dist/props/neptune-tokens.css +132 -145
  43. package/package.json +2 -2
  44. package/src/less/addons/_background-utilities.less +33 -33
  45. package/src/less/alerts.less +28 -28
  46. package/src/less/background.less +3 -0
  47. package/src/less/buttons.less +19 -19
  48. package/src/less/column-layout.less +1 -1
  49. package/src/less/core/_scaffolding.less +13 -13
  50. package/src/less/core/_typography-utilities.less +18 -18
  51. package/src/less/dropdowns.less +7 -7
  52. package/src/less/footer.less +26 -26
  53. package/src/less/modals.less +1 -1
  54. package/src/less/navbar-base.less +25 -25
  55. package/src/less/navbar.less +3 -3
  56. package/src/less/navs.less +9 -9
  57. package/src/less/sequences.less +13 -13
  58. package/src/less/table.less +31 -31
  59. package/src/variables/neptune-tokens.less +8 -8
@@ -19,6 +19,7 @@
19
19
  .panel-title {
20
20
  margin-top: 0;
21
21
  margin-bottom: 0;
22
+ line-height: calc(1.2 + 8px);
22
23
  line-height: calc(var(--line-height-title) + 8px);
23
24
  }
24
25
  .panel-title > a {
@@ -67,6 +68,7 @@
67
68
  }
68
69
  @media (min-width: 768px) {
69
70
  .panel-title {
71
+ line-height: calc(1.2 * 2);
70
72
  line-height: calc(var(--line-height-title) * 2);
71
73
  }
72
74
  .panel-heading > .btn-sm {
@@ -369,6 +371,7 @@ html:not([dir="rtl"]) .panel > .table-responsive > .table-bordered > tfoot > tr
369
371
  }
370
372
  }
371
373
  .panel-group {
374
+ margin-bottom: 24px;
372
375
  margin-bottom: var(--size-24);
373
376
  }
374
377
  .panel-group .panel {
@@ -2,21 +2,21 @@
2
2
  }@media (min-width: 768px) {
3
3
  }.close {
4
4
  float: right;
5
+ color: #0097c7;
5
6
  color: var(--color-content-accent);
6
7
  -webkit-text-decoration: none;
7
8
  text-decoration: none;
8
9
  }[dir="rtl"] .close {
9
10
  float: left;
10
11
  }.np-theme-personal .close {
11
- color: #163300;
12
12
  color: var(--color-interactive-primary);
13
13
  }.close:hover {
14
+ color: #0084b3;
14
15
  color: var(--color-content-accent-hover);
15
16
  -webkit-text-decoration: none;
16
17
  text-decoration: none;
17
18
  cursor: pointer;
18
19
  }.np-theme-personal .close:hover {
19
- color: #0d1f00;
20
20
  color: var(--color-interactive-primary-hover);
21
21
  }.close:focus {
22
22
  outline: none;
@@ -24,6 +24,7 @@
24
24
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
25
25
  outline-offset: var(--ring-outline-offset);
26
26
  }.close:active {
27
+ color: #0077a5;
27
28
  color: var(--color-content-accent-active);
28
29
  }button.close {
29
30
  padding: 0;
@@ -42,11 +43,13 @@
42
43
  z-index: 1060;
43
44
  width: 276px;
44
45
  padding: 18px 24px;
46
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
45
47
  font-family: var(--font-family-regular);
46
48
  font-style: normal;
47
49
  font-weight: normal;
48
50
  letter-spacing: normal;
49
51
  line-break: auto;
52
+ line-height: 24px;
50
53
  line-height: var(--size-24);
51
54
  text-align: left;
52
55
  -webkit-text-decoration: none;
@@ -57,9 +60,11 @@
57
60
  word-break: normal;
58
61
  word-spacing: normal;
59
62
  word-wrap: normal;
63
+ font-size: 0.875rem;
60
64
  font-size: var(--font-size-14);
61
65
  line-height: 155%;
62
66
  letter-spacing: -0.006em;
67
+ font-weight: 400;
63
68
  font-weight: var(--font-weight-regular);
64
69
  background-color: #ffffff;
65
70
  background-color: var(--color-background-screen);
@@ -323,11 +328,14 @@
323
328
  }.popover-title {
324
329
  padding: 0;
325
330
  margin: 0;
326
- color: #0e0f0c;
331
+ color: #37517e;
327
332
  color: var(--color-content-primary);
333
+ line-height: 1.2;
328
334
  line-height: var(--line-height-title);
329
335
  letter-spacing: 0;
336
+ font-size: 1.125rem;
330
337
  font-size: var(--font-size-18);
338
+ font-weight: 600;
331
339
  font-weight: var(--font-weight-semi-bold);
332
340
  letter-spacing: -0.014em;
333
341
  line-height: 135%;
@@ -339,34 +347,37 @@
339
347
  }.popover-title + p,
340
348
  .popover-title + ul:not(.list-unstyled),
341
349
  .popover-title + ol:not(.list-unstyled) {
350
+ margin-top: 8px;
342
351
  margin-top: var(--size-8);
343
352
  }.popover-content {
344
353
  padding: 0;
354
+ font-size: 0.875rem;
345
355
  font-size: var(--font-size-14);
346
356
  line-height: 155%;
347
357
  letter-spacing: -0.006em;
358
+ font-weight: 400;
348
359
  font-weight: var(--font-weight-regular);
349
- color: #454745;
360
+ color: #5d7079;
350
361
  color: var(--color-content-secondary);
351
362
  }.popover-content > :last-child {
352
363
  margin-bottom: 0;
353
364
  }.popover-close {
354
365
  float: right;
366
+ color: #0097c7;
355
367
  color: var(--color-content-accent);
356
368
  -webkit-text-decoration: none;
357
369
  text-decoration: none;
358
370
  }[dir="rtl"] .popover-close {
359
371
  float: left;
360
372
  }.np-theme-personal .popover-close {
361
- color: #163300;
362
373
  color: var(--color-interactive-primary);
363
374
  }.popover-close:hover {
375
+ color: #0084b3;
364
376
  color: var(--color-content-accent-hover);
365
377
  -webkit-text-decoration: none;
366
378
  text-decoration: none;
367
379
  cursor: pointer;
368
380
  }.np-theme-personal .popover-close:hover {
369
- color: #0d1f00;
370
381
  color: var(--color-interactive-primary-hover);
371
382
  }.popover-close:focus {
372
383
  outline: none;
@@ -374,6 +385,7 @@
374
385
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
375
386
  outline-offset: var(--ring-outline-offset);
376
387
  }.popover-close:active {
388
+ color: #0077a5;
377
389
  color: var(--color-content-accent-active);
378
390
  }button.popover-close {
379
391
  padding: 0;
@@ -391,11 +403,13 @@
391
403
  font-weight: inherit !important;
392
404
  -webkit-text-decoration: none !important;
393
405
  text-decoration: none !important;
406
+ border-bottom: 1px dotted #0097c7 !important;
394
407
  border-bottom: 1px dotted var(--color-content-accent) !important;
395
408
  cursor: pointer;
396
409
  }[data-toggle="popover"]:not(.btn):hover,
397
410
  [data-toggle="popover"]:not(.btn):focus,
398
411
  [data-toggle="popover"]:not(.btn)[aria-describedby] {
412
+ color: #0084b3 !important;
399
413
  color: var(--color-content-accent-hover) !important;
400
414
  outline: 0;
401
415
  }.nav > li > a [data-toggle="popover"] {
@@ -407,6 +421,7 @@
407
421
  right: 0 !important;
408
422
  left: 0 !important;
409
423
  width: 272px;
424
+ margin: 32px auto !important;
410
425
  margin: var(--size-32) auto !important;
411
426
  }
412
427
  .popover-modal::before {
@@ -466,25 +481,34 @@
466
481
  }
467
482
  }.popover-promotion {
468
483
  text-align: center;
484
+ padding: 24px;
469
485
  padding: var(--size-24);
470
486
  }@media (max-width: 576px) {
471
487
  .popover-promotion {
472
488
  width: auto !important;
489
+ padding: 24px !important;
473
490
  padding: var(--size-24) !important;
491
+ margin: 16px !important;
474
492
  margin: var(--size-16) !important;
475
493
  }
476
494
  }@media (min-width: 566px) and (max-width: 992px) {
477
495
  .popover-promotion {
478
496
  width: 540px !important;
497
+ padding: 28px 32px !important;
479
498
  padding: 28px var(--size-32) !important;
499
+ margin: 32px auto !important;
480
500
  margin: var(--size-32) auto !important;
481
501
  }
482
502
  }.popover-promotion .popover-title {
503
+ font-size: 1rem;
483
504
  font-size: var(--font-size-16);
505
+ line-height: 1.2;
484
506
  line-height: var(--line-height-title);
485
507
  }@media (min-width: 768px) {
486
508
  .popover-promotion .popover-title {
509
+ font-size: 1.25rem;
487
510
  font-size: var(--font-size-20);
511
+ line-height: 1.2;
488
512
  line-height: var(--line-height-title);
489
513
  }
490
514
  }@media (max-width: 480px) {
@@ -24,6 +24,7 @@
24
24
  .process-circle {
25
25
  transform-origin: center center;
26
26
  transition: stroke 1s 0.2s linear;
27
+ stroke: #0097c7;
27
28
  stroke: var(--color-content-accent);
28
29
  stroke-opacity: 1;
29
30
  stroke-linecap: round;
@@ -33,13 +34,12 @@
33
34
  animation-iteration-count: infinite;
34
35
  }
35
36
  .np-theme-personal .process-circle {
36
- stroke: #0e0f0c;
37
+ stroke: #37517e;
37
38
  stroke: var(--color-content-primary);
38
39
  }
39
40
  .np-theme-personal--forest-green .process-circle,
40
41
  .np-theme-personal--bright-green .process-circle,
41
42
  .np-theme-personal--dark .process-circle {
42
- stroke: #163300;
43
43
  stroke: var(--color-interactive-primary);
44
44
  }
45
45
  .process-inverse .process-circle {
@@ -63,51 +63,51 @@
63
63
  height: 0;
64
64
  }
65
65
  .process-success .process-icon-horizontal {
66
+ background-color: #008026;
66
67
  background-color: var(--color-content-positive);
67
68
  bottom: 0;
68
69
  left: 0;
69
70
  }
70
71
  .np-theme-personal .process-success .process-icon-horizontal {
71
- background-color: #2f5711;
72
72
  background-color: var(--color-sentiment-positive);
73
73
  }
74
74
  .process-success .process-icon-vertical {
75
+ background-color: #008026;
75
76
  background-color: var(--color-content-positive);
76
77
  top: 100%;
77
78
  right: 0;
78
79
  }
79
80
  .np-theme-personal .process-success .process-icon-vertical {
80
- background-color: #2f5711;
81
81
  background-color: var(--color-sentiment-positive);
82
82
  }
83
83
  .process-success .process-circle {
84
+ stroke: #008026;
84
85
  stroke: var(--color-content-positive);
85
86
  }
86
87
  .np-theme-personal .process-success .process-circle {
87
- stroke: #2f5711;
88
88
  stroke: var(--color-sentiment-positive);
89
89
  }
90
90
  .process-danger .process-icon-horizontal {
91
+ background-color: #cf2929;
91
92
  background-color: var(--color-content-negative);
92
93
  left: 0;
93
94
  }
94
95
  .np-theme-personal .process-danger .process-icon-horizontal {
95
- background-color: #a8200d;
96
96
  background-color: var(--color-sentiment-negative);
97
97
  }
98
98
  .process-danger .process-icon-vertical {
99
+ background-color: #cf2929;
99
100
  background-color: var(--color-content-negative);
100
101
  top: 0;
101
102
  }
102
103
  .np-theme-personal .process-danger .process-icon-vertical {
103
- background-color: #a8200d;
104
104
  background-color: var(--color-sentiment-negative);
105
105
  }
106
106
  .process-danger .process-circle {
107
+ stroke: #cf2929;
107
108
  stroke: var(--color-content-negative);
108
109
  }
109
110
  .np-theme-personal .process-danger .process-circle {
110
- stroke: #a8200d;
111
111
  stroke: var(--color-sentiment-negative);
112
112
  }
113
113
  .process-success .process-circle,
@@ -1,8 +1,10 @@
1
1
  .progress {
2
2
  height: 2px;
3
+ margin-top: calc((24px - 2px) / 2);
3
4
  margin-top: calc((var(--size-24) - 2px) / 2);
5
+ margin-bottom: calc((24px - 2px) / 2);
4
6
  margin-bottom: calc((var(--size-24) - 2px) / 2);
5
- background-color: rgba(22,51,0,0.07843);
7
+ background-color: rgba(134,167,189,0.10196);
6
8
  background-color: var(--color-background-neutral);
7
9
  border-radius: calc(2px / 2);
8
10
  }
@@ -10,10 +12,13 @@
10
12
  float: left;
11
13
  width: 0%;
12
14
  height: 100%;
15
+ font-size: 1rem;
13
16
  font-size: var(--font-size-16);
17
+ font-weight: 700;
14
18
  font-weight: var(--font-weight-bold);
15
19
  color: #fff;
16
20
  text-align: right;
21
+ background-color: #0097c7;
17
22
  background-color: var(--color-content-accent);
18
23
  transition: width 0.6s ease;
19
24
  }
@@ -50,18 +55,22 @@
50
55
  border-bottom-right-radius: 2px / 2;
51
56
  }
52
57
  .progress-bar-primary {
53
- background-color: #0e0f0c;
58
+ background-color: #37517e;
54
59
  background-color: var(--color-content-primary);
55
60
  }
56
61
  .progress-bar-success {
62
+ background-color: #008026;
57
63
  background-color: var(--color-content-positive);
58
64
  }
59
65
  .progress-bar-info {
66
+ background-color: #0097c7;
60
67
  background-color: var(--color-content-accent);
61
68
  }
62
69
  .progress-bar-warning {
70
+ background-color: #9a6500;
63
71
  background-color: var(--color-content-warning);
64
72
  }
65
73
  .progress-bar-danger {
74
+ background-color: #cf2929;
66
75
  background-color: var(--color-content-negative);
67
76
  }
package/dist/css/ring.css CHANGED
@@ -11,7 +11,7 @@
11
11
  outline: none;
12
12
  }
13
13
  .focus-ring:focus-visible {
14
- outline: #0e0f0c solid 2px;
14
+ outline: #37517e solid 2px;
15
15
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
16
16
  outline-offset: 2px;
17
17
  outline-offset: var(--ring-outline-offset);
@@ -38,7 +38,7 @@ dialog:focus-visible,
38
38
  input:focus-visible,
39
39
  select:focus-visible,
40
40
  textarea:focus-visible {
41
- outline: #0e0f0c solid 2px;
41
+ outline: #37517e solid 2px;
42
42
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
43
43
  outline-offset: 2px;
44
44
  outline-offset: var(--ring-outline-offset);
@@ -1,10 +1,12 @@
1
1
  .tw-select .tw-icon {
2
2
  display: inline-block;
3
+ margin-right: 8px;
3
4
  margin-right: var(--size-8);
4
5
  margin-top: -2px;
5
6
  vertical-align: middle;
6
7
  }
7
8
  [dir="rtl"] .tw-select .tw-icon {
9
+ margin-left: 8px;
8
10
  margin-left: var(--size-8);
9
11
  margin-right: 0;
10
12
  margin-right: initial;
@@ -16,17 +18,19 @@
16
18
  border-bottom-style: solid;
17
19
  border-bottom-width: 1px;
18
20
  /* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
19
- border-bottom-color: rgba(14,15,12,0.12157);
21
+ border-bottom-color: rgba(0,0,0,0.10196);
20
22
  border-bottom-color: var(--color-border-neutral);
21
23
  }
22
24
  .tw-select .tw-dropdown-item--focused {
23
- background-color: rgba(22,51,0,0.07843);
25
+ background-color: rgba(134,167,189,0.10196);
24
26
  background-color: var(--color-background-neutral);
25
27
  }
26
28
  .tw-select .tw-dropdown-item .currency-flag {
29
+ margin-right: 8px;
27
30
  margin-right: var(--size-8);
28
31
  }
29
32
  [dir="rtl"] .tw-select .tw-dropdown-item .currency-flag {
33
+ margin-left: 8px;
30
34
  margin-left: var(--size-8);
31
35
  margin-right: 0;
32
36
  margin-right: initial;
@@ -35,25 +39,31 @@
35
39
  white-space: normal;
36
40
  }
37
41
  .tw-select .dropdown-toggle.btn-input.btn-sm {
42
+ padding-right: 32px;
38
43
  padding-right: var(--size-32);
39
44
  }
40
45
  [dir="rtl"] .tw-select .dropdown-toggle.btn-input.btn-sm {
46
+ padding-left: 32px;
41
47
  padding-left: var(--size-32);
42
48
  padding-right: 0;
43
49
  padding-right: initial;
44
50
  }
45
51
  .tw-select .dropdown-toggle.btn-input.btn-md {
52
+ padding-right: 40px;
46
53
  padding-right: var(--size-40);
47
54
  }
48
55
  [dir="rtl"] .tw-select .dropdown-toggle.btn-input.btn-md {
56
+ padding-left: 40px;
49
57
  padding-left: var(--size-40);
50
58
  padding-right: 0;
51
59
  padding-right: initial;
52
60
  }
53
61
  .tw-select .dropdown-toggle.btn-input.btn-lg {
62
+ padding-right: 48px;
54
63
  padding-right: var(--size-48);
55
64
  }
56
65
  [dir="rtl"] .tw-select .dropdown-toggle.btn-input.btn-lg {
66
+ padding-left: 48px;
57
67
  padding-left: var(--size-48);
58
68
  padding-right: 0;
59
69
  padding-right: initial;