barbican-reset 1.6.3 → 1.6.4
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.
|
@@ -1,60 +1,73 @@
|
|
|
1
|
-
@mixin generic-input
|
|
1
|
+
@mixin generic-input-wrap {
|
|
2
2
|
position: relative;
|
|
3
3
|
padding: 0;
|
|
4
|
+
}
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&:checked ~ label {
|
|
28
|
-
@include focus_colors;
|
|
29
|
-
@include single-box($c-status-neutral, 0.0625rem);
|
|
30
|
-
}
|
|
6
|
+
@mixin generic-input-target($state: neutral) {
|
|
7
|
+
$size: 0.875rem;
|
|
8
|
+
position: absolute;
|
|
9
|
+
height: $size;
|
|
10
|
+
margin: auto;
|
|
11
|
+
width: $size;
|
|
12
|
+
z-index: 3;
|
|
13
|
+
left: 1rem;
|
|
14
|
+
top: 1rem;
|
|
15
|
+
|
|
16
|
+
@if $state != disabled {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
|
|
19
|
+
@include focus {
|
|
20
|
+
outline: none;
|
|
21
|
+
|
|
22
|
+
~ label {
|
|
23
|
+
@include single-box($c-grey-steel, 0.0625rem);
|
|
24
|
+
border: 1px solid $c-grey-steel;
|
|
25
|
+
background-color: $c-grey-alpine;
|
|
31
26
|
}
|
|
32
|
-
|
|
27
|
+
|
|
33
28
|
&:checked ~ label {
|
|
34
29
|
@include focus_colors;
|
|
30
|
+
@include single-box($c-status-neutral, 0.0625rem);
|
|
35
31
|
}
|
|
36
32
|
}
|
|
37
|
-
}
|
|
38
33
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
border: 1px solid $c-grey-concrete;
|
|
42
|
-
border-radius: $border-radius-lg;
|
|
43
|
-
background-color: $white;
|
|
44
|
-
font-weight: 400;
|
|
45
|
-
|
|
46
|
-
@if $state != disabled {
|
|
47
|
-
color: $c-grey-night;
|
|
48
|
-
cursor: pointer;
|
|
34
|
+
&:checked ~ label {
|
|
35
|
+
@include focus_colors;
|
|
49
36
|
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
50
39
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
40
|
+
@mixin generic-input-label($state: neutral) {
|
|
41
|
+
padding: 0.75rem 0.75rem 0.625rem 2.75rem;
|
|
42
|
+
border: 1px solid $c-grey-concrete;
|
|
43
|
+
border-radius: $border-radius-lg;
|
|
44
|
+
background-color: $white;
|
|
45
|
+
font-weight: 400;
|
|
54
46
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
@if $state != disabled {
|
|
48
|
+
color: $c-grey-night;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@if $state == disabled {
|
|
53
|
+
color: $c-grey-steel;
|
|
54
|
+
cursor: not-allowed;
|
|
55
|
+
|
|
56
|
+
&.spx-label-field__checkout,
|
|
57
|
+
.spx-data-delivery-type {
|
|
58
|
+
text-decoration: line-through;
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
|
-
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@mixin generic-input($state, $type) {
|
|
64
|
+
@include generic-input-wrap;
|
|
65
|
+
|
|
66
|
+
input[type="#{$type}"] {
|
|
67
|
+
@include generic-input-target($state);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
label {
|
|
71
|
+
@include generic-input-label($state);
|
|
72
|
+
}
|
|
73
|
+
}
|
package/package.json
CHANGED