@transferwise/neptune-css 14.8.2 → 14.9.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.
Files changed (49) hide show
  1. package/dist/css/border-radius.css +8 -0
  2. package/dist/css/flex.css +417 -253
  3. package/dist/css/navbar-base.css +168 -339
  4. package/dist/css/navbar.css +41 -107
  5. package/dist/css/neptune-addons.css +426 -898
  6. package/dist/css/neptune-core.css +163 -200
  7. package/dist/css/neptune.css +14432 -15228
  8. package/dist/css/utilities.css +1202 -72
  9. package/package.json +1 -1
  10. package/src/less/{mixins → addons}/_center-block.less +2 -4
  11. package/src/less/addons/_spacing-utilities.less +3 -26
  12. package/src/less/border-radius.less +1 -3
  13. package/src/less/core/_scaffolding.less +7 -27
  14. package/src/less/core/_typography-utilities.less +17 -237
  15. package/src/less/flex.less +9 -18
  16. package/src/less/navbar.less +10 -2
  17. package/src/less/neptune-addons.less +4 -1
  18. package/src/less/utilities/align-items.less +107 -0
  19. package/src/less/utilities/align-self.less +107 -0
  20. package/src/less/utilities/border-radius.less +11 -0
  21. package/src/less/utilities/color.less +70 -0
  22. package/src/less/utilities/cursor.less +3 -0
  23. package/src/less/utilities/display.less +178 -0
  24. package/src/less/utilities/flex-direction.less +47 -0
  25. package/src/less/utilities/flex-grow.less +27 -0
  26. package/src/less/utilities/flex-wrap.less +47 -0
  27. package/src/less/utilities/float.less +77 -0
  28. package/src/less/utilities/font-weight.less +11 -0
  29. package/src/less/utilities/gap.less +3 -0
  30. package/src/less/utilities/justify-content.less +107 -0
  31. package/src/less/utilities/margin.less +192 -0
  32. package/src/less/utilities/max-width.less +3 -0
  33. package/src/less/utilities/order.less +87 -0
  34. package/src/less/utilities/outline-style.less +8 -0
  35. package/src/less/utilities/overflow-wrap.less +3 -0
  36. package/src/less/utilities/padding.less +179 -0
  37. package/src/less/utilities/position.less +3 -0
  38. package/src/less/utilities/rotate.less +12 -0
  39. package/src/less/utilities/screen-reader.less +24 -0
  40. package/src/less/utilities/text-align.less +87 -0
  41. package/src/less/utilities/text-decoration-line.less +8 -0
  42. package/src/less/utilities/text-overflow.less +7 -0
  43. package/src/less/utilities/text-transform.less +11 -0
  44. package/src/less/utilities/visibility.less +3 -0
  45. package/src/less/utilities/white-space.less +27 -0
  46. package/src/less/utilities.less +29 -141
  47. package/src/less/addons/_display-utilities.less +0 -159
  48. package/src/less/addons/_utilities.less +0 -147
  49. package/src/less/mixins/_flex.less +0 -105
package/dist/css/flex.css CHANGED
@@ -1,30 +1,4 @@
1
- .d-flex {
2
- display: flex;
3
- }
4
- .d-inline-flex {
5
- display: inline-flex;
6
- }
7
- .flex-column {
8
- flex-direction: column;
9
- }
10
- .flex-row {
11
- flex-direction: row;
12
- }
13
- .justify-content-start {
14
- justify-content: flex-start;
15
- }
16
- .justify-content-end {
17
- justify-content: flex-end;
18
- }
19
- .justify-content-center {
20
- justify-content: center;
21
- }
22
- .justify-content-between {
23
- justify-content: space-between;
24
- }
25
- .justify-content-around {
26
- justify-content: space-around;
27
- }
1
+ /* TODO: Remove utility imports to prevent duplicates */
28
2
  .align-items-start {
29
3
  align-items: flex-start;
30
4
  }
@@ -40,6 +14,74 @@
40
14
  .align-items-stretch {
41
15
  align-items: stretch;
42
16
  }
