@transferwise/neptune-css 0.0.0-experimental-e1f83e6 → 0.0.0-experimental-b878f82

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 (40) hide show
  1. package/dist/css/badge.css +3 -3
  2. package/dist/css/buttons.css +9 -9
  3. package/dist/css/dropdowns.css +2 -2
  4. package/dist/css/input-groups.css +28 -28
  5. package/dist/css/list-group.css +1 -1
  6. package/dist/css/modals.css +2 -2
  7. package/dist/css/navbar.css +38 -38
  8. package/dist/css/navs.css +8 -8
  9. package/dist/css/neptune-core.css +31 -32
  10. package/dist/css/neptune.css +179 -184
  11. package/dist/css/panels.css +4 -4
  12. package/dist/css/popovers.css +9 -9
  13. package/dist/css/progress-bars.css +3 -3
  14. package/dist/css/sequences.css +8 -8
  15. package/dist/css/table.css +8 -8
  16. package/dist/css/tooltip.css +2 -2
  17. package/dist/less/legacy-variables.css +0 -0
  18. package/dist/less/legacy-variables.less +3 -3
  19. package/dist/less/neptune-tokens.css +0 -0
  20. package/dist/less/zindex.css +0 -0
  21. package/dist/props/neptune-tokens.css +16 -16
  22. package/package.json +1 -1
  23. package/src/less/badge.less +2 -2
  24. package/src/less/buttons.less +6 -6
  25. package/src/less/core/_scaffolding.less +3 -6
  26. package/src/less/core/_typography-utilities.less +3 -3
  27. package/src/less/core/_typography.less +13 -13
  28. package/src/less/dropdowns.less +2 -2
  29. package/src/less/forms/bootstrap-forms.less +15 -15
  30. package/src/less/forms/checkbox-radio.less +3 -3
  31. package/src/less/input-groups.less +2 -2
  32. package/src/less/list-group.less +1 -1
  33. package/src/less/modals.less +1 -1
  34. package/src/less/navbar.less +19 -19
  35. package/src/less/navs.less +8 -8
  36. package/src/less/panels.less +2 -2
  37. package/src/less/popovers.less +4 -4
  38. package/src/less/progress-bars.less +2 -2
  39. package/src/less/sequences.less +8 -8
  40. package/src/less/table.less +7 -7
@@ -43,7 +43,7 @@ label,
43
43
  .secondary {
44
44
  color: var(--color-content-secondary);
45
45
  transition: color ease-in-out 0.15s;
46
- font-size: var(--font-size-14);
46
+ font-size: var(--wds-font-size-body);
47
47
  line-height: 20px;
48
48
  }
49
49
 
