@transferwise/neptune-css 0.0.0-experimental-fdc8cd1 → 0.0.0-experimental-b72c414
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 +13 -15
- 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 +37 -53
- package/dist/css/neptune-core.css +28 -58
- package/dist/css/neptune.css +257 -339
- 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 +8 -20
- package/dist/css/wells.css +4 -18
- package/dist/less/legacy-variables.less +34 -47
- package/dist/props/custom-media.css +23 -11
- package/package.json +1 -1
- package/src/less/addons/_display-utilities.less +13 -27
- package/src/less/core/_typography-utilities.less +10 -22
- package/src/less/core/_typography.less +6 -28
- package/src/less/flex.less +1 -3
- package/src/less/neptune.bundle.less +1 -0
- package/src/less/popovers.less +6 -6
- package/src/less/utilities.less +6 -14
- package/src/less/wells.less +3 -5
- package/src/props/custom-media.css +1 -11
- package/src/variables/legacy-variables.less +4 -47
|
@@ -8,17 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
/* DEPRECATED: use .np-text-*-title instead */
|
|
10
10
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
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,
|
|
11
|
+
.h1, .h2, .h3, .h4, .h5, .h6, .title-1, .title-2, .title-3, .title-4, .title-5,
|
|
22
12
|
h1,
|
|
23
13
|
h2,
|
|
24
14
|
h3,
|
|
@@ -124,12 +114,8 @@ h6,
|
|
|
124
114
|
|
|
125
115
|
/* DEPRECATED: use .np-text-body-default instead */
|
|
126
116
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
127
|
-
.body-2,
|
|
128
|
-
|
|
129
|
-
.small,
|
|
130
|
-
.tiny,
|
|
131
|
-
body,
|
|
132
|
-
small,
|
|
117
|
+
.body-2, .body-3, .small, .tiny,
|
|
118
|
+
body, small,
|
|
133
119
|
.np-text-body-default {
|
|
134
120
|
font-size: var(--font-size-14);
|
|
135
121
|
line-height: 155%;
|
|
@@ -153,8 +139,7 @@ small,
|
|
|
153
139
|
|
|
154
140
|
/* DEPRECATED: use .np-text-body-large instead */
|
|
155
141
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
156
|
-
.body-1,
|
|
157
|
-
.value,
|
|
142
|
+
.body-1, .value,
|
|
158
143
|
.np-text-body-large {
|
|
159
144
|
font-weight: var(--font-weight-regular);
|
|
160
145
|
font-size: var(--font-size-16);
|
|
@@ -219,11 +204,8 @@ a,
|
|
|
219
204
|
.np-text-display-large,
|
|
220
205
|
.np-text-display-medium,
|
|
221
206
|
.np-text-display-small {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
font-family: var(--font-family-display);
|
|
225
|
-
font-synthesis: none;
|
|
226
|
-
}
|
|
207
|
+
font-family: var(--font-family-display);
|
|
208
|
+
font-synthesis: none;
|
|
227
209
|
|
|
228
210
|
:lang(ja) &,
|
|
229
211
|
:lang(th) &,
|
|
@@ -234,12 +216,8 @@ a,
|
|
|
234
216
|
* of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
|
|
235
217
|
* font files are browser-cached and we carried over to launchpad, where it causes issues
|
|
236
218
|
* 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.
|
|
240
219
|
*/
|
|
241
220
|
font-family: var(--font-family-regular);
|
|
242
|
-
line-height: var(--line-height-title);
|
|
243
221
|
}
|
|
244
222
|
}
|
|
245
223
|
|
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 (--screen-xs-max) {
|
|
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 (--screen-md-max) {
|
|
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 (--screen-md) {
|
|
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 (--screen-400-zoom) {
|
|
362
362
|
width: 80%;
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
-
@media (
|
|
365
|
+
@media (--screen-xs) and (--screen-md-max) {
|
|
366
366
|
width: 60%;
|
|
367
367
|
}
|
|
368
368
|
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
@media (
|
|
375
|
+
@media (--screen-md-max) {
|
|
376
376
|
.popover-promotion {
|
|
377
377
|
position: absolute !important;
|
|
378
378
|
}
|
package/src/less/utilities.less
CHANGED
|
@@ -63,28 +63,20 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
@media (--screen-lg) {
|
|
66
|
-
.pull-lg-left
|
|
67
|
-
|
|
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) {
|
|
66
|
+
.pull-lg-left,
|
|
67
|
+
/// @deprecated
|
|
80
68
|
.pull-xl-left {
|
|
81
69
|
.float(left) !important;
|
|
82
70
|
}
|
|
83
71
|
|
|
72
|
+
.pull-lg-right,
|
|
73
|
+
/// @deprecated
|
|
84
74
|
.pull-xl-right {
|
|
85
75
|
.float(right) !important;
|
|
86
76
|
}
|
|
87
77
|
|
|
78
|
+
.pull-lg-none,
|
|
79
|
+
/// @deprecated
|
|
88
80
|
.pull-xl-none {
|
|
89
81
|
float: none !important;
|
|
90
82
|
}
|
package/src/less/wells.less
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
@
|
|
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 */
|
|
1
|
+
@import "@transferwise/neptune-tokens/breakpoints.css";
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
// Variables
|
|
3
3
|
// --------------------------------------------------
|
|
4
4
|
|
|
5
|
+
//== Media queries breakpoints
|
|
6
|
+
@import "@transferwise/neptune-tokens/breakpoints.less";
|
|
7
|
+
|
|
5
8
|
//== Colors
|
|
6
9
|
// Deprecated use Neptune Colors https://transferwise.github.io/neptune-web/styles/tokens/Colors
|
|
7
10
|
//
|
|
@@ -588,52 +591,6 @@
|
|
|
588
591
|
@zindex-mobile-nav: 1060;
|
|
589
592
|
|
|
590
593
|
|
|
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
|
-
|
|
637
594
|
//== Grid system
|
|
638
595
|
//
|
|
639
596
|
//## Define your custom responsive grid.
|
|
@@ -1296,4 +1253,4 @@
|
|
|
1296
1253
|
@decision-focus-transition: @transition-duration;
|
|
1297
1254
|
@decision-padding-md: 12px;
|
|
1298
1255
|
@decision-padding-lg: 24px;
|
|
1299
|
-
@decision-border: 1px solid @brand-smoke-plus-10;
|
|
1256
|
+
@decision-border: 1px solid @brand-smoke-plus-10;
|