17
+ @media (min-width: 576px) {
18
+ .align-items-start--sm {
19
+ align-items: flex-start;
20
+ }
21
+ .align-items-end--sm {
22
+ align-items: flex-end;
23
+ }
24
+ .align-items-center--sm {
25
+ align-items: center;
26
+ }
27
+ .align-items-baseline--sm {
28
+ align-items: baseline;
29
+ }
30
+ .align-items-stretch--sm {
31
+ align-items: stretch;
32
+ }
33
+ }
34
+ @media (min-width: 768px) {
35
+ .align-items-start--md {
36
+ align-items: flex-start;
37
+ }
38
+ .align-items-end--md {
39
+ align-items: flex-end;
40
+ }
41
+ .align-items-center--md {
42
+ align-items: center;
43
+ }
44
+ .align-items-baseline--md {
45
+ align-items: baseline;
46
+ }
47
+ .align-items-stretch--md {
48
+ align-items: stretch;
49
+ }
50
+ }
51
+ @media (min-width: 992px) {
52
+ .align-items-start--lg {
53
+ align-items: flex-start;
54
+ }
55
+ .align-items-end--lg {
56
+ align-items: flex-end;
57
+ }
58
+ .align-items-center--lg {
59
+ align-items: center;
60
+ }
61
+ .align-items-baseline--lg {
62
+ align-items: baseline;
63
+ }
64
+ .align-items-stretch--lg {
65
+ align-items: stretch;
66
+ }
67
+ }
68
+ @media (min-width: 1200px) {
69
+ .align-items-start--xl {
70
+ align-items: flex-start;
71
+ }
72
+ .align-items-end--xl {
73
+ align-items: flex-end;
74
+ }
75
+ .align-items-center--xl {
76
+ align-items: center;
77
+ }
78
+ .align-items-baseline--xl {
79
+ align-items: baseline;
80
+ }
81
+ .align-items-stretch--xl {
82
+ align-items: stretch;
83
+ }
84
+ }
43
85
  .align-self-start {
44
86
  align-self: flex-start;
45
87
  }
@@ -49,32 +91,134 @@
49
91
  .align-self-center {
50
92
  align-self: center;
51
93
  }
94
+ .align-self-stretch {
95
+ align-self: stretch;
96
+ }
52
97
  .align-self-baseline {
53
98
  align-self: baseline;
54
99
  }
