@transferwise/neptune-css 14.9.2 → 14.9.4

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 (58) hide show
  1. package/dist/css/accordion.css +0 -4
  2. package/dist/css/border-radius.css +0 -8
  3. package/dist/css/button-groups.css +0 -4
  4. package/dist/css/decision.css +0 -4
  5. package/dist/css/dropdowns.css +0 -8
  6. package/dist/css/flex.css +253 -417
  7. package/dist/css/footer.css +0 -8
  8. package/dist/css/input-groups.css +0 -8
  9. package/dist/css/navbar-base.css +339 -168
  10. package/dist/css/navbar.css +107 -49
  11. package/dist/css/neptune-addons.css +893 -421
  12. package/dist/css/neptune-core.css +209 -233
  13. package/dist/css/neptune.css +15708 -15023
  14. package/dist/css/popovers.css +0 -8
  15. package/dist/css/tooltip.css +0 -4
  16. package/dist/css/utilities.css +72 -1202
  17. package/package.json +1 -1
  18. package/src/less/addons/_display-utilities.less +159 -0
  19. package/src/less/addons/_spacing-utilities.less +26 -3
  20. package/src/less/addons/_utilities.less +147 -0
  21. package/src/less/border-radius.less +3 -1
  22. package/src/less/core/_scaffolding.less +27 -7
  23. package/src/less/core/_typography-utilities.less +237 -17
  24. package/src/less/core/_typography.less +9 -65
  25. package/src/less/flex.less +18 -9
  26. package/src/less/{addons → mixins}/_center-block.less +4 -2
  27. package/src/less/mixins/_flex.less +105 -0
  28. package/src/less/navbar.less +2 -10
  29. package/src/less/neptune-addons.less +1 -4
  30. package/src/less/utilities.less +141 -29
  31. package/src/less/utilities/align-items.less +0 -107
  32. package/src/less/utilities/align-self.less +0 -107
  33. package/src/less/utilities/border-radius.less +0 -11
  34. package/src/less/utilities/color.less +0 -70
  35. package/src/less/utilities/cursor.less +0 -3
  36. package/src/less/utilities/display.less +0 -178
  37. package/src/less/utilities/flex-direction.less +0 -47
  38. package/src/less/utilities/flex-grow.less +0 -27
  39. package/src/less/utilities/flex-wrap.less +0 -47
  40. package/src/less/utilities/float.less +0 -77
  41. package/src/less/utilities/font-weight.less +0 -11
  42. package/src/less/utilities/gap.less +0 -3
  43. package/src/less/utilities/justify-content.less +0 -107
  44. package/src/less/utilities/margin.less +0 -192
  45. package/src/less/utilities/max-width.less +0 -3
  46. package/src/less/utilities/order.less +0 -87
  47. package/src/less/utilities/outline-style.less +0 -8
  48. package/src/less/utilities/overflow-wrap.less +0 -3
  49. package/src/less/utilities/padding.less +0 -179
  50. package/src/less/utilities/position.less +0 -3
  51. package/src/less/utilities/rotate.less +0 -12
  52. package/src/less/utilities/screen-reader.less +0 -24
  53. package/src/less/utilities/text-align.less +0 -87
  54. package/src/less/utilities/text-decoration-line.less +0 -8
  55. package/src/less/utilities/text-overflow.less +0 -7
  56. package/src/less/utilities/text-transform.less +0 -11
  57. package/src/less/utilities/visibility.less +0 -3
  58. package/src/less/utilities/white-space.less +0 -27
@@ -97,74 +97,16 @@ h6,
97
97
  line-height: 140%;
98
98
  }
99
99
 
