@transferwise/neptune-css 0.0.0-experimental-aabbb4a → 0.0.0-experimental-8b73066
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 +4 -4
- package/dist/css/button-groups.css +6 -6
- package/dist/css/buttons.css +1 -1
- package/dist/css/circles.css +1 -1
- package/dist/css/column-layout.css +4 -4
- package/dist/css/decision.css +4 -4
- package/dist/css/dropdowns.css +10 -10
- package/dist/css/droppable.css +8 -8
- package/dist/css/flex.css +15 -13
- package/dist/css/footer.css +3 -3
- package/dist/css/grid.css +19 -19
- package/dist/css/input-groups.css +12 -12
- package/dist/css/list-group.css +8 -8
- package/dist/css/modals.css +3 -3
- package/dist/css/navbar.css +62 -62
- package/dist/css/navs.css +2 -2
- package/dist/css/neptune-addons.css +53 -37
- package/dist/css/neptune-core.css +58 -28
- package/dist/css/neptune.css +350 -532
- package/dist/css/panels.css +9 -9
- package/dist/css/popovers.css +13 -13
- package/dist/css/select.css +1 -1
- package/dist/css/sequences.css +6 -6
- package/dist/css/table.css +6 -6
- package/dist/css/utilities.css +20 -8
- package/dist/css/wells.css +18 -4
- package/dist/less/legacy-variables.less +47 -34
- package/dist/less/neptune-tokens.less +2 -2
- package/dist/props/custom-media.css +11 -23
- package/dist/props/neptune-tokens.css +1 -1
- package/package.json +2 -2
- package/src/less/addons/_display-utilities.less +27 -13
- package/src/less/core/_typography-utilities.less +22 -10
- package/src/less/core/_typography.less +28 -6
- package/src/less/flex.less +3 -1
- package/src/less/neptune.bundle.less +0 -1
- package/src/less/popovers.less +6 -6
- package/src/less/utilities.less +14 -6
- package/src/less/wells.less +5 -3
- package/src/props/custom-media.css +11 -1
- package/src/variables/legacy-variables.less +47 -4
|
@@ -8,7 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
/* DEPRECATED: use .np-text-*-title instead */
|
|
10
10
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
11
|
-
.h1,
|
|
11
|
+
.h1,
|
|
12
|
+
.h2,
|
|
13
|
+
.h3,
|
|
14
|
+
.h4,
|
|
15
|
+
.h5,
|
|
16
|
+
.h6,
|
|
17
|
+
.title-1,
|
|
18
|
+
.title-2,
|
|
19
|
+
.title-3,
|
|
20
|
+
.title-4,
|
|
21
|
+
.title-5,
|
|
12
22
|
h1,
|
|
13
23
|
h2,
|
|
14
24
|
h3,
|
|
@@ -114,8 +124,12 @@ h6,
|
|
|
114
124
|
|
|
115
125
|
/* DEPRECATED: use .np-text-body-default instead */
|
|
116
126
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
117
|
-
.body-2,
|
|
118
|
-
body,
|
|
127
|
+
.body-2,
|
|
128
|
+
.body-3,
|
|
129
|
+
.small,
|
|
130
|
+
.tiny,
|
|
131
|
+
body,
|
|
132
|
+
small,
|
|
119
133
|
.np-text-body-default {
|
|
120
134
|
font-size: var(--font-size-14);
|
|
121
135
|
line-height: 155%;
|
|
@@ -139,7 +153,8 @@ body, small,
|
|
|
139
153
|
|
|
140
154
|
/* DEPRECATED: use .np-text-body-large instead */
|
|
141
155
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
142
|
-
.body-1,
|
|
156
|
+
.body-1,
|
|
157
|
+
.value,
|
|
143
158
|
.np-text-body-large {
|
|
144
159
|
font-weight: var(--font-weight-regular);
|
|
145
160
|
font-size: var(--font-size-16);
|
|
@@ -204,8 +219,11 @@ a,
|
|
|
204
219
|
.np-text-display-large,
|
|
205
220
|
.np-text-display-medium,
|
|
206
221
|
.np-text-display-small {
|
|
207
|
-
|
|
208
|
-
|
|
222
|
+
&,
|
|
223
|
+
&--forced {
|
|
224
|
+
font-family: var(--font-family-display);
|
|
225
|
+
font-synthesis: none;
|
|
226
|
+
}
|
|
209
227
|
|
|
210
228
|
:lang(ja) &,
|
|
211
229
|
:lang(th) &,
|
|
@@ -216,8 +234,12 @@ a,
|
|
|
216
234
|
* of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
|
|
217
235
|
* font files are browser-cached and we carried over to launchpad, where it causes issues
|
|
218
236
|
* for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
|
|
237
|
+
* There are exceptions for small UI parts where Wise Sans is fine or expected — e.g. the
|
|
238
|
+
* numeric input of ExpressiveMoneyInput.
|
|
239
|
+
* Add `--forced` BEM modifier to the original class name to guarantee it.
|
|
219
240
|
*/
|
|
220
241
|
font-family: var(--font-family-regular);
|
|
242
|
+
line-height: var(--line-height-title);
|
|
221
243
|
}
|
|
222
244
|
}
|
|
223
245
|
|
package/src/less/flex.less
CHANGED
package/src/less/popovers.less
CHANGED
|
@@ -335,13 +335,13 @@
|
|
|
335
335
|
text-align: center;
|
|
336
336
|
padding: var(--size-24);
|
|
337
337
|
|
|
338
|
-
@media (
|
|
338
|
+
@media (max-width: @screen-sm-min) {
|
|
339
339
|
width: auto !important;
|
|
340
340
|
padding: var(--size-24) !important;
|
|
341
341
|
margin: var(--size-16) !important;
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
@media (min-width: (@screen-sm-min - 10px)) and (
|
|
344
|
+
@media (min-width: (@screen-sm-min - 10px)) and (max-width: @screen-lg-min) {
|
|
345
345
|
width: 540px !important;
|
|
346
346
|
padding: 28px var(--size-32) !important;
|
|
347
347
|
margin: var(--size-32) auto !important;
|
|
@@ -351,18 +351,18 @@
|
|
|
351
351
|
font-size: var(--font-size-16);
|
|
352
352
|
line-height: var(--line-height-title);
|
|
353
353
|
|
|
354
|
-
@media (
|
|
354
|
+
@media (min-width: @screen-md-min) {
|
|
355
355
|
font-size: var(--font-size-20);
|
|
356
356
|
line-height: var(--line-height-title);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
.popover-image {
|
|
361
|
-
@media (
|
|
361
|
+
@media (max-width: @screen-xs-min) {
|
|
362
362
|
width: 80%;
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
-
@media (
|
|
365
|
+
@media (min-width: @screen-xs-min) and (max-width: @screen-lg-min) {
|
|
366
366
|
width: 60%;
|
|
367
367
|
}
|
|
368
368
|
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
@media (
|
|
375
|
+
@media (max-width: @screen-lg-min) {
|
|
376
376
|
.popover-promotion {
|
|
377
377
|
position: absolute !important;
|
|
378
378
|
}
|
package/src/less/utilities.less
CHANGED
|
@@ -63,20 +63,28 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
@media (--screen-lg) {
|
|
66
|
-
.pull-lg-left
|
|
67
|
-
|
|
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) {
|
|
68
80
|
.pull-xl-left {
|
|
69
81
|
.float(left) !important;
|
|
70
82
|
}
|
|
71
83
|
|
|
72
|
-
.pull-lg-right,
|
|
73
|
-
/// @deprecated
|
|
74
84
|
.pull-xl-right {
|
|
75
85
|
.float(right) !important;
|
|
76
86
|
}
|
|
77
87
|
|
|
78
|
-
.pull-lg-none,
|
|
79
|
-
/// @deprecated
|
|
80
88
|
.pull-xl-none {
|
|
81
89
|
float: none !important;
|
|
82
90
|
}
|
package/src/less/wells.less
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
@
|
|
1
|
+
@custom-media --screen-xs (min-width: 480px);
|
|
2
|
+
@custom-media --screen-xs-max (max-width: 575px); /* --screen-sm - 1 */
|
|
3
|
+
@custom-media --screen-sm (min-width: 576px);
|
|
4
|
+
@custom-media --screen-sm-max (max-width: 767px); /* --screen-md - 1 */
|
|
5
|
+
@custom-media --screen-md (min-width: 768px);
|
|
6
|
+
@custom-media --screen-md-max (max-width: 991px); /* --screen-lg - 1 */
|
|
7
|
+
@custom-media --screen-lg (min-width: 992px);
|
|
8
|
+
@custom-media --screen-lg-max (max-width: 1199px); /* --screen-xl - 1 */
|
|
9
|
+
@custom-media --screen-xl (min-width: 1200px);
|
|
10
|
+
|
|
11
|
+
@custom-media --screen-400-zoom (max-width: 320px); /* ~400% zoom viewport */
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
// Variables
|
|
3
3
|
// --------------------------------------------------
|
|
4
4
|
|
|
5
|
-
//== Media queries breakpoints
|
|
6
|
-
@import "@transferwise/neptune-tokens/breakpoints.less";
|
|
7
|
-
|
|
8
5
|
//== Colors
|
|
9
6
|
// Deprecated use Neptune Colors https://transferwise.github.io/neptune-web/styles/tokens/Colors
|
|
10
7
|
//
|
|
@@ -591,6 +588,52 @@
|
|
|
591
588
|
@zindex-mobile-nav: 1060;
|
|
592
589
|
|
|
593
590
|
|
|
591
|
+
//== Media queries breakpoints
|
|
592
|
+
//
|
|
593
|
+
//## Define the breakpoints at which your layout will change, adapting to different screen sizes.
|
|
594
|
+
|
|
595
|
+
// Extra small screen / phone
|
|
596
|
+
//** Deprecated `@screen-xs` as of v3.0.1
|
|
597
|
+
@screen-xs: 480px;
|
|
598
|
+
//** Deprecated `@screen-xs-min` as of v3.2.0
|
|
599
|
+
@screen-xs-min: @screen-xs;
|
|
600
|
+
//** Deprecated `@screen-phone` as of v3.0.1
|
|
601
|
+
@screen-phone: @screen-xs-min;
|
|
602
|
+
|
|
603
|
+
// Small screen / tablet
|
|
604
|
+
//** Deprecated `@screen-sm` as of v3.0.1
|
|
605
|
+
@screen-sm: 576px;
|
|
606
|
+
@screen-sm-min: @screen-sm;
|
|
607
|
+
//** Deprecated `@screen-tablet` as of v3.0.1
|
|
608
|
+
@screen-tablet: @screen-sm-min;
|
|
609
|
+
|
|
610
|
+
// Medium screen / desktop
|
|
611
|
+
//** Deprecated `@screen-md` as of v3.0.1
|
|
612
|
+
@screen-md: 768px;
|
|
613
|
+
@screen-md-min: @screen-md;
|
|
614
|
+
//** Deprecated `@screen-desktop` as of v3.0.1
|
|
615
|
+
@screen-desktop: @screen-md-min;
|
|
616
|
+
|
|
617
|
+
// Large screen / wide desktop
|
|
618
|
+
//** Deprecated `@screen-lg` as of v3.0.1
|
|
619
|
+
@screen-lg: 992px;
|
|
620
|
+
@screen-lg-min: @screen-lg;
|
|
621
|
+
//** Deprecated `@screen-lg-desktop` as of v3.0.1
|
|
622
|
+
@screen-lg-desktop: @screen-lg-min;
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
// Extra Large screen / wide desktop
|
|
626
|
+
//** Deprecated `@screen-lg` as of v3.0.1
|
|
627
|
+
@screen-xl: 1200px;
|
|
628
|
+
@screen-xl-min: @screen-xl;
|
|
629
|
+
|
|
630
|
+
// So media queries don't overlap when required, provide a maximum
|
|
631
|
+
@screen-xs-max: (@screen-sm-min - 1);
|
|
632
|
+
@screen-sm-max: (@screen-md-min - 1);
|
|
633
|
+
@screen-md-max: (@screen-lg-min - 1);
|
|
634
|
+
@screen-lg-max: (@screen-xl-min - 1);
|
|
635
|
+
|
|
636
|
+
|
|
594
637
|
//== Grid system
|
|
595
638
|
//
|
|
596
639
|
//## Define your custom responsive grid.
|
|
@@ -1253,4 +1296,4 @@
|
|
|
1253
1296
|
@decision-focus-transition: @transition-duration;
|
|
1254
1297
|
@decision-padding-md: 12px;
|
|
1255
1298
|
@decision-padding-lg: 24px;
|
|
1256
|
-
@decision-border: 1px solid @brand-smoke-plus-10;
|
|
1299
|
+
@decision-border: 1px solid @brand-smoke-plus-10;
|