55
- .align-self-stretch {
56
- align-self: stretch;
100
+ @media (min-width: 576px) {
101
+ .align-self-start--sm {
102
+ align-self: flex-start;
103
+ }
104
+ .align-self-end--sm {
105
+ align-self: flex-end;
106
+ }
107
+ .align-self-center--sm {
108
+ align-self: center;
109
+ }
110
+ .align-self-stretch--sm {
111
+ align-self: stretch;
112
+ }
113
+ .align-self-baseline--sm {
114
+ align-self: baseline;
115
+ }
57
116
  }
58
- .flex-nowrap {
59
- flex-wrap: nowrap;
117
+ @media (min-width: 768px) {
118
+ .align-self-start--md {
119
+ align-self: flex-start;
120
+ }
121
+ .align-self-end--md {
122
+ align-self: flex-end;
123
+ }
124
+ .align-self-center--md {
125
+ align-self: center;
126
+ }
127
+ .align-self-stretch--md {
128
+ align-self: stretch;
129
+ }
130
+ .align-self-baseline--md {
131
+ align-self: baseline;
132
+ }
60
133
  }
61
- .flex-wrap {
62
- flex-wrap: wrap;
134
+ @media (min-width: 992px) {
135
+ .align-self-start--lg {
136
+ align-self: flex-start;
137
+ }
138
+ .align-self-end--lg {
139
+ align-self: flex-end;
140
+ }
141
+ .align-self-center--lg {
142
+ align-self: center;
143
+ }
144
+ .align-self-stretch--lg {
145
+ align-self: stretch;
146
+ }
147
+ .align-self-baseline--lg {
148
+ align-self: baseline;
149
+ }
63
150
  }
64
- .order-0 {
65
- order: 0;
151
+ @media (min-width: 1200px) {
152
+ .align-self-start--xl {
153
+ align-self: flex-start;
154
+ }
155
+ .align-self-end--xl {
156
+ align-self: flex-end;
157
+ }
158
+ .align-self-center--xl {
159
+ align-self: center;
160
+ }
161
+ .align-self-stretch--xl {
162
+ align-self: stretch;
163
+ }
164
+ .align-self-baseline--xl {
165
+ align-self: baseline;
166
+ }
66
167
  }
67
- .order-1 {
68
- order: 1;
168
+ .d-block,
169
+ .show {
170
+ display: block !important;
69
171
  }
70
- .order-2 {
71
- order: 2;
172
+ .d-inline-block {
173
+ display: inline-block !important;
72
174
  }
73
- .order-3 {
74
- order: 3;
175
+ .d-inline {
176
+ display: inline;
75
177
  }
76
- .flex-grow-1 {
77
- flex-grow: 1;
178
+ .d-flex {
179
+ display: flex;
180
+ }
181
+ .d-inline-flex {
182
+ display: inline-flex;
183
+ }
184
+ .hidden,
185
+ .hide,
186
+ .visible-xs,
187
+ .visible-xs-block,
188
+ .visible-xs-inline-block,
189
+ .visible-xs-inline,
190
+ .visible-sm,
191
+ .visible-sm-block,
192
+ .visible-sm-inline-block,
193
+ .visible-sm-inline,
194
+ .visible-md,
195
+ .visible-md-block,
196
+ .visible-md-inline-block,
197
+ .visible-md-inline,
198
+ .visible-lg,
199
+ .visible-lg-block,
200
+ .visible-lg-inline-block,
201
+ .visible-lg-inline,
202
+ .visible-xl,
203
+ .visible-xl-block,
204
+ .visible-xl-inline-block,
205
+ .visible-xl-inline {
206
+ display: none !important;
207
+ }
208
+ @media not all and (min-width: 576px) {
209
+ .hidden-xs {
210
+ display: none !important;
211
+ }
212
+ .visible-xs,
213
+ .visible-xs-block {
214
+ display: block !important;
215
+ }
216
+ .visible-xs-inline-block {
217
+ display: inline-block !important;
218
+ }
219
+ .visible-xs-inline {
220
+ display: inline !important;
221
+ }
78
222
  }
79
223
  @media (min-width: 576px) {
80
224
  .d-flex--sm {
@@ -83,92 +227,221 @@
83
227
  .d-inline-flex--sm {
84
228
  display: inline-flex;
85
229
  }
86
- .flex-column--sm {
87
- flex-direction: column;
230
+ }
231
+ @media (min-width: 576px) and not all and (min-width: 768px) {
232
+ .hidden-sm {
233
+ display: none !important;
234
+ }
235
+ .visible-sm,
236
+ .visible-sm-block {
237
+ display: block !important;
88
238
  }
239
+ .visible-sm-inline-block {
240
+ display: inline-block !important;
241
+ }
242
+ .visible-sm-inline {
243
+ display: inline !important;
244
+ }
245
+ }
246
+ @media (min-width: 768px) {
247
+ .d-flex--md {
248
+ display: flex;
249
+ }
250
+ .d-inline-flex--md {
251
+ display: inline-flex;
252
+ }
253
+ }
254
+ @media (min-width: 768px) and not all and (min-width: 992px) {
255
+ .hidden-md {
256
+ display: none !important;
257
+ }
258
+ .visible-md,
259
+ .visible-md-block {
260
+ display: block !important;
261
+ }
262
+ .visible-md-inline-block {
263
+ display: inline-block !important;
264
+ }
265
+ .visible-md-inline {
266
+ display: inline !important;
267
+ }
268
+ }
269
+ @media (min-width: 992px) {
270
+ .d-flex--lg {
271
+ display: flex;
272
+ }
273
+ .d-inline-flex--lg {
274
+ display: inline-flex;
275
+ }
276
+ }
277
+ @media (min-width: 992px) and not all and (min-width: 1200px) {
278
+ .hidden-lg {
279
+ display: none !important;
280
+ }
281
+ .visible-lg,
282
+ .visible-lg-block {
283
+ display: block !important;
284
+ }
285
+ .visible-lg-inline-block {
286
+ display: inline-block !important;
287
+ }
288
+ .visible-lg-inline {
289
+ display: inline !important;
290
+ }
291
+ }
292
+ @media (min-width: 1200px) {
293
+ .d-flex--xl {
294
+ display: flex;
295
+ }
296
+ .d-inline-flex--xl {
297
+ display: inline-flex;
298
+ }
299
+ .hidden-xl {
300
+ display: none !important;
301
+ }
302
+ .visible-xl,
303
+ .visible-xl-block {
304
+ display: block !important;
305
+ }
306
+ .visible-xl-inline-block {
307
+ display: inline-block !important;
308
+ }
309
+ .visible-xl-inline {
310
+ display: inline !important;
311
+ }
312
+ }
313
+ .flex-row {
314
+ flex-direction: row;
315
+ }
316
+ .flex-column {
317
+ flex-direction: column;
318
+ }
319
+ @media (min-width: 576px) {
89
320
  .flex-row--sm {
90
321
  flex-direction: row;
91
322
  }
92
- .justify-content-start--sm {
93
- justify-content: flex-start;
323
+ .flex-column--sm {
324
+ flex-direction: column;
94
325
  }
95
- .justify-content-end--sm {
96
- justify-content: flex-end;
326
+ }
327
+ @media (min-width: 768px) {
328
+ .flex-row--md {
329
+ flex-direction: row;
97
330
  }
98
- .justify-content-center--sm {
99
- justify-content: center;
331
+ .flex-column--md {
332
+ flex-direction: column;
100
333
  }
101
- .justify-content-between--sm {
102
- justify-content: space-between;
334
+ }
335
+ @media (min-width: 992px) {
336
+ .flex-row--lg {
337
+ flex-direction: row;
103
338
  }
104
- .justify-content-around--sm {
105
- justify-content: space-around;
339
+ .flex-column--lg {
340
+ flex-direction: column;
106
341
  }
107
- .align-items-start--sm {
108
- align-items: flex-start;
342
+ }
343
+ @media (min-width: 1200px) {
344
+ .flex-row--xl {
345
+ flex-direction: row;
109
346
  }
110
- .align-items-end--sm {
111
- align-items: flex-end;
347
+ .flex-column--xl {
348
+ flex-direction: column;
112
349
  }
113
- .align-items-center--sm {
114
- align-items: center;
350
+ }
351
+ .flex-grow-1 {
352
+ flex-grow: 1;
353
+ }
354
+ @media (min-width: 576px) {
355
+ .flex-grow-1--sm {
356
+ flex-grow: 1;
115
357
  }
116
- .align-items-baseline--sm {
117
- align-items: baseline;
358
+ }
359
+ @media (min-width: 768px) {
360
+ .flex-grow-1--md {
361
+ flex-grow: 1;
118
362
  }
119
- .align-items-stretch--sm {
120
- align-items: stretch;
363
+ }
364
+ @media (min-width: 992px) {
365
+ .flex-grow-1--lg {
366
+ flex-grow: 1;
121
367
  }
122
- .align-self-start--sm {
123
- align-self: flex-start;
368
+ }
369
+ @media (min-width: 1200px) {
370
+ .flex-grow-1--xl {
371
+ flex-grow: 1;
124
372
  }
125
- .align-self-end--sm {
126
- align-self: flex-end;
373
+ }
374
+ .flex-wrap {
375
+ flex-wrap: wrap;
376
+ }
377
+ .flex-nowrap {
378
+ flex-wrap: nowrap;
379
+ }
380
+ @media (min-width: 576px) {
381
+ .flex-wrap--sm {
382
+ flex-wrap: wrap;
127
383
  }
128
- .align-self-center--sm {
129
- align-self: center;
384
+ .flex-nowrap--sm {
385
+ flex-wrap: nowrap;
130
386
  }
131
- .align-self-baseline--sm {
132
- align-self: baseline;
387
+ }
388
+ @media (min-width: 768px) {
389
+ .flex-wrap--md {
390
+ flex-wrap: wrap;
133
391
  }
134
- .align-self-stretch--sm {
135
- align-self: stretch;
392
+ .flex-nowrap--md {
393
+ flex-wrap: nowrap;
136
394
  }
137
- .flex-nowrap--sm {
395
+ }
396
+ @media (min-width: 992px) {
397
+ .flex-wrap--lg {
398
+ flex-wrap: wrap;
399
+ }
400
+ .flex-nowrap--lg {
138
401
  flex-wrap: nowrap;
139
402
  }
140
- .flex-wrap--sm {
403
+ }
404
+ @media (min-width: 1200px) {
405
+ .flex-wrap--xl {
141
406
  flex-wrap: wrap;
142
407
  }
143
- .order-0--sm {
144
- order: 0;
408
+ .flex-nowrap--xl {
409
+ flex-wrap: nowrap;
145
410
  }
146
- .order-1--sm {
147
- order: 1;
411
+ }
412
+ .justify-content-start {
413
+ justify-content: flex-start;
414
+ }
415
+ .justify-content-end {
416
+ justify-content: flex-end;
417
+ }
418
+ .justify-content-center {
419
+ justify-content: center;
420
+ }
421
+ .justify-content-between {
422
+ justify-content: space-between;
423
+ }
424
+ .justify-content-around {
425
+ justify-content: space-around;
426
+ }
427
+ @media (min-width: 576px) {
428
+ .justify-content-start--sm {
429
+ justify-content: flex-start;
148
430
  }
149
- .order-2--sm {
150
- order: 2;
431
+ .justify-content-end--sm {
432
+ justify-content: flex-end;
151
433
  }
152
- .order-3--sm {
153
- order: 3;
434
+ .justify-content-center--sm {
435
+ justify-content: center;
154
436
  }
155
- .flex-grow-1--sm {
156
- flex-grow: 1;
437
+ .justify-content-between--sm {
438
+ justify-content: space-between;
439
+ }
440
+ .justify-content-around--sm {
441
+ justify-content: space-around;
157
442
  }
158
443
  }
159
444
  @media (min-width: 768px) {
160
- .d-flex--md {
161
- display: flex;
162
- }
163
- .d-inline-flex--md {
164
- display: inline-flex;
165
- }
166
- .flex-column--md {
167
- flex-direction: column;
168
- }
169
- .flex-row--md {
170
- flex-direction: row;
171
- }
172
445
  .justify-content-start--md {
173
446
  justify-content: flex-start;
174
447
  }
@@ -184,71 +457,8 @@
184
457
  .justify-content-around--md {
185
458
  justify-content: space-around;
186
459
  }
187
- .align-items-start--md {
188
- align-items: flex-start;
189
- }
190
- .align-items-end--md {
191
- align-items: flex-end;
192
- }
193
- .align-items-center--md {
194
- align-items: center;
195
- }
196
- .align-items-baseline--md {
197
- align-items: baseline;
198
- }
199
- .align-items-stretch--md {
200
- align-items: stretch;
201
- }
202
- .align-self-start--md {
203
- align-self: flex-start;
204
- }
205
- .align-self-end--md {
206
- align-self: flex-end;
207
- }
208
- .align-self-center--md {
209
- align-self: center;
210
- }
211
- .align-self-baseline--md {
212
- align-self: baseline;
213
- }
214
- .align-self-stretch--md {
215
- align-self: stretch;
216
- }
217
- .flex-nowrap--md {
218
- flex-wrap: nowrap;
219
- }
220
- .flex-wrap--md {
221
- flex-wrap: wrap;
222
- }
223
- .order-0--md {
224
- order: 0;
225
- }
226
- .order-1--md {
227
- order: 1;
228
- }
229
- .order-2--md {
230
- order: 2;
231
- }
232
- .order-3--md {
233
- order: 3;
234
- }
235
- .flex-grow-1--md {
236
- flex-grow: 1;
237
- }
238
460
  }
239
461
  @media (min-width: 992px) {
240
- .d-flex--lg {
241
- display: flex;
242
- }
243
- .d-inline-flex--lg {
244
- display: inline-flex;
245
- }
246
- .flex-column--lg {
247
- flex-direction: column;
248
- }
249
- .flex-row--lg {
250
- flex-direction: row;
251
- }
252
462
  .justify-content-start--lg {
253
463
  justify-content: flex-start;
254
464
  }
@@ -264,71 +474,8 @@
264
474
  .justify-content-around--lg {
265
475
  justify-content: space-around;
266
476
  }
267
- .align-items-start--lg {
268
- align-items: flex-start;
269
- }
270
- .align-items-end--lg {
271
- align-items: flex-end;
272
- }
273
- .align-items-center--lg {
274
- align-items: center;
275
- }
276
- .align-items-baseline--lg {
277
- align-items: baseline;
278
- }
279
- .align-items-stretch--lg {
280
- align-items: stretch;
281
- }
282
- .align-self-start--lg {
283
- align-self: flex-start;
284
- }
285
- .align-self-end--lg {
286
- align-self: flex-end;
287
- }
288
- .align-self-center--lg {
289
- align-self: center;
290
- }
291
- .align-self-baseline--lg {
292
- align-self: baseline;
293
- }
294
- .align-self-stretch--lg {
295
- align-self: stretch;
296
- }
297
- .flex-nowrap--lg {
298
- flex-wrap: nowrap;
299
- }
300
- .flex-wrap--lg {
301
- flex-wrap: wrap;
302
- }
303
- .order-0--lg {
304
- order: 0;
305
- }
306
- .order-1--lg {
307
- order: 1;
308
- }
309
- .order-2--lg {
310
- order: 2;
311
- }
312
- .order-3--lg {
313
- order: 3;
314
- }
315
- .flex-grow-1--lg {
316
- flex-grow: 1;
317
- }
318
477
  }
319
478
  @media (min-width: 1200px) {
320
- .d-flex--xl {
321
- display: flex;
322
- }
323
- .d-inline-flex--xl {
324
- display: inline-flex;
325
- }
326
- .flex-column--xl {
327
- flex-direction: column;
328
- }
329
- .flex-row--xl {
330
- flex-direction: row;
331
- }
332
479
  .justify-content-start--xl {
333
480
  justify-content: flex-start;
334
481
  }
@@ -344,45 +491,62 @@
344
491
  .justify-content-around--xl {
345
492
  justify-content: space-around;
346
493
  }
347
- .align-items-start--xl {
348
- align-items: flex-start;
349
- }
350
- .align-items-end--xl {
351
- align-items: flex-end;
494
+ }
495
+ .order-1 {
496
+ order: 1;
497
+ }
498
+ .order-2 {
499
+ order: 2;
500
+ }
501
+ .order-3 {
502
+ order: 3;
503
+ }
504
+ .order-0 {
505
+ order: 0;
506
+ }
507
+ @media (min-width: 576px) {
508
+ .order-1--sm {
509
+ order: 1;
352
510
  }
353
- .align-items-center--xl {
354
- align-items: center;
511
+ .order-2--sm {
512
+ order: 2;
355
513
  }
356
- .align-items-baseline--xl {
357
- align-items: baseline;
514
+ .order-3--sm {
515
+ order: 3;
358
516
  }
359
- .align-items-stretch--xl {
360
- align-items: stretch;
517
+ .order-0--sm {
518
+ order: 0;
361
519
  }
362
- .align-self-start--xl {
363
- align-self: flex-start;
520
+ }
521
+ @media (min-width: 768px) {
522
+ .order-1--md {
523
+ order: 1;
364
524
  }
365
- .align-self-end--xl {
366
- align-self: flex-end;
525
+ .order-2--md {
526
+ order: 2;
367
527
  }
368
- .align-self-center--xl {
369
- align-self: center;
528
+ .order-3--md {
529
+ order: 3;
370
530
  }
371
- .align-self-baseline--xl {
372
- align-self: baseline;
531
+ .order-0--md {
532
+ order: 0;
373
533
  }
374
- .align-self-stretch--xl {
375
- align-self: stretch;
534
+ }
535
+ @media (min-width: 992px) {
536
+ .order-1--lg {
537
+ order: 1;
376
538
  }
377
- .flex-nowrap--xl {
378
- flex-wrap: nowrap;
539
+ .order-2--lg {
540
+ order: 2;
379
541
  }
380
- .flex-wrap--xl {
381
- flex-wrap: wrap;
542
+ .order-3--lg {
543
+ order: 3;
382
544
  }
383
- .order-0--xl {
545
+ .order-0--lg {
384
546
  order: 0;
385
547
  }
548
+ }
549
+ @media (min-width: 1200px) {
386
550
  .order-1--xl {
387
551
  order: 1;
388
552
  }
@@ -392,8 +556,8 @@
392
556
  .order-3--xl {
393
557
  order: 3;
394
558
  }
395
- .flex-grow-1--xl {
396
- flex-grow: 1;
559
+ .order-0--xl {
560
+ order: 0;
397
561
  }
398
562
  }
399
563
  /* Items */