100
- .body-1,
101
- .body-2,
102
- .body-3,
103
- .label,
104
- .value,
105
- .np-text-body-default {
106
- font-weight: var(--font-weight-regular);
107
- line-height: var(--line-height-body);
108
- }
109
-
110
- .body-1,
111
- .np-text-body-default,
112
- .np-text-body-default-bold {
113
- font-size: var(--font-size-16);
114
- }
115
-
116
- .np-text-body-default-bold {
117
- font-weight: var(--font-weight-bold);
118
- }
119
-
120
- .body-2 {
121
- font-size: var(--font-size-14);
122
- }
123
-
124
- .body-3 {
125
- font-size: var(--font-size-12);
126
- }
127
-
128
- .control-1,
129
- .control-2 {
130
- color: var(--color-content-accent);
131
- font-weight: var(--font-weight-semi-bold);
132
- line-height: var(--line-height-title);
133
- }
134
-
135
- .control-1 {
136
- font-size: var(--font-size-16);
137
- }
138
-
139
- .control-2 {
140
- font-size: var(--font-size-14);
141
- }
142
-
143
- .label {
144
- font-size: var(--font-size-14);
145
- }
146
-
147
- .value {
148
- font-size: var(--font-size-16);
149
- }
150
-
100
+ /* DEPRECATED: use .np-text-title-body instead */
151
101
  .lead {
152
102
  margin-bottom: var(--size-24);
153
103
  font-size: var(--font-size-20);
154
104
  line-height: var(--line-height-title);
155
105
  }
156
106
 
157
- small,
158
- .small,
159
- .body-2 {
160
- font-size: var(--font-size-14);
161
- line-height: var(--line-height-body);
162
- }
163
-
107
+ // DEPRECATED: use .np-text-body-default instead
164
108
  .tiny {
165
109
  color: var(--color-content-secondary);
166
- font-size: var(--font-size-12);
167
- line-height: var(--line-height-body);
168
110
  }
169
111
 
170
112
  // BODY
@@ -172,7 +114,7 @@ small,
172
114
  /* DEPRECATED: use .np-text-body-default instead */
173
115
  /* stylelint-disable-next-line selector-list-comma-newline-after */
174
116
  .body-2, .body-3, .label, .control-label, .small, .tiny,
175
- body,
117
+ body, small,
176
118
  .np-text-body-default {
177
119
  font-size: var(--font-size-14);
178
120
  line-height: 155%;
@@ -184,15 +126,12 @@ body,
184
126
  /* stylelint-disable-next-line selector-list-comma-newline-after */
185
127
  .control-2,
186
128
  .np-text-body-default-bold {
129
+ font-size: var(--font-size-14);
187
130
  line-height: 155%;
188
131
  letter-spacing: -0.006em;
189
132
  font-weight: var(--font-weight-semi-bold);
190
133
  }
191
134
 
192
- .np-text-body-default-bold {
193
- font-size: var(--font-size-14);
194
- }
195
-
196
135
  /* DEPRECATED: use .np-text-body-large instead */
197
136
  /* stylelint-disable-next-line selector-list-comma-newline-after */
198
137
  .body-1, .value,
@@ -435,6 +374,7 @@ a,
435
374
  }
436
375
  }
437
376
 
377
+ /* DEPRECATED: use `.np-text-display-*` instead */
438
378
  .display-1 {
439
379
  margin-bottom: var(--size-24);
440
380
  /* stylelint-disable-next-line number-max-precision */
@@ -446,6 +386,7 @@ a,
446
386
  }
447
387
  }
448
388
 
389
+ /* DEPRECATED: use `.np-text-display-*` instead */
449
390
  .display-2 {
450
391
  margin-bottom: var(--size-24);
451
392
  /* stylelint-disable-next-line number-max-precision */
@@ -457,6 +398,7 @@ a,
457
398
  }
458
399
  }
459
400
 
401
+ /* DEPRECATED: use `.np-text-display-*` instead */
460
402
  .display-3 {
461
403
  margin-bottom: var(--size-8);
462
404
  font-size: 2.8rem;
@@ -467,6 +409,7 @@ a,
467
409
  }
468
410
  }
469
411
 
412
+ /* DEPRECATED: use `.np-text-display-*` instead */
470
413
  .display-4 {
471
414
  margin-bottom: var(--size-4);
472
415
  /* stylelint-disable-next-line number-max-precision */
@@ -478,6 +421,7 @@ a,
478
421
  }