@@ -103,8 +103,8 @@ input[type="checkbox"]:focus {
103
103
  output {
104
104
  display: block;
105
105
  padding-top: (@padding-base-vertical + 1);
106
- font-size: var(--font-size-16);
107
- line-height: var(--line-height-control);
106
+ font-size: var(--wds-font-size-body-large);
107
+ line-height: var(--wds-line-height-title-section);
108
108
  color: var(--color-content-primary);
109
109
  }
110
110
 
@@ -138,7 +138,7 @@ output {
138
138
  background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
139
139
  border: 1px solid var(--color-interactive-secondary);
140
140
  transition: border-color ease-in-out 0.15s;
141
- font-size: var(--font-size-16);
141
+ font-size: var(--wds-font-size-body-large);
142
142
 
143
143
  .input-size(
144
144
  var(--input-height-base),
@@ -222,7 +222,7 @@ input[type="search"] {
222
222
 
223
223
  &.input-lg,
224
224
  .input-group-lg & {
225
- line-height: calc(var(--input-height-large) - var(--line-height-body));
225
+ line-height: calc(var(--input-height-large) - var(--wds-line-height-body-large));
226
226
  }
227
227
  }
228
228
  }
@@ -349,7 +349,7 @@ input[type="password"] {
349
349
  .form-control-static {
350
350
  // Remove default margin from `p`
351
351
  margin-bottom: 0;
352
- min-height: calc(var(--line-height-control) * 2);
352
+ min-height: calc(var(--wds-line-height-title-section) * 2);
353
353
  color: var(--color-content-secondary);
354
354
  background-color: var(--color-background-neutral);
355
355
  border: 1px solid var(--color-interactive-secondary);
@@ -388,7 +388,7 @@ input[type="password"] {
388
388
  .form-control {
389
389
  height: @input-height-small;
390
390
  padding: var(--input-padding-small);
391
- font-size: var(--font-size-14);
391
+ font-size: var(--wds-font-size-body);
392
392
  line-height: @input-line-height-small;
393
393
  border-radius: @input-border-radius-small;
394
394
  }
@@ -405,9 +405,9 @@ input[type="password"] {
405
405
 
406
406
  .form-control-static {
407
407
  height: @input-height-small;
408
- min-height: calc(var(--line-height-control) + @input-font-size-small);
408
+ min-height: calc(var(--wds-line-height-title-section) + @input-font-size-small);
409
409
  padding: var(--input-padding-small);
410
- font-size: var(--font-size-14);
410
+ font-size: var(--wds-font-size-body);
411
411
  line-height: @input-line-height-small;
412
412
  }
413
413
  }
@@ -445,7 +445,7 @@ input[type="password"] {
445
445
 
446
446
  .form-control-static {
447
447
  height: var(--input-height-large);
448
- min-height: calc(var(--line-height-control) + @input-font-size-large);
448
+ min-height: calc(var(--wds-line-height-title-section) + @input-font-size-large);
449
449
  padding: var(--input-padding-large);
450
450
  font-size: @input-font-size-large;
451
451
  line-height: @input-line-height-large;
@@ -626,7 +626,7 @@ input[type="password"] {
626
626
  // Reposition feedback icon if input has visible label above
627
627
  .has-feedback label {
628
628
  & ~ .form-control-feedback {
629
- top: var(--line-height-control); // Height of the `label` and its margin
629
+ top: var(--wds-line-height-title-section); // Height of the `label` and its margin
630
630
  }
631
631
 
632
632
  &.sr-only ~ .form-control-feedback {
@@ -737,7 +737,7 @@ input[type="password"] {
737
737
  // and other content below items
738
738
  .radio,
739
739
  .checkbox {
740
- min-height: calc(var(--line-height-control) + (@padding-base-vertical + 1));
740
+ min-height: calc(var(--wds-line-height-title-section) + (@padding-base-vertical + 1));
741
741
  }
742
742
 
743
743
  // Make form groups behave like rows
@@ -774,7 +774,7 @@ input[type="password"] {
774
774
  // DEPRECATED: use `Field` component (or in some edge cases `Label` component) instead
775
775
  .control-label {
776
776
  padding-top: 17px;
777
- font-size: var(--font-size-20);
777
+ font-size: var(--wds-font-size-title-body);
778
778
  }
779
779
  }
780
780
  }
@@ -784,7 +784,7 @@ input[type="password"] {
784
784
  // DEPRECATED: use `Field` component (or in some edge cases `Label` component) instead
785
785
  .control-label {
786
786
  padding-top: 8px;
787
- font-size: var(--font-size-14);
787
+ font-size: var(--wds-font-size-body);
788
788
  }
789
789
  }
790
790
  }
@@ -820,7 +820,7 @@ input[type="password"] {
820
820
 
821
821
  .form-group {
822
822
  position: relative;
823
- font-size: var(--font-size-14);
823
+ font-size: var(--wds-font-size-body);
824
824
  }
825
825
 
826
826
  .form-group .row {
@@ -309,9 +309,9 @@
309
309
  padding-top: 1px; // `0` would look off due to checkbox misalignment
310
310
 
311
311
  :not(.np-theme-personal) & {
312
- font-weight: var(--font-weight-regular);
313
- font-size: var(--font-size-16);
314
- line-height: var(--line-height-20);
312
+ font-weight: var(--wds-font-weight-body-regular);
313
+ font-size: var(--wds-font-size-body-large);
314
+ line-height: var(--wds-line-height-title-subsection);
315
315
  // Account for our funky font baseline
316
316
  padding-top: 3px;
317
317
  }
@@ -106,8 +106,8 @@
106
106
  // -------------------------
107
107
  .input-group-addon {
108
108
  padding: var(--input-group-addon-padding);
109
- font-size: var(--font-size-16);
110
- line-height: var(--line-height-body);
109
+ font-size: var(--wds-font-size-body-large);
110
+ line-height: var(--wds-line-height-body-large);
111
111
  color: var(--color-content-secondary);
112
112
  text-align: center;
113
113
  background-color: var(--color-background-screen);
@@ -35,7 +35,7 @@
35
35
  .border(left, 2px, solid, transparent);
36
36
 
37
37
  margin-top: 1px;
38
- line-height: var(--line-height-body);
38
+ line-height: var(--wds-line-height-body-large);
39
39
  transition: all ease @panel-focus-transtion;
40
40
 
41
41
  .panel-group & {
@@ -134,7 +134,7 @@
134
134
 
135
135
  .modal-title {
136
136
  margin: 0;
137
- line-height: var(--line-height-title);
137
+ line-height: var(--wds-line-height-title-section);
138
138
  }
139
139
 
140
140
  // Modal body
@@ -29,7 +29,7 @@
29
29
 
30
30
  .navbar {
31
31
  position: relative;
32
- font-size: var(--font-size-14);
32
+ font-size: var(--wds-font-size-body);
33
33
  min-height: @navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)
34
34
  margin-bottom: @navbar-margin-bottom;
35
35
  border: 0 solid transparent;
@@ -250,9 +250,9 @@
250
250
  outline: 0;
251
251
  }
252
252
 
253
- font-size: var(--font-size-16);
254
- font-weight: var(--font-weight-semi-bold);
255
- line-height: var(--line-height-body);
253
+ font-size: var(--wds-font-size-body-large);
254
+ font-weight: var(--wds-font-weight-title-body);
255
+ line-height: var(--wds-line-height-body-large);
256
256
  margin-bottom: 8px;
257
257
  color: @color-navy-content-primary;
258
258
 
@@ -344,7 +344,7 @@
344
344
 
345
345
  &.navbar-title-link {
346
346
  @media (--screen-md) {
347
- font-size: var(--font-size-20);
347
+ font-size: var(--wds-font-size-title-body);
348
348
  }
349
349
  }
350
350
  }
@@ -358,7 +358,7 @@
358
358
  > li {
359
359
  > a,
360
360
  > button {
361
- font-size: var(--font-size-16);
361
+ font-size: var(--wds-font-size-body-large);
362
362
  padding: @navbar-padding-mobile;
363
363
  -webkit-touch-callout: none; // When a target is touched and held on iPhone OS, Safari displays a callout information about the link. This property allows disabling that behavior.
364
364
  }
@@ -420,7 +420,7 @@
420
420
 
421
421
  > a {
422
422
  padding-bottom: (@navbar-padding-vertical - 2px);
423
- font-size: var(--font-size-14);
423
+ font-size: var(--wds-font-size-body);
424
424
  }
425
425
  }
426
426
  }
@@ -481,7 +481,7 @@
481
481
  .arrow-pointer(@dropdown-arrow-width);
482
482
 
483
483
  > li > a {
484
- font-size: var(--font-size-14);
484
+ font-size: var(--wds-font-size-body);
485
485
 
486
486
  @media (max-width: @grid-float-breakpoint) {
487
487
  position: relative;
@@ -504,7 +504,7 @@
504
504
  > .active > a {
505
505
  color: var(--color-content-accent-active);
506
506
  background-color: transparent;
507
- font-weight: var(--font-weight-bold);
507
+ font-weight: var(--wds-font-weight-title-body);
508
508
 
509
509
  &:hover,
510
510
  &:focus {
@@ -595,7 +595,7 @@
595
595
  .navbar-vertical-align(22);
596
596
  }
597
597
 
598
- font-weight: var(--font-weight-semi-bold);
598
+ font-weight: var(--wds-font-weight-title-body);
599
599
 
600
600
  @media (max-width: @grid-float-breakpoint-max) {
601
601
  display: block;
@@ -684,7 +684,7 @@
684
684
  > a,
685
685
  > .dropdown-toggle {
686
686
 
687
- font-weight: var(--font-weight-bold);
687
+ font-weight: var(--wds-font-weight-title-body);
688
688
  &,
689
689
  &:hover,
690
690
  &:focus {
@@ -727,7 +727,7 @@
727
727
  }
728
728
 
729
729
  > .active > a {
730
- font-weight: var(--font-weight-bold);
730
+ font-weight: var(--wds-font-weight-title-body);
731
731
  &,
732
732
  &:hover,
733
733
  &:focus {
@@ -804,7 +804,7 @@
804
804
  > a,
805
805
  > .dropdown-toggle {
806
806
  color: var(--color-content-accent-active);
807
- font-weight: var(--font-weight-bold);
807
+ font-weight: var(--wds-font-weight-title-body);
808
808
  &,
809
809
  &:hover,
810
810
  &:focus {
@@ -1105,15 +1105,15 @@
1105
1105
 
1106
1106
  .navbar-title {
1107
1107
  .float(left);
1108
- font-size: var(--font-size-20);
1109
- line-height: var(--line-height-title);
1108
+ font-size: var(--wds-font-size-title-body);
1109
+ line-height: var(--wds-line-height-title-body);
1110
1110
  margin-top: 12px;
1111
1111
  margin-bottom: 12px;
1112
- font-weight: var(--font-weight-bold);
1112
+ font-weight: var(--wds-line-height-title-body);
1113
1113
  }
1114
1114
 
1115
1115
  .navbar-subtitle {
1116
- font-size: var(--font-size-14);
1116
+ font-size: var(--wds-font-size-body);
1117
1117
  margin-bottom: 8px;
1118
1118
  }
1119
1119
 
@@ -1201,7 +1201,7 @@
1201
1201
  }
1202
1202
 
1203
1203
  h1 {
1204
- line-height: var(--line-height-title);
1204
+ line-height: var(--wds-line-height-title-section);
1205
1205
  }
1206
1206
 
1207
1207
  .close {
@@ -1256,7 +1256,7 @@
1256
1256
 
1257
1257
  @media (min-width: @screen-sm-min) {
1258
1258
  .simple-nav .navbar-nav > li > a {
1259
- font-size: var(--font-size-16) !important;
1259
+ font-size: var(--wds-font-size-body-large) !important;
1260
1260
  }
1261
1261
  }
1262
1262
 
@@ -30,8 +30,8 @@
30
30
  outline-offset: -1px;
31
31
  padding: @nav-link-padding;
32
32
  color: var(--color-content-primary);
33
- font-weight: var(--font-weight-regular);
34
- font-size: var(--font-size-16);
33
+ font-weight: var(--wds-font-weight-body-regular);
34
+ font-size: var(--wds-font-size-body-large);
35
35
 
36
36
  &:hover,
37
37
  &:focus {
@@ -47,7 +47,7 @@
47
47
 
48
48
  > .active > a {
49
49
  color: var(--color-content-accent);
50
- font-weight: var(--font-weight-semi-bold);
50
+ font-weight: var(--wds-font-weight-title-body);
51
51
 
52
52
  &:hover,
53
53
  &:focus {
@@ -127,11 +127,11 @@
127
127
  > a {
128
128
  .margin(right, 2px);
129
129
 
130
- line-height: var(--line-height-body);
130
+ line-height: var(--wds-line-height-body-large);
131
131
  //border: 1px solid transparent;
132
132
  //border-radius: @border-radius-base @border-radius-base 0 0;
133
133
  border-bottom: 3px solid transparent;
134
- font-size: var(--font-size-16);
134
+ font-size: var(--wds-font-size-body-large);
135
135
  }
136
136
  }
137
137
 
@@ -153,11 +153,11 @@
153
153
  > li {
154
154
  .float(left);
155
155
 
156
- font-size: var(--font-size-14);
156
+ font-size: var(--wds-font-size-body);
157
157
 
158
158
  // Links rendered as pills
159
159
  > a {
160
- font-size: var(--font-size-14);
160
+ font-size: var(--wds-font-size-body);
161
161
  }
162
162
  }
163
163
  }
@@ -231,7 +231,7 @@
231
231
 
232
232
  &.nav-pills > li > a {
233
233
  padding: 0 var(--size-4);
234
- line-height: var(--line-height-body);
234
+ line-height: var(--wds-line-height-body-large);
235
235
  }
236
236
  }
237
237
 
@@ -38,7 +38,7 @@
38
38
  .panel-title {
39
39
  margin-top: 0;
40
40
  margin-bottom: 0;
41
- line-height: calc(var(--line-height-title) + 8px);
41
+ line-height: calc(var(--wds-line-height-title-section) + 8px);
42
42
 
43
43
  > a {
44
44
  text-decoration: none;
@@ -99,7 +99,7 @@
99
99
 
100
100
  @media (--screen-md) {
101
101
  .panel-title {
102
- line-height: calc(var(--line-height-title) * 2);
102
+ line-height: calc(var(--wds-line-height-title-section) * 2);
103
103
  }
104
104
 
105
105
  .panel-heading {
@@ -348,12 +348,12 @@
348
348
  }
349
349
 
350
350
  .popover-title {
351
- font-size: var(--font-size-16);
352
- line-height: var(--line-height-title);
351
+ font-size: var(--wds-font-size-body-large);
352
+ line-height: var(--wds-font-size-body-large);
353
353
 
354
354
  @media (--screen-md) {
355
- font-size: var(--font-size-20);
356
- line-height: var(--line-height-title);
355
+ font-size: var(--wds-font-size-title-body);
356
+ line-height: var(--wds-font-size-title-body);
357
357
  }
358
358
  }
359
359
 
@@ -20,8 +20,8 @@
20
20
  top: calc(-1 * var(--progress-bar-border-width));
21
21
  left: calc(-1 * var(--progress-bar-start-shift));
22
22
  height: calc(var(--progress-bar-height) + var(--progress-bar-border-width) * 2);
23
- font-size: var(--font-size-16);
24
- font-weight: var(--font-weight-bold);
23
+ font-size: var(--wds-font-size-body-large);
24
+ font-weight: var(--wds-font-weight-body-bold);
25
25
  color: #fff;
26
26
  .text-align(right);
27
27
  background-color: var(--color-content-accent);
@@ -33,13 +33,13 @@
33
33
 
34
34
  margin-top: 0;
35
35
  margin-bottom: 0;
36
- font-size: var(--font-size-14);
36
+ font-size: var(--wds-font-size-body);
37
37
  border-color: var(--color-border-neutral);
38
38
 
39
39
  @media (min-width: @screen-md-min) {
40
40
  .padding(right, @sequence-spacing-horizontal);
41
41
 
42
- font-size: var(--font-size-16);
42
+ font-size: var(--wds-font-size-body-large);
43
43
  }
44
44
 
45
45
  > li {
@@ -51,7 +51,7 @@
51
51
  > a {
52
52
  display: block;
53
53
  text-decoration: none;
54
- font-weight: var(--font-weight-regular);
54
+ font-weight: var(--wds-font-weight-body-regular);
55
55
  color: var(--color-content-accent);
56
56
  outline-offset: -1px;
57
57
 
@@ -130,7 +130,7 @@
130
130
  > a {
131
131
  text-decoration: none;
132
132
  color: var(--color-content-primary);
133
- font-weight: var(--font-weight-semi-bold);
133
+ font-weight: var(--wds-font-weight-title-body);
134
134
 
135
135
  &:hover,
136
136
  &:focus {
@@ -160,7 +160,7 @@
160
160
 
161
161
  a {
162
162
  text-decoration: none;
163
- font-weight: var(--font-weight-regular);
163
+ font-weight: var(--wds-font-weight-body-regular);
164
164
  }
165
165
  }
166
166
 
@@ -253,7 +253,7 @@
253
253
  font-size: var(--font-size-12);
254
254
 
255
255
  .icon {
256
- font-size: var(--font-size-16);
256
+ font-size: var(--wds-font-size-body-large);
257
257
  line-height: (@sequence-icon-size - 1px);
258
258
  }
259
259
 
@@ -371,7 +371,7 @@
371
371
  height: @sequence-icon-size-md;
372
372
  line-height: (@sequence-icon-size-md - 2px);
373
373
  margin-top: -6px;
374
- font-size: var(--font-size-14);
374
+ font-size: var(--wds-font-size-body);
375
375
  }
376
376
 
377
377
  .sequence-icon-lg {
@@ -379,7 +379,7 @@
379
379
  height: @sequence-icon-size-lg;
380
380
  line-height: (@sequence-icon-size-lg - 2px);
381
381
  margin-top: -6px;
382
- font-size: var(--font-size-16);
382
+ font-size: var(--wds-font-size-body-large);
383
383
 
384
384
  .icon {
385
385
  font-size: 22px;
@@ -50,7 +50,7 @@ th {
50
50
  > tr > th,
51
51
  > tr > td {
52
52
  padding: var(--size-24) var(--size-16);
53
- line-height: var(--line-height-body);
53
+ line-height: var(--wds-line-height-body-large);
54
54
  vertical-align: top;
55
55
  border-top: 1px solid var(--color-border-neutral);
56
56
  border-bottom: 0;
@@ -62,7 +62,7 @@ th {
62
62
  > .tbody > dl > dd,
63
63
  > .tfoot > ol > li {
64
64
  padding: var(--size-24) var(--size-16);
65
- line-height: var(--line-height-body);
65
+ line-height: var(--wds-line-height-body-large);
66
66
  vertical-align: top;
67
67
  border-top: 1px solid var(--color-border-neutral);
68
68
  border-bottom: 0;
@@ -115,13 +115,13 @@ th {
115
115
  > tfoot,
116
116
  > .thead,
117
117
  > .tfoot {
118
- font-size: var(--font-size-14);
118
+ font-size: var(--wds-font-size-body);
119
119
  color: var(--color-content-primary);
120
120
  }
121
121
 
122
122
  > tbody,
123
123
  > .tbody {
124
- font-size: var(--font-size-14);
124
+ font-size: var(--wds-font-size-body);
125
125
  }
126
126
 
127
127
  > tbody > tr > th,
@@ -290,7 +290,7 @@ table col[class*="col-"] {
290
290
 
291
291
  > li {
292
292
  display: table-cell;
293
- font-weight: var(--font-weight-bold);
293
+ font-weight: var(--wds-font-weight-title-body);
294
294
  color: var(--color-content-primary);
295
295
  }
296
296
  }
@@ -308,7 +308,7 @@ table col[class*="col-"] {
308
308
 
309
309
  > dd {
310
310
  display: table-cell;
311
- font-size: var(--font-size-14);
311
+ font-size: var(--wds-font-size-body);
312
312
  color: var(--color-content-secondary);
313
313
  }
314
314
  }
@@ -331,7 +331,7 @@ table col[class*="col-"] {
331
331
  border: 1px var(--color-interactive-secondary) solid;
332
332
  border-radius: @border-radius-base;
333
333
  margin-bottom: var(--size-24);
334
- padding: var(--size-24) var(--line-height-body) 0;
334
+ padding: var(--size-24) var(--wds-line-height-body-large) 0;
335
335
 
336
336
  > dd {
337
337
  padding: 0;