@transferwise/neptune-css 14.16.0 → 14.18.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/buttons.css +223 -218
- package/dist/css/neptune-social-media.css +12 -12
- package/dist/css/neptune.css +230 -224
- package/dist/css/progress-bars.css +6 -6
- package/package.json +1 -1
- package/src/less/buttons.less +20 -14
- package/src/less/mixins/_buttons.less +4 -4
- package/src/less/progress-bars.less +2 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
.progress {
|
|
2
|
-
--progress-bar-height:
|
|
2
|
+
--progress-bar-height: 4px;
|
|
3
3
|
--progress-bar-border-width: 4px;
|
|
4
4
|
--progress-bar-start-shift: calc(var(--progress-bar-border-width) * 2);
|
|
5
|
-
height:
|
|
5
|
+
height: 4px;
|
|
6
6
|
height: var(--progress-bar-height);
|
|
7
7
|
overflow: hidden;
|
|
8
|
-
margin-top: calc((24px -
|
|
8
|
+
margin-top: calc((24px - 4px) / 2);
|
|
9
9
|
margin-top: calc((var(--size-24) - var(--progress-bar-height)) / 2);
|
|
10
|
-
margin-bottom: calc((24px -
|
|
10
|
+
margin-bottom: calc((24px - 4px) / 2);
|
|
11
11
|
margin-bottom: calc((var(--size-24) - var(--progress-bar-height)) / 2);
|
|
12
12
|
background-color: #c9cbce;
|
|
13
13
|
background-color: var(--color-interactive-secondary);
|
|
14
|
-
border-radius:
|
|
15
|
-
border-radius: var(--progress-bar-height);
|
|
14
|
+
border-radius: calc(4px + 4px);
|
|
15
|
+
border-radius: calc(var(--progress-bar-border-width) + var(--progress-bar-height));
|
|
16
16
|
}
|
|
17
17
|
.progress-bar {
|
|
18
18
|
float: left;
|
package/package.json
CHANGED
package/src/less/buttons.less
CHANGED
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
&:not(.disabled, :disabled):hover {
|
|
72
|
+
&:not(.disabled, :disabled, .btn-loading):hover {
|
|
73
73
|
color: var(--color-interactive-accent-hover);
|
|
74
74
|
text-decoration: none;
|
|
75
75
|
}
|
|
@@ -79,12 +79,14 @@
|
|
|
79
79
|
fieldset[disabled] & {
|
|
80
80
|
outline: none;
|
|
81
81
|
box-shadow: none;
|
|
82
|
+
cursor: not-allowed;
|
|
82
83
|
pointer-events: none;
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
a& {
|
|
86
87
|
&.disabled,
|
|
87
88
|
fieldset[disabled] & {
|
|
89
|
+
cursor: not-allowed;
|
|
88
90
|
pointer-events: none;
|
|
89
91
|
}
|
|
90
92
|
}
|
|
@@ -211,7 +213,7 @@
|
|
|
211
213
|
background-color: transparent;
|
|
212
214
|
}
|
|
213
215
|
|
|
214
|
-
&:not(.disabled, :disabled):hover,
|
|
216
|
+
&:not(.disabled, :disabled, .btn-loading):hover,
|
|
215
217
|
&:not(.disabled, :disabled):focus-visible {
|
|
216
218
|
color: var(--color-content-accent-hover);
|
|
217
219
|
text-decoration: underline;
|
|
@@ -219,7 +221,7 @@
|
|
|
219
221
|
background-color: transparent;
|
|
220
222
|
}
|
|
221
223
|
|
|
222
|
-
&:not(.disabled, :disabled):active {
|
|
224
|
+
&:not(.disabled, :disabled, .btn-loading):active {
|
|
223
225
|
color: var(--color-content-accent-active);
|
|
224
226
|
}
|
|
225
227
|
|
|
@@ -228,13 +230,13 @@
|
|
|
228
230
|
border-color: transparent;
|
|
229
231
|
.link-underline();
|
|
230
232
|
|
|
231
|
-
&:not(.disabled, :disabled):hover,
|
|
233
|
+
&:not(.disabled, :disabled, .btn-loading):hover,
|
|
232
234
|
&:not(.disabled, :disabled):focus-visible {
|
|
233
235
|
color: var(--color-interactive-primary-hover);
|
|
234
236
|
border-color: transparent;
|
|
235
237
|
}
|
|
236
238
|
|
|
237
|
-
&:not(.disabled, :disabled):active {
|
|
239
|
+
&:not(.disabled, :disabled, .btn-loading):active {
|
|
238
240
|
color: var(--color-interactive-primary-active);
|
|
239
241
|
background-color: var(--color-background-screen-active) !important;
|
|
240
242
|
}
|
|
@@ -636,17 +638,11 @@ input[type="button"] {
|
|
|
636
638
|
margin-bottom: -8px;
|
|
637
639
|
background-repeat: no-repeat;
|
|
638
640
|
background-position: center;
|
|
639
|
-
|
|
640
|
-
.process-circle {
|
|
641
|
-
.np-theme-personal--dark &,
|
|
642
|
-
.np-theme-personal--bright-green &,
|
|
643
|
-
.np-theme-personal--forest-green & {
|
|
644
|
-
stroke: var(--color-interactive-negative);
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
641
|
}
|
|
648
642
|
|
|
649
643
|
.btn-loading {
|
|
644
|
+
cursor: wait;
|
|
645
|
+
|
|
650
646
|
&:not(.btn-block) {
|
|
651
647
|
display: inline-flex;
|
|
652
648
|
align-items: center;
|
|
@@ -658,7 +654,7 @@ input[type="button"] {
|
|
|
658
654
|
margin-left: 16px;
|
|
659
655
|
margin-right: 0;
|
|
660
656
|
}
|
|
661
|
-
|
|
657
|
+
|
|
662
658
|
[dir="rtl"] & {
|
|
663
659
|
margin-left: 0 !important;
|
|
664
660
|
margin-right: 16px !important;
|
|
@@ -672,6 +668,16 @@ input[type="button"] {
|
|
|
672
668
|
margin-top: auto;
|
|
673
669
|
margin-bottom: auto;
|
|
674
670
|
}
|
|
671
|
+
|
|
672
|
+
&:hover,
|
|
673
|
+
&:focus,
|
|
674
|
+
&:active,
|
|
675
|
+
& {
|
|
676
|
+
.process-circle[class] {
|
|
677
|
+
stroke: currentColor;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
675
681
|
}
|
|
676
682
|
|
|
677
683
|
.btn-sm {
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
border-color: @border;
|
|
16
16
|
transition: color, background-color 0.15s ease-in-out;
|
|
17
17
|
|
|
18
|
-
&:not(.disabled, :disabled):hover {
|
|
18
|
+
&:not(.disabled, :disabled, .btn-loading):hover {
|
|
19
19
|
color: @color-hover;
|
|
20
20
|
background-color: @background-hover;
|
|
21
21
|
border-color: @border-hover;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
&:not(.disabled, :disabled):active,
|
|
25
|
-
&:not(.disabled, :disabled).active,
|
|
24
|
+
&:not(.disabled, :disabled, .btn-loading):active,
|
|
25
|
+
&:not(.disabled, :disabled, .btn-loading).active,
|
|
26
26
|
.open > .dropdown-toggle& {
|
|
27
27
|
color: @color-active;
|
|
28
28
|
background-color: @background-active;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
&:not(.disabled, :disabled).active,
|
|
38
|
+
&:not(.disabled, :disabled, .btn-loading).active,
|
|
39
39
|
.open > .dropdown-toggle& {
|
|
40
40
|
background-image: none;
|
|
41
41
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@import (reference) "./mixins/_logical-properties.less";
|
|
3
3
|
|
|
4
4
|
.progress {
|
|
5
|
-
--progress-bar-height:
|
|
5
|
+
--progress-bar-height: 4px;
|
|
6
6
|
--progress-bar-border-width: 4px;
|
|
7
7
|
// Progress bar starts with left/right (depends on rtl) shift `--progress-bar-start-shift` for hiding Progress bar's left and right borders which are used for progress vertical delimiter.
|
|
8
8
|
--progress-bar-start-shift: calc(var(--progress-bar-border-width) * 2);
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
margin-top: calc((var(--size-24) - var(--progress-bar-height)) / 2);
|
|
12
12
|
margin-bottom: calc((var(--size-24) - var(--progress-bar-height)) / 2);
|
|
13
13
|
background-color: var(--color-interactive-secondary);
|
|
14
|
-
border-radius: var(--progress-bar-height);
|
|
14
|
+
border-radius: calc(var(--progress-bar-border-width) + var(--progress-bar-height));
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.progress-bar {
|