@drivy/cobalt 0.46.0 → 0.46.1
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/package.json
CHANGED
|
@@ -123,7 +123,9 @@
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.cobalt-Icon--colorBaseInteractive:hover,
|
|
126
|
-
.cobalt-Icon--colorBaseInteractive:focus
|
|
126
|
+
.cobalt-Icon--colorBaseInteractive:focus,
|
|
127
|
+
.c-text-baseInteractive:hover .cobalt-Icon--colorBaseInteractive,
|
|
128
|
+
.c-text-baseInteractive:focus .cobalt-Icon--colorBaseInteractive {
|
|
127
129
|
fill: var(--c-icon-baseInteractive--hover);
|
|
128
130
|
}
|
|
129
131
|
|
|
@@ -132,7 +134,9 @@
|
|
|
132
134
|
}
|
|
133
135
|
|
|
134
136
|
.cobalt-Icon--colorSubduedInteractive:hover,
|
|
135
|
-
.cobalt-Icon--colorSubduedInteractive:focus
|
|
137
|
+
.cobalt-Icon--colorSubduedInteractive:focus,
|
|
138
|
+
.c-text-subduedInteractive:hover .cobalt-Icon--colorSubduedInteractive,
|
|
139
|
+
.c-text-subduedInteractive:focus .cobalt-Icon--colorSubduedInteractive {
|
|
136
140
|
fill: var(--c-icon-subduedInteractive--hover);
|
|
137
141
|
}
|
|
138
142
|
|
|
@@ -141,7 +145,9 @@
|
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
.cobalt-Icon--colorAccentInteractive:hover,
|
|
144
|
-
.cobalt-Icon--colorAccentInteractive:focus
|
|
148
|
+
.cobalt-Icon--colorAccentInteractive:focus,
|
|
149
|
+
.c-text-accentInteractive:hover .cobalt-Icon--colorAccentInteractive,
|
|
150
|
+
.c-text-accentInteractive:focus .cobalt-Icon--colorAccentInteractive {
|
|
145
151
|
fill: var(--c-icon-accentInteractive--hover);
|
|
146
152
|
}
|
|
147
153
|
|
|
@@ -150,6 +156,8 @@
|
|
|
150
156
|
}
|
|
151
157
|
|
|
152
158
|
.cobalt-Icon--colorAccentAltInteractive:hover,
|
|
153
|
-
.cobalt-Icon--colorAccentAltInteractive:focus
|
|
159
|
+
.cobalt-Icon--colorAccentAltInteractive:focus,
|
|
160
|
+
.c-text-accentAltInteractive:hover .cobalt-Icon--colorAccentAltInteractive,
|
|
161
|
+
.c-text-accentAltInteractive:focus .cobalt-Icon--colorAccentAltInteractive {
|
|
154
162
|
fill: var(--c-icon-accentAltInteractive--hover);
|
|
155
163
|
}
|
|
@@ -28,28 +28,44 @@
|
|
|
28
28
|
margin-right: auto;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
@include class-with-responsive-variants(
|
|
32
|
+
"cobalt-layout-flexibleWithConstraint--large",
|
|
33
|
+
(
|
|
34
|
+
"max-width": 1200px
|
|
35
|
+
)
|
|
36
|
+
);
|
|
34
37
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
@include class-with-responsive-variants(
|
|
39
|
+
"cobalt-layout-flexibleWithConstraint--medium",
|
|
40
|
+
(
|
|
41
|
+
"max-width": 840px
|
|
42
|
+
)
|
|
43
|
+
);
|
|
38
44
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
@include class-with-responsive-variants(
|
|
46
|
+
"cobalt-layout-flexibleWithConstraint--small",
|
|
47
|
+
(
|
|
48
|
+
"max-width": 540px
|
|
49
|
+
)
|
|
50
|
+
);
|
|
42
51
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
52
|
+
@include class-with-responsive-variants(
|
|
53
|
+
"cobalt-layout-fixed--280",
|
|
54
|
+
(
|
|
55
|
+
"width": 280px
|
|
56
|
+
)
|
|
57
|
+
);
|
|
46
58
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
59
|
+
@include class-with-responsive-variants(
|
|
60
|
+
"cobalt-layout-fixed--420",
|
|
61
|
+
(
|
|
62
|
+
"width": 420px
|
|
63
|
+
)
|
|
64
|
+
);
|
|
54
65
|
|
|
55
|
-
|
|
66
|
+
@include class-with-responsive-variants(
|
|
67
|
+
"cobalt-layout-fixed--600",
|
|
68
|
+
(
|
|
69
|
+
"width": 600px
|
|
70
|
+
)
|
|
71
|
+
);
|
|
@@ -47,3 +47,23 @@ $breakpoint-data: (
|
|
|
47
47
|
@content;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
+
|
|
51
|
+
// Mixin to generate the same properties for all breakpoints
|
|
52
|
+
@mixin class-with-responsive-variants($class-name, $properties) {
|
|
53
|
+
.#{$class-name} {
|
|
54
|
+
@each $property, $value in $properties {
|
|
55
|
+
#{$property}: $value;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Loop through the breakpoints and generate prefixed classes for all breakpoints
|
|
60
|
+
@each $breakpoint, $breakpoint-value in $breakpoint-data {
|
|
61
|
+
@media (min-width: $breakpoint-value) {
|
|
62
|
+
.#{$breakpoint}\:#{$class-name} {
|
|
63
|
+
@each $property, $value in $properties {
|
|
64
|
+
#{$property}: $value;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|