479
422
  }
480
423
 
424
+ /* DEPRECATED: use `.np-text-display-*` instead */
481
425
  .display-5 {
482
426
  margin-bottom: var(--size-4);
483
427
  /* stylelint-disable-next-line number-max-precision */
@@ -1,15 +1,24 @@
1
1
  // mixins
2
+ @import (reference) "./mixins/_flex.less";
2
3
  @import (reference) "./mixins/_logical-properties.less";
3
4
 
4
- /* TODO: Remove utility imports to prevent duplicates */
5
- @import "./utilities/align-items.less";
6
- @import "./utilities/align-self.less";
7
- @import "./utilities/display.less";
8
- @import "./utilities/flex-direction.less";
9
- @import "./utilities/flex-grow.less";
10
- @import "./utilities/flex-wrap.less";
11
- @import "./utilities/justify-content.less";
12
- @import "./utilities/order.less";
5
+ .flex-properties(~"");
6
+
7
+ @media (--screen-sm) {
8
+ .flex-properties(--sm);
9
+ }
10
+
11
+ @media (--screen-md) {
12
+ .flex-properties(--md);
13
+ }
14
+
15
+ @media (--screen-lg) {
16
+ .flex-properties(--lg);
17
+ }
18
+
19
+ @media (--screen-xl) {
20
+ .flex-properties(--xl);
21
+ }
13
22
 
14
23
  /* Items */
15
24
  .flex__inner {
@@ -1,5 +1,7 @@
1
- .center-block {
1
+ // Center-align a block level element
2
+
3
+ .center-block() {
4
+ display: block;
2
5
  margin-left: auto;
3
6
  margin-right: auto;
4
- display: block;
5
7
  }
@@ -0,0 +1,105 @@
1
+ .flex-properties(@break-point) {
2
+ .d-flex@{break-point} {
3
+ display: flex;
4
+ }
5
+
6
+ .d-inline-flex@{break-point} {
7
+ display: inline-flex;
8
+ }
9
+
10
+ .flex-column@{break-point} {
11
+ flex-direction: column;
12
+ }
13
+
14
+ .flex-row@{break-point} {
15
+ flex-direction: row;
16
+ }
17
+
18
+ .justify-content-start@{break-point} {
19
+ justify-content: flex-start;
20
+ }
21
+
22
+ .justify-content-end@{break-point} {
23
+ justify-content: flex-end;
24
+ }
25
+
26
+ .justify-content-center@{break-point} {
27
+ justify-content: center;
28
+ }
29
+
30
+ .justify-content-between@{break-point} {
31
+ justify-content: space-between;
32
+ }
33
+
34
+ .justify-content-around@{break-point} {
35
+ justify-content: space-around;
36
+ }
37
+
38
+ .align-items-start@{break-point} {
39
+ align-items: flex-start;
40
+ }
41
+
42
+ .align-items-end@{break-point} {
43
+ align-items: flex-end;
44
+ }
45
+
46
+ .align-items-center@{break-point} {
47
+ align-items: center;
48
+ }
49
+
50
+ .align-items-baseline@{break-point} {
51
+ align-items: baseline;
52
+ }
53
+
54
+ .align-items-stretch@{break-point} {
55
+ align-items: stretch;
56
+ }
57
+
58
+ .align-self-start@{break-point} {
59
+ align-self: flex-start;
60
+ }
61
+
62
+ .align-self-end@{break-point} {
63
+ align-self: flex-end;
64
+ }
65
+
66
+ .align-self-center@{break-point} {
67
+ align-self: center;
68
+ }
69
+
70
+ .align-self-baseline@{break-point} {
71
+ align-self: baseline;
72
+ }
73
+
74
+ .align-self-stretch@{break-point} {
75
+ align-self: stretch;
76
+ }
77
+
78
+ .flex-nowrap@{break-point} {
79
+ flex-wrap: nowrap;
80
+ }
81
+
82
+ .flex-wrap@{break-point} {
83
+ flex-wrap: wrap;
84
+ }
85
+
86
+ .order-0@{break-point} {
87
+ order: 0;
88
+ }
89
+
90
+ .order-1@{break-point} {
91
+ order: 1;
92
+ }
93
+
94
+ .order-2@{break-point} {
95
+ order: 2;
96
+ }
97
+
98
+ .order-3@{break-point} {
99
+ order: 3;
100
+ }
101
+
102
+ .flex-grow-1@{break-point} {
103
+ flex-grow: 1;
104
+ }
105
+ }
@@ -4,15 +4,12 @@
4
4
  @import (reference) "./mixins/_arrows.less";
5
5
  @import (reference) "./mixins/_border-radius.less";
6
6
  @import (reference) "./mixins/_clearfix.less";
7
+ @import (reference) "./mixins/_center-block.less";
7
8
  @import (reference) "./mixins/_hide-text.less";
8
9
  @import (reference) "./mixins/_grid.less";
9
10
  @import (reference) "./mixins/_tab-focus.less";
10
11
  @import (reference) "./mixins/_logical-properties.less";
11
-
12
- /* TODO: Remove utility imports to prevent duplicates */
13
- @import "./addons/_center-block.less";
14
- @import "./utilities/float.less";
15
-
12
+ @import "./addons/_utilities.less";
16
13
  @import "dropdowns.less";
17
14
  @import "navs.less";
18
15
  @import "navbar-base.less";
@@ -107,8 +104,3 @@
107
104
  .navbar-background--inverse {
108
105
  background-color: @color-navy-background-elevated;
109
106
  }
110
-
111
- /* TODO: Remove to prefer direct utility imports */
112
- .clearfix {
113
- .clearfix();
114
- }
@@ -1,7 +1,4 @@
1
1
  @import "./addons/_background-utilities.less";
2
+ @import "./addons/_display-utilities.less";
2
3
  @import "./addons/_spacing-utilities.less";
3
4
  @import "./addons/_border.less";
4
-
5
- /* TODO: Remove utility imports to prevent duplicates */
6
- @import "./utilities/display.less";
7
- @import "./utilities/outline-style.less";
@@ -1,41 +1,153 @@
1
1
  @import (reference) "../variables/legacy-variables.less";
2
2
  @import (reference) "./mixins/_clearfix.less";
3
+ @import (reference) "./mixins/_center-block.less";
3
4
  @import (reference) "./mixins/_hide-text.less";
5
+ @import (reference) "./mixins/_logical-properties.less";
4
6
 
5
- @import "./addons/_center-block.less";
6
- @import "./utilities/align-items.less";
7
- @import "./utilities/align-self.less";
8
- @import "./utilities/border-radius.less";
9
- @import "./utilities/color.less";
10
- @import "./utilities/cursor.less";
11
- @import "./utilities/display.less";
12
- @import "./utilities/flex-direction.less";
13
- @import "./utilities/flex-grow.less";
14
- @import "./utilities/flex-wrap.less";
15
- @import "./utilities/float.less";
16
- @import "./utilities/font-weight.less";
17
- @import "./utilities/gap.less";
18
- @import "./utilities/justify-content.less";
19
- @import "./utilities/margin.less";
20
- @import "./utilities/max-width.less";
21
- @import "./utilities/order.less";
22
- @import "./utilities/outline-style.less";
23
- @import "./utilities/overflow-wrap.less";
24
- @import "./utilities/padding.less";
25
- @import "./utilities/position.less";
26
- @import "./utilities/rotate.less";
27
- @import "./utilities/screen-reader.less";
28
- @import "./utilities/text-align.less";
29
- @import "./utilities/text-decoration-line.less";
30
- @import "./utilities/text-overflow.less";
31
- @import "./utilities/text-transform.less";
32
- @import "./utilities/visibility.less";
33
- @import "./utilities/white-space.less";
7
+ .d-inline-block {
8
+ display: inline-block;
9
+ }
10
+
11
+ .d-inline {
12
+ display: inline;
13
+ }
34
14
 
35
15
  .clearfix {
36
16
  .clearfix();
37
17
  }
38
18
 
19
+ .center-block {
20
+ .center-block();
21
+ }
22
+
23
+ .pull-right,
24
+ .pull-xs-right {
25
+ .float(right) !important;
26
+ }
27
+
28
+ .pull-left,
29
+ .pull-xs-left {
30
+ .float(left) !important;
31
+ }
32
+
33
+ .pull-xs-none {
34
+ float: none !important;
35
+ }
36
+
37
+ @media (--screen-sm) {
38
+ .pull-sm-left {
39
+ .float(left) !important;
40
+ }
41
+
42
+ .pull-sm-right {
43
+ .float(right) !important;
44
+ }
45
+
46
+ .pull-sm-none {
47
+ float: none !important;
48
+ }
49
+ }
50
+
51
+ @media (--screen-md) {
52
+ .pull-md-left {
53
+ .float(left) !important;
54
+ }
55
+
56
+ .pull-md-right {
57
+ .float(right) !important;
58
+ }
59
+
60
+ .pull-md-none {
61
+ float: none !important;
62
+ }
63
+ }
64
+
65
+ @media (--screen-lg) {
66
+ .pull-lg-left {
67
+ .float(left) !important;
68
+ }
69
+
70
+ .pull-lg-right {
71
+ .float(right) !important;
72
+ }
73
+
74
+ .pull-lg-none {
75
+ float: none !important;
76
+ }
77
+ }
78
+
79
+ @media (--screen-xl) {
80
+ .pull-xl-left {
81
+ .float(left) !important;
82
+ }
83
+
84
+ .pull-xl-right {
85
+ .float(right) !important;
86
+ }
87
+
88
+ .pull-xl-none {
89
+ float: none !important;
90
+ }
91
+ }
92
+
93
+ // Floats not changing direction on RTL.
94
+
95
+ .pull-left-single-direction {
96
+ float: left !important;
97
+ }
98
+
99
+ .pull-right-single-direction {
100
+ float: right !important;
101
+ }
102
+
103
+ // Toggling content
104
+ // -------------------------
105
+
106
+ // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
107
+
108
+ .hide {
109
+ display: none !important;
110
+ }
111
+
112
+ .show {
113
+ display: block !important;
114
+ }
115
+
116
+ .invisible {
117
+ visibility: hidden;
118
+ }
119
+
39
120
  .text-hide {
40
121
  .text-hide();
41
122
  }
123
+
124
+ // Hide from screenreaders and browsers
125
+ //
126
+ // Credit: HTML5 Boilerplate
127
+
128
+ .hidden {
129
+ display: none !important;
130
+ }
131
+
132
+ // For Affix plugin
133
+ // -------------------------
134
+
135
+ .affix {
136
+ position: fixed;
137
+ }
138
+
139
+ .rotate90 {
140
+ transform: rotate(90deg);
141
+ }
142
+
143
+ .rotate180 {
144
+ transform: rotate(180deg);
145
+ }
146
+
147
+ .rotate270 {
148
+ transform: rotate(270deg);
149
+ }
150
+
151
+ .rotate-90 {
152
+ transform: rotate(-90deg);
153
+ }
@@ -1,107 +0,0 @@
1
- .align-items-start {
2
- align-items: flex-start;
3
- }
4
-
5
- .align-items-end {
6
- align-items: flex-end;
7
- }
8
-
9
- .align-items-center {
10
- align-items: center;
11
- }
12
-
13
- .align-items-baseline {
14
- align-items: baseline;
15
- }
16
-
17
- .align-items-stretch {
18
- align-items: stretch;
19
- }
20
-
21
- @media (--screen-sm) {
22
- .align-items-start--sm {
23
- align-items: flex-start;
24
- }
25
-
26
- .align-items-end--sm {
27
- align-items: flex-end;
28
- }
29
-
30
- .align-items-center--sm {
31
- align-items: center;
32
- }
33
-
34
- .align-items-baseline--sm {
35
- align-items: baseline;
36
- }
37
-
38
- .align-items-stretch--sm {
39
- align-items: stretch;
40
- }
41
- }
42
-
43
- @media (--screen-md) {
44
- .align-items-start--md {
45
- align-items: flex-start;
46
- }
47
-
48
- .align-items-end--md {
49
- align-items: flex-end;
50
- }
51
-
52
- .align-items-center--md {
53
- align-items: center;
54
- }
55
-
56
- .align-items-baseline--md {
57
- align-items: baseline;
58
- }
59
-
60
- .align-items-stretch--md {
61
- align-items: stretch;
62
- }
63
- }
64
-
65
- @media (--screen-lg) {
66
- .align-items-start--lg {
67
- align-items: flex-start;
68
- }
69
-
70
- .align-items-end--lg {
71
- align-items: flex-end;
72
- }
73
-
74
- .align-items-center--lg {
75
- align-items: center;
76
- }
77
-
78
- .align-items-baseline--lg {
79
- align-items: baseline;
80
- }
81
-
82
- .align-items-stretch--lg {
83
- align-items: stretch;
84
- }
85
- }
86
-
87
- @media (--screen-xl) {
88
- .align-items-start--xl {
89
- align-items: flex-start;
90
- }
91
-
92
- .align-items-end--xl {
93
- align-items: flex-end;
94
- }
95
-
96
- .align-items-center--xl {
97
- align-items: center;
98
- }
99
-
100
- .align-items-baseline--xl {
101
- align-items: baseline;
102
- }
103
-
104
- .align-items-stretch--xl {
105
- align-items: stretch;
106
- }
107
- }
@@ -1,107 +0,0 @@
1
- .align-self-start {
2
- align-self: flex-start;
3
- }
4
-
5
- .align-self-end {
6
- align-self: flex-end;
7
- }
8
-
9
- .align-self-center {
10
- align-self: center;
11
- }
12
-
13
- .align-self-stretch {
14
- align-self: stretch;
15
- }
16
-
17
- .align-self-baseline {
18
- align-self: baseline;
19
- }
20
-
21
- @media (--screen-sm) {
22
- .align-self-start--sm {
23
- align-self: flex-start;
24
- }
25
-
26
- .align-self-end--sm {
27
- align-self: flex-end;
28
- }
29
-
30
- .align-self-center--sm {
31
- align-self: center;
32
- }
33
-
34
- .align-self-stretch--sm {
35
- align-self: stretch;
36
- }
37
-
38
- .align-self-baseline--sm {
39
- align-self: baseline;
40
- }
41
- }
42
-
43
- @media (--screen-md) {
44
- .align-self-start--md {
45
- align-self: flex-start;
46
- }
47
-
48
- .align-self-end--md {
49
- align-self: flex-end;
50
- }
51
-
52
- .align-self-center--md {
53
- align-self: center;
54
- }
55
-
56
- .align-self-stretch--md {
57
- align-self: stretch;
58
- }
59
-
60
- .align-self-baseline--md {
61
- align-self: baseline;
62
- }
63
- }
64
-
65
- @media (--screen-lg) {
66
- .align-self-start--lg {
67
- align-self: flex-start;
68
- }
69
-
70
- .align-self-end--lg {
71
- align-self: flex-end;
72
- }
73
-
74
- .align-self-center--lg {
75
- align-self: center;
76
- }
77
-
78
- .align-self-stretch--lg {
79
- align-self: stretch;
80
- }
81
-
82
- .align-self-baseline--lg {
83
- align-self: baseline;
84
- }
85
- }
86
-
87
- @media (--screen-xl) {
88
- .align-self-start--xl {
89
- align-self: flex-start;
90
- }
91
-
92
- .align-self-end--xl {
93
- align-self: flex-end;
94
- }
95
-
96
- .align-self-center--xl {
97
- align-self: center;
98
- }
99
-
100
- .align-self-stretch--xl {
101
- align-self: stretch;
102
- }
103
-
104
- .align-self-baseline--xl {
105
- align-self: baseline;
106
- }
107
- }