@transferwise/neptune-css 14.28.1 → 14.29.0
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.
- package/dist/css/accordion.css +24 -46
- package/dist/css/alerts.css +56 -124
- package/dist/css/badge.css +20 -30
- package/dist/css/breadcrumbs.css +6 -4
- package/dist/css/button-groups.css +116 -254
- package/dist/css/buttons.css +51 -90
- package/dist/css/circles.css +38 -76
- package/dist/css/close.css +1 -4
- package/dist/css/column-layout.css +38 -60
- package/dist/css/currency-flags.css +4 -17
- package/dist/css/decision.css +14 -12
- package/dist/css/dropdowns.css +59 -210
- package/dist/css/droppable.css +43 -38
- package/dist/css/flex.css +40 -136
- package/dist/css/footer.css +15 -14
- package/dist/css/grid.css +383 -1430
- package/dist/css/input-groups.css +254 -542
- package/dist/css/link-callout.css +2 -8
- package/dist/css/list-group.css +57 -92
- package/dist/css/loaders.css +11 -11
- package/dist/css/media.css +10 -34
- package/dist/css/modals.css +50 -60
- package/dist/css/navbar.css +372 -812
- package/dist/css/navs.css +59 -124
- package/dist/css/neptune-addons.css +687 -1234
- package/dist/css/neptune-core.css +123 -229
- package/dist/css/neptune-social-media.css +9 -33
- package/dist/css/neptune.css +3241 -9340
- package/dist/css/panels.css +143 -243
- package/dist/css/popovers.css +114 -295
- package/dist/css/process.css +64 -77
- package/dist/css/progress-bars.css +13 -19
- package/dist/css/select.css +21 -53
- package/dist/css/sequences.css +99 -219
- package/dist/css/table.css +48 -43
- package/dist/css/tick.css +10 -10
- package/dist/css/tooltip.css +49 -82
- package/dist/css/utilities.css +12 -40
- package/dist/css/wells.css +16 -16
- package/dist/less/legacy-variables.less +0 -1
- package/dist/less/neptune-tokens.less +0 -2
- package/dist/props/custom-media.css +0 -1
- package/dist/props/neptune-tokens.css +0 -1
- package/package.json +4 -4
- package/src/less/addons/_spacing-utilities.less +4 -4
- package/src/less/alerts.less +1 -2
- package/src/less/core/viewport-themes.less +2 -45
- package/src/less/forms/bootstrap-forms.less +1 -1
- package/src/less/mixins/_logical-properties-IE-friendly.less +1 -0
- package/src/less/mixins/_logical-properties-modern-browsers.less +80 -41
- package/src/less/mixins/_logical-properties.less +3 -3
- package/src/less/modals.less +4 -4
- package/src/less/navbar.less +2 -2
- package/src/less/neptune.bundle.less +21 -13
- package/src/less/table.less +1 -1
- package/src/less/wells.less +1 -1
|
@@ -1,51 +1,8 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import "@transferwise/neptune-tokens/themes/personal/tokens.less";
|
|
2
|
+
@import "@transferwise/neptune-tokens/tiny-viewport.less";
|
|
2
3
|
|
|
3
4
|
@media (--screen-400-zoom) {
|
|
4
5
|
.np-theme-personal {
|
|
5
|
-
--delta: 2;
|
|
6
|
-
|
|
7
|
-
--size-4: calc(@size-4 / var(--delta));
|
|
8
|
-
--size-5: calc(@size-5 / var(--delta));
|
|
9
|
-
--size-8: calc(@size-8 / var(--delta));
|
|
10
|
-
--size-10: calc(@size-10 / var(--delta));
|
|
11
|
-
--size-12: calc(@size-12 / var(--delta));
|
|
12
|
-
--size-14: calc(@size-14 / var(--delta));
|
|
13
|
-
--size-16: calc(@size-16 / var(--delta));
|
|
14
|
-
--size-24: calc(@size-24 / var(--delta));
|
|
15
|
-
--size-32: calc(@size-32 / var(--delta));
|
|
16
|
-
--size-40: calc(@size-40 / var(--delta));
|
|
17
|
-
--size-48: calc(@size-48 / var(--delta));
|
|
18
|
-
--size-52: calc(@size-52 / var(--delta));
|
|
19
|
-
--size-56: calc(@size-56 / var(--delta));
|
|
20
|
-
--size-60: calc(@size-60 / var(--delta));
|
|
21
|
-
--size-64: calc(@size-64 / var(--delta));
|
|
22
|
-
--size-72: calc(@size-72 / var(--delta));
|
|
23
|
-
--size-80: calc(@size-80 / var(--delta));
|
|
24
|
-
--size-88: calc(@size-88 / var(--delta));
|
|
25
|
-
--size-96: calc(@size-96 / var(--delta));
|
|
26
|
-
--size-104: calc(@size-104 / var(--delta));
|
|
27
|
-
--size-112: calc(@size-112 / var(--delta));
|
|
28
|
-
--size-120: calc(@size-120 / var(--delta));
|
|
29
|
-
--size-126: calc(@size-126 / var(--delta));
|
|
30
|
-
--size-128: calc(@size-128 / var(--delta));
|
|
31
|
-
--size-146: calc(@size-146 / var(--delta));
|
|
32
|
-
--size-154: calc(@size-154 / var(--delta));
|
|
33
|
-
--size-x-small: calc(@size-x-small / var(--delta));
|
|
34
|
-
--size-small: calc(@size-small / var(--delta));
|
|
35
|
-
--size-medium: calc(@size-medium / var(--delta));
|
|
36
|
-
--size-large: calc(@size-large / var(--delta));
|
|
37
|
-
--size-x-large: calc(@size-x-large / var(--delta));
|
|
38
|
-
--size-2x-large: calc(@size-2x-large / var(--delta));
|
|
39
|
-
--space-content-horizontal: calc(@space-content-horizontal / var(--delta));
|
|
40
|
-
--space-small: calc(@space-small / var(--delta));
|
|
41
|
-
--space-medium: calc(@space-medium / var(--delta));
|
|
42
|
-
--space-large: calc(@space-large / var(--delta));
|
|
43
|
-
--space-x-large: calc(@space-x-large / var(--delta));
|
|
44
|
-
--padding-x-small: var(--size-8);
|
|
45
|
-
--padding-small: var(--size-16);
|
|
46
|
-
--padding-medium: var(--size-24);
|
|
47
|
-
--padding-large: var(--size-32);
|
|
48
|
-
|
|
49
6
|
--input-height-base: var(--size-32);
|
|
50
7
|
--input-height-large: var(--input-height-small);
|
|
51
8
|
--input-padding: var(--input-padding-small);
|
|
@@ -636,7 +636,7 @@ input[type="password"] {
|
|
|
636
636
|
//
|
|
637
637
|
// Make forms appear inline(-block) by adding the `.form-inline` class. Inline
|
|
638
638
|
// forms begin stacked on extra small (mobile) devices and then go inline when
|
|
639
|
-
// viewports reach <
|
|
639
|
+
// viewports reach <840px.
|
|
640
640
|
//
|
|
641
641
|
// Requires wrapping inputs and labels with `.form-group` for proper display of
|
|
642
642
|
// default HTML form controls and our custom form controls (e.g., input groups).
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
// Mixin to support Logical properties/values for modern browsers
|
|
3
2
|
|
|
4
3
|
// Custom property for the cases which doesn't exist a logical value. (Translations, linear-gradients)
|
|
@@ -17,20 +16,10 @@
|
|
|
17
16
|
|
|
18
17
|
.float(@direction) {
|
|
19
18
|
& when (@direction = left) {
|
|
20
|
-
[dir="rtl"] & {
|
|
21
|
-
float: right;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
float: @direction;
|
|
25
19
|
float: inline-start;
|
|
26
20
|
}
|
|
27
21
|
|
|
28
22
|
& when (@direction = right) {
|
|
29
|
-
[dir="rtl"] & {
|
|
30
|
-
float: left;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
float: @direction;
|
|
34
23
|
float: inline-end;
|
|
35
24
|
}
|
|
36
25
|
}
|
|
@@ -39,20 +28,10 @@
|
|
|
39
28
|
|
|
40
29
|
.clear(@direction) {
|
|
41
30
|
& when (@direction = left) {
|
|
42
|
-
[dir="rtl"] & {
|
|
43
|
-
clear: right;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
clear: @direction;
|
|
47
31
|
clear: inline-start;
|
|
48
32
|
}
|
|
49
33
|
|
|
50
34
|
& when (@direction = right) {
|
|
51
|
-
[dir="rtl"] & {
|
|
52
|
-
clear: left;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
clear: @direction;
|
|
56
35
|
clear: inline-end;
|
|
57
36
|
}
|
|
58
37
|
}
|
|
@@ -71,7 +50,27 @@
|
|
|
71
50
|
|
|
72
51
|
// CSS Logical Properties: https://caniuse.com/css-logical-props
|
|
73
52
|
|
|
74
|
-
.padding(@direction, @value) {
|
|
53
|
+
.padding(@direction, @value, @oppositeValue: ~"") {
|
|
54
|
+
& when (@direction = left) {
|
|
55
|
+
padding-inline-start: @value;
|
|
56
|
+
& when not (@oppositeValue = ~"") {
|
|
57
|
+
[dir="rtl"] & {
|
|
58
|
+
padding-inline-end: @oppositeValue;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
& when (@direction = right) {
|
|
64
|
+
padding-inline-end: @value;
|
|
65
|
+
& when not (@oppositeValue = ~"") {
|
|
66
|
+
[dir="rtl"] & {
|
|
67
|
+
padding-inline-start: @oppositeValue;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.padding-for-spacing(@direction, @value) {
|
|
75
74
|
& when (@direction = left) {
|
|
76
75
|
padding-inline-start: @value;
|
|
77
76
|
}
|
|
@@ -85,25 +84,45 @@
|
|
|
85
84
|
// Use for single value shorthand 'padding: var(--foo);' -> '.padding-shorthand(var(--foo))'
|
|
86
85
|
// Use for multiple value shorthand 'padding: var(--foo1) var(--foo2) var(--foo3) var(--foo4);' -> '.padding-shorthand(var(--foo1), var(--foo2), var(--foo3), var(--foo4))'
|
|
87
86
|
|
|
88
|
-
.padding-shorthand(@value1, @value2: ~
|
|
89
|
-
|
|
90
|
-
padding: @value1
|
|
87
|
+
.padding-shorthand(@value1, @value2: ~"", @value3: ~"", @value4: ~"") {
|
|
88
|
+
& when (@value2 = ~"") {
|
|
89
|
+
padding: @value1;
|
|
91
90
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
padding: @
|
|
91
|
+
& when not (@value2 = ~"") {
|
|
92
|
+
padding-block: @value1 @value3;
|
|
93
|
+
padding-inline: @value4 @value2;
|
|
95
94
|
}
|
|
96
95
|
}
|
|
97
96
|
|
|
98
97
|
// CSS Logical Properties: https://caniuse.com/css-logical-props
|
|
99
98
|
|
|
100
|
-
.margin(@direction, @value) {
|
|
99
|
+
.margin(@direction, @value, @oppositeValue: ~"") {
|
|
101
100
|
& when (@direction = left) {
|
|
102
101
|
margin-inline-start: @value;
|
|
102
|
+
& when not (@oppositeValue = ~"") {
|
|
103
|
+
[dir="rtl"] & {
|
|
104
|
+
margin-inline-end: @oppositeValue;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
103
107
|
}
|
|
104
108
|
|
|
105
109
|
& when (@direction = right) {
|
|
106
|
-
|
|
110
|
+
margin-inline-end: @value;
|
|
111
|
+
& when not (@oppositeValue = ~"") {
|
|
112
|
+
[dir="rtl"] & {
|
|
113
|
+
margin-inline-start: @oppositeValue;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.margin-for-spacing(@direction, @value) {
|
|
120
|
+
& when (@direction = left) {
|
|
121
|
+
margin-inline-start: @value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
& when (@direction = right) {
|
|
125
|
+
margin-inline-end: @value;
|
|
107
126
|
}
|
|
108
127
|
}
|
|
109
128
|
|
|
@@ -111,29 +130,39 @@
|
|
|
111
130
|
// Use for single value shorthand 'margin: var(--foo);' -> '.margin-shorthand(var(--foo))'
|
|
112
131
|
// Use for multiple value shorthand 'margin: var(--foo1) var(--foo2) var(--foo3) var(--foo4);' -> '.margin-shorthand(var(--foo1), var(--foo2), var(--foo3), var(--foo4))'
|
|
113
132
|
|
|
114
|
-
.margin-shorthand(@value1, @value2: ~
|
|
115
|
-
|
|
116
|
-
margin: @value1
|
|
133
|
+
.margin-shorthand(@value1, @value2: ~"", @value3: ~"", @value4: ~"") {
|
|
134
|
+
& when (@value2 = ~"") {
|
|
135
|
+
margin: @value1;
|
|
117
136
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
margin: @
|
|
137
|
+
& when not (@value2 = ~"") {
|
|
138
|
+
margin-block: @value1 @value3;
|
|
139
|
+
margin-inline: @value4 @value2;
|
|
121
140
|
}
|
|
122
141
|
}
|
|
123
142
|
|
|
124
143
|
// CSS property: inset-inline (positions): https://caniuse.com/mdn-css_properties_inset-inline
|
|
125
144
|
|
|
126
|
-
.left(@value) {
|
|
145
|
+
.left(@value, @oppositeValue: ~"") {
|
|
127
146
|
inset-inline-start: @value;
|
|
147
|
+
& when not (@oppositeValue = ~"") {
|
|
148
|
+
[dir="rtl"] & {
|
|
149
|
+
inset-inline-end: @oppositeValue;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
128
152
|
}
|
|
129
153
|
|
|
130
|
-
.right(@value) {
|
|
154
|
+
.right(@value, @oppositeValue: ~"") {
|
|
131
155
|
inset-inline-end: @value;
|
|
156
|
+
& when not (@oppositeValue = ~"") {
|
|
157
|
+
[dir="rtl"] & {
|
|
158
|
+
inset-inline-start: @oppositeValue;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
132
161
|
}
|
|
133
162
|
|
|
134
163
|
// CSS property: border-inline-start https://caniuse.com/mdn-css_properties_border-inline-start
|
|
135
164
|
|
|
136
|
-
.border(@direction, @size, @style: ~
|
|
165
|
+
.border(@direction, @size, @style: ~"", @color: ~"") {
|
|
137
166
|
& when (@direction = left) {
|
|
138
167
|
border-inline-start: @size @style @color;
|
|
139
168
|
}
|
|
@@ -193,7 +222,7 @@
|
|
|
193
222
|
|
|
194
223
|
// Background position
|
|
195
224
|
|
|
196
|
-
.background-position(@direction, @vertical-direction: ~
|
|
225
|
+
.background-position(@direction, @vertical-direction: ~"") {
|
|
197
226
|
& when (@direction = left) {
|
|
198
227
|
background-position: var(--left) @vertical-direction;
|
|
199
228
|
}
|
|
@@ -215,9 +244,19 @@
|
|
|
215
244
|
}
|
|
216
245
|
}
|
|
217
246
|
|
|
247
|
+
// Rotations
|
|
248
|
+
|
|
249
|
+
.rotate(@deg) {
|
|
250
|
+
[dir="rtl"] & {
|
|
251
|
+
transform: rotate(@deg * -1);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
transform: rotate(@deg);
|
|
255
|
+
}
|
|
256
|
+
|
|
218
257
|
// Horizontal translations
|
|
219
258
|
|
|
220
|
-
.translateX(@value, @transform2: ~
|
|
259
|
+
.translateX(@value, @transform2: ~"", @transform3: ~"") {
|
|
221
260
|
[dir="rtl"] & {
|
|
222
261
|
transform: translateX(@value * -1) @transform2 @transform3;
|
|
223
262
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Custom support for logical properties/values. Select one of the options:
|
|
2
2
|
|
|
3
|
-
// @import
|
|
4
|
-
@import
|
|
5
|
-
|
|
3
|
+
// @import "./_physical-properties.less";
|
|
4
|
+
// @import './_logical-properties-IE-friendly.less';
|
|
5
|
+
@import "../mixins/_logical-properties-modern-browsers.less";
|
package/src/less/modals.less
CHANGED
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
// Automatically set modal's width for larger viewports
|
|
191
191
|
|
|
192
192
|
.modal-dialog {
|
|
193
|
-
width: @
|
|
193
|
+
width: (@screen-sm-min - 36px);
|
|
194
194
|
margin: (@padding-base-vertical * 4) auto;
|
|
195
195
|
}
|
|
196
196
|
|
|
@@ -224,16 +224,16 @@
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
@media (
|
|
227
|
+
@media (--screen-xs) {
|
|
228
228
|
.modal-sm {
|
|
229
|
-
width: @
|
|
229
|
+
width: (@screen-xs-min - 20px);
|
|
230
230
|
margin: (@padding-base-vertical * 4) auto;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
@media (--screen-md) {
|
|
235
235
|
.modal-lg {
|
|
236
|
-
width: @
|
|
236
|
+
width: (@screen-md-min - 16px);
|
|
237
237
|
margin: (@padding-base-vertical * 4) auto;
|
|
238
238
|
}
|
|
239
239
|
}
|
package/src/less/navbar.less
CHANGED
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
// Navbar collapse (body)
|
|
65
65
|
//
|
|
66
66
|
// Group your navbar content into this for easy collapsing and expanding across
|
|
67
|
-
// various device sizes. By default, this content is collapsed when <
|
|
67
|
+
// various device sizes. By default, this content is collapsed when <840px, but
|
|
68
68
|
// will expand past that for a horizontal display.
|
|
69
69
|
//
|
|
70
70
|
// To start (on mobile devices) the navbar links, forms, and buttons are stacked
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
// Navbar nav links
|
|
292
292
|
//
|
|
293
293
|
// Builds on top of the `.nav` components with its own modifier class to make
|
|
294
|
-
// the nav the full height of the horizontal nav (above
|
|
294
|
+
// the nav the full height of the horizontal nav (above 840px).
|
|
295
295
|
|
|
296
296
|
.navbar-nav {
|
|
297
297
|
> li {
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
@import "@transferwise/neptune-tokens/breakpoints.less";
|
|
2
2
|
@import "@transferwise/neptune-tokens/tokens.css";
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
8
|
-
@import
|
|
9
|
-
@import
|
|
10
|
-
@import
|
|
11
|
-
@import
|
|
12
|
-
@import
|
|
13
|
-
@import "./
|
|
14
|
-
@import
|
|
15
|
-
@import "./
|
|
3
|
+
@import "@transferwise/neptune-tokens/themes/personal/tokens.css";
|
|
4
|
+
@import "@transferwise/neptune-tokens/themes/personal--forest-green/tokens.css";
|
|
5
|
+
@import "@transferwise/neptune-tokens/themes/personal--bright-green/tokens.css";
|
|
6
|
+
@import "@transferwise/neptune-tokens/themes/personal--dark/tokens.css";
|
|
7
|
+
@import "@transferwise/neptune-tokens/themes/platform/tokens.css";
|
|
8
|
+
@import "@transferwise/neptune-tokens/themes/platform--forest-green/tokens.css";
|
|
9
|
+
@import "@transferwise/neptune-tokens/themes/business/tokens.css";
|
|
10
|
+
@import "@transferwise/neptune-tokens/themes/business--dark/tokens.css";
|
|
11
|
+
@import "@transferwise/neptune-tokens/themes/business--forest-green/tokens.css";
|
|
12
|
+
@import "@transferwise/neptune-tokens/themes/business--bright-green/tokens.css";
|
|
13
|
+
@import "./core/_fonts.less";
|
|
14
|
+
@import "./core/_scaffolding.less";
|
|
15
|
+
@import "./core/_typography.less";
|
|
16
|
+
@import "./core/_typography-utilities.less";
|
|
17
|
+
@import "./core/viewport-themes.less";
|
|
18
|
+
@import "./addons/_background-utilities.less";
|
|
19
|
+
@import "./addons/_display-utilities.less";
|
|
20
|
+
@import "./addons/_spacing-utilities.less";
|
|
21
|
+
@import "./addons/_border.less";
|
|
16
22
|
|
|
17
23
|
// Components
|
|
18
24
|
@import "./components/_component-animations.less";
|
|
@@ -54,3 +60,5 @@
|
|
|
54
60
|
@import "./tick.less";
|
|
55
61
|
@import "./utilities.less";
|
|
56
62
|
@import "./wells.less";
|
|
63
|
+
|
|
64
|
+
@import "./neptune-social-media.less";
|
package/src/less/table.less
CHANGED
|
@@ -216,7 +216,7 @@ table col[class*="col-"] {
|
|
|
216
216
|
// Responsive tables
|
|
217
217
|
//
|
|
218
218
|
// Wrap your tables in `.table-responsive` and we'll make them mobile friendly
|
|
219
|
-
// by enabling horizontal scrolling. Only applies <
|
|
219
|
+
// by enabling horizontal scrolling. Only applies <840px. Everything above that
|
|
220
220
|
// will display normally.
|
|
221
221
|
|
|
222
222
|
.table-responsive {
|