@drivy/cobalt 1.1.3 → 1.1.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.
- package/components/Icon/__generated__/StarHalfIcon.js +2 -2
- package/components/Icon/__generated__/StarHalfIcon.js.map +1 -1
- package/components/Icon/__generated__/StarIcon.js +2 -2
- package/components/Icon/__generated__/StarIcon.js.map +1 -1
- package/icons/star-half.js +1 -1
- package/icons/star-half.svg +1 -1
- package/icons/star.js +1 -1
- package/icons/star.svg +1 -1
- package/package.json +15 -15
- package/styles/components/BasicCell/index.scss +8 -10
- package/styles/components/BulletList/index.scss +3 -3
- package/styles/components/Buttons/DefaultButton/index.scss +1 -1
- package/styles/components/Buttons/GhostButton/index.scss +2 -4
- package/styles/components/Buttons/index.scss +9 -9
- package/styles/components/Calendar/CalendarDayPicker/index.scss +10 -11
- package/styles/components/Calendar/CalendarRangePicker/index.scss +20 -21
- package/styles/components/Calendar/CalendarView/index.scss +11 -13
- package/styles/components/Callout/index.scss +5 -16
- package/styles/components/Card/index.scss +11 -17
- package/styles/components/Cell/index.scss +6 -4
- package/styles/components/Chip/index.scss +8 -10
- package/styles/components/ContainedIcon/index.scss +11 -11
- package/styles/components/EmptyState/index.scss +6 -12
- package/styles/components/Flash/index.scss +7 -13
- package/styles/components/Form/Autocomplete/index.scss +1 -3
- package/styles/components/Form/CheckablePill.scss +9 -19
- package/styles/components/Form/Checkmark.scss +14 -23
- package/styles/components/Form/ComposedField.scss +2 -2
- package/styles/components/Form/Fieldset.scss +6 -9
- package/styles/components/Form/Hint.scss +4 -8
- package/styles/components/Form/RadioWithDetails.scss +11 -16
- package/styles/components/Form/Select.scss +2 -2
- package/styles/components/Form/Stepper.scss +7 -8
- package/styles/components/Form/TextArea.scss +4 -4
- package/styles/components/Form/TextInput.scss +2 -2
- package/styles/components/Form/ToggleSwitch.scss +12 -15
- package/styles/components/Form/field.scss +8 -6
- package/styles/components/Form/form.scss +8 -12
- package/styles/components/Helper/index.scss +4 -9
- package/styles/components/Icon/index.scss +4 -6
- package/styles/components/Pagination/index.scss +1 -1
- package/styles/components/PhotoDropzone/index.scss +9 -12
- package/styles/components/Pill/index.scss +7 -17
- package/styles/components/PlateNumber/index.scss +1 -7
- package/styles/components/Popover/index.scss +20 -19
- package/styles/components/PriceTable/index.scss +6 -5
- package/styles/components/ProgressBanner/index.scss +5 -18
- package/styles/components/ProgressBar/index.scss +6 -16
- package/styles/components/ProgressCircular/index.scss +5 -5
- package/styles/components/Rating/index.scss +4 -5
- package/styles/components/Sidepanel/index.scss +4 -4
- package/styles/components/TabBar/index.scss +10 -9
- package/styles/components/Tabs/index.scss +1 -2
- package/styles/components/Tag/index.scss +11 -23
- package/styles/core/global-variables.scss +1 -1
- package/utils/getCobaltTailwindcssConfig.js.map +1 -1
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
.cobalt- {
|
|
2
2
|
&Callout {
|
|
3
|
-
@
|
|
4
|
-
@include text-color(base);
|
|
5
|
-
@include bg-color(secondary);
|
|
3
|
+
@apply c-text-body-md c-text-base c-bg-secondary c-rounded c-shadow c-p-sm c-mb-md;
|
|
6
4
|
|
|
7
5
|
position: relative;
|
|
8
6
|
|
|
9
|
-
padding: spacing(sm);
|
|
10
|
-
margin-bottom: spacing(md);
|
|
11
|
-
|
|
12
|
-
border-radius: 3px;
|
|
13
|
-
|
|
14
|
-
box-shadow: elevation(base);
|
|
15
|
-
|
|
16
7
|
&:before {
|
|
17
8
|
position: absolute;
|
|
18
9
|
left: 0;
|
|
@@ -31,26 +22,24 @@
|
|
|
31
22
|
|
|
32
23
|
&Callout--info {
|
|
33
24
|
&:before {
|
|
34
|
-
@
|
|
25
|
+
@apply c-bg-fill-secondary;
|
|
35
26
|
}
|
|
36
27
|
}
|
|
37
28
|
|
|
38
29
|
&Callout--success {
|
|
39
30
|
&:before {
|
|
40
|
-
@
|
|
31
|
+
@apply c-bg-fill-success;
|
|
41
32
|
}
|
|
42
33
|
}
|
|
43
34
|
|
|
44
35
|
&Callout--error {
|
|
45
36
|
&:before {
|
|
46
|
-
@
|
|
37
|
+
@apply c-bg-fill-error;
|
|
47
38
|
}
|
|
48
39
|
}
|
|
49
40
|
|
|
50
41
|
&Callout__Title {
|
|
51
|
-
@
|
|
52
|
-
|
|
53
|
-
margin-bottom: spacing(xs);
|
|
42
|
+
@apply c-text-title-sm c-mb-xs;
|
|
54
43
|
}
|
|
55
44
|
|
|
56
45
|
&Callout__Close {
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
.cobalt- {
|
|
2
|
-
$card-border-radius: border-radius(xl);
|
|
3
2
|
// deprecated
|
|
4
3
|
$legacy-card-padding-tight: 12px;
|
|
5
4
|
|
|
6
5
|
&Card {
|
|
7
|
-
@
|
|
8
|
-
@include border(base);
|
|
6
|
+
@apply c-bg-secondary c-border c-border-base c-rounded-xl;
|
|
9
7
|
width: 100%;
|
|
10
8
|
|
|
11
|
-
border-radius: $card-border-radius;
|
|
12
|
-
|
|
13
9
|
&--legacy {
|
|
14
10
|
border: 0;
|
|
15
11
|
|
|
16
|
-
|
|
12
|
+
@apply c-shadow;
|
|
17
13
|
}
|
|
18
14
|
|
|
19
15
|
&--responsive {
|
|
@@ -26,7 +22,7 @@
|
|
|
26
22
|
}
|
|
27
23
|
|
|
28
24
|
&Card__Section {
|
|
29
|
-
@
|
|
25
|
+
@apply c-bg-secondary;
|
|
30
26
|
position: relative;
|
|
31
27
|
|
|
32
28
|
display: block;
|
|
@@ -34,17 +30,17 @@
|
|
|
34
30
|
}
|
|
35
31
|
|
|
36
32
|
&Card__Section--subdued {
|
|
37
|
-
@
|
|
33
|
+
@apply c-bg-neutralAlt;
|
|
38
34
|
}
|
|
39
35
|
|
|
40
36
|
&Card__Section + &Card__Section--divided {
|
|
41
|
-
@
|
|
37
|
+
@apply c-border-t c-border-subdued;
|
|
42
38
|
padding-top: $card-padding - 1px;
|
|
43
39
|
}
|
|
44
40
|
|
|
45
41
|
&Card__Section + &Card__Section--dividedSoft {
|
|
46
42
|
&:before {
|
|
47
|
-
@
|
|
43
|
+
@apply c-bg-neutral;
|
|
48
44
|
|
|
49
45
|
position: absolute;
|
|
50
46
|
top: 0;
|
|
@@ -73,28 +69,26 @@
|
|
|
73
69
|
// first-of-class, source: https://stackoverflow.com/questions/2717480/css-selector-for-first-element-with-class
|
|
74
70
|
&Card
|
|
75
71
|
> .cobalt-Card__Section:not(.cobalt-Card__Section ~ .cobalt-Card__Section) {
|
|
76
|
-
|
|
77
|
-
border-top-right-radius: $card-border-radius;
|
|
72
|
+
@apply c-rounded-t-xl;
|
|
78
73
|
}
|
|
79
74
|
|
|
80
75
|
// No last-of-class hack found for now
|
|
81
76
|
&Card > .cobalt-Card__Section:last-of-type {
|
|
82
|
-
|
|
83
|
-
border-bottom-left-radius: $card-border-radius;
|
|
77
|
+
@apply c-rounded-b-xl;
|
|
84
78
|
}
|
|
85
79
|
}
|
|
86
80
|
|
|
87
81
|
a.cobalt-Card__Section[href] {
|
|
88
|
-
z-index:
|
|
82
|
+
z-index: theme("zIndex.base");
|
|
89
83
|
|
|
90
84
|
text-decoration: inherit;
|
|
91
85
|
|
|
92
86
|
transition: 150ms ease-out;
|
|
93
87
|
|
|
94
88
|
&:hover {
|
|
95
|
-
z-index:
|
|
89
|
+
z-index: theme("zIndex.above");
|
|
96
90
|
|
|
97
|
-
|
|
91
|
+
@apply c-shadow;
|
|
98
92
|
|
|
99
93
|
transform: scale(1.01);
|
|
100
94
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
|
|
5
5
|
&--divided {
|
|
6
|
-
@
|
|
6
|
+
@apply c-border-t c-border-base;
|
|
7
7
|
|
|
8
8
|
&:first-of-type {
|
|
9
9
|
border-top: 0;
|
|
@@ -12,15 +12,17 @@
|
|
|
12
12
|
|
|
13
13
|
&--softDivided {
|
|
14
14
|
&::before {
|
|
15
|
-
@include semantic-color(stroke, base, background-color);
|
|
16
|
-
|
|
17
15
|
position: absolute;
|
|
16
|
+
|
|
18
17
|
top: 0;
|
|
19
18
|
right: 0;
|
|
20
19
|
|
|
21
20
|
display: block;
|
|
21
|
+
|
|
22
22
|
height: 1px;
|
|
23
|
-
width: calc(100% - #{spacing
|
|
23
|
+
width: calc(100% - #{theme("spacing.sm")});
|
|
24
|
+
|
|
25
|
+
background-color: theme("semanticBorderColor.base");
|
|
24
26
|
|
|
25
27
|
content: "";
|
|
26
28
|
}
|
|
@@ -5,8 +5,7 @@ $chip-large-height: 50px;
|
|
|
5
5
|
|
|
6
6
|
.cobalt- {
|
|
7
7
|
&Chip {
|
|
8
|
-
@
|
|
9
|
-
@include bg-color(secondary);
|
|
8
|
+
@apply c-border c-border-base c-bg-secondary;
|
|
10
9
|
|
|
11
10
|
position: relative;
|
|
12
11
|
|
|
@@ -22,7 +21,7 @@ $chip-large-height: 50px;
|
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
&Chip--interactive {
|
|
25
|
-
@
|
|
24
|
+
@apply c-border-baseInteractive;
|
|
26
25
|
|
|
27
26
|
&:not([disabled]) {
|
|
28
27
|
cursor: pointer;
|
|
@@ -41,21 +40,20 @@ $chip-large-height: 50px;
|
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
&Chip--large &Chip__Text {
|
|
44
|
-
padding: 0 spacing
|
|
43
|
+
padding: 0 theme("spacing.sm") 0 theme("spacing.xs");
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
&Chip--disabled {
|
|
48
|
-
@
|
|
47
|
+
@apply c-bg-disabled;
|
|
49
48
|
opacity: 0.5;
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
&Chip--active {
|
|
53
|
-
@
|
|
54
|
-
@include border-color(accentAlt);
|
|
52
|
+
@apply c-bg-accentAlt c-border-accentAlt;
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
&Chip--active &Chip__Text {
|
|
58
|
-
@
|
|
56
|
+
@apply c-text-accentAlt;
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
&Chip__Content {
|
|
@@ -78,9 +76,9 @@ $chip-large-height: 50px;
|
|
|
78
76
|
}
|
|
79
77
|
|
|
80
78
|
&Chip__Text {
|
|
81
|
-
@
|
|
79
|
+
@apply c-text-section-heading;
|
|
82
80
|
|
|
83
|
-
padding: 0 spacing
|
|
81
|
+
padding: 0 theme("spacing.xs");
|
|
84
82
|
|
|
85
83
|
text-overflow: ellipsis;
|
|
86
84
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
flex-shrink: 0;
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
@apply c-rounded-lg;
|
|
15
15
|
|
|
16
16
|
.cobalt-Icon {
|
|
17
17
|
@include semantic-color(icon, base, fill);
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&--colorConnect {
|
|
54
|
-
@
|
|
54
|
+
@apply c-bg-connect;
|
|
55
55
|
|
|
56
56
|
.cobalt-Icon {
|
|
57
57
|
@include semantic-color(icon, onConnect, fill);
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&--colorKeyExchange {
|
|
62
|
-
@
|
|
62
|
+
@apply c-bg-keyExchange;
|
|
63
63
|
|
|
64
64
|
.cobalt-Icon {
|
|
65
65
|
@include semantic-color(icon, onKeyExchange, fill);
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&--colorRideshare {
|
|
70
|
-
@
|
|
70
|
+
@apply c-bg-rideshare;
|
|
71
71
|
|
|
72
72
|
.cobalt-Icon {
|
|
73
73
|
@include semantic-color(icon, onRideshare, fill);
|
|
@@ -75,11 +75,11 @@
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&--colorBaseAlt {
|
|
78
|
-
@
|
|
78
|
+
@apply c-bg-neutralAlt;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
&--colorAccentAlt {
|
|
82
|
-
@
|
|
82
|
+
@apply c-bg-accentAlt;
|
|
83
83
|
|
|
84
84
|
.cobalt-Icon {
|
|
85
85
|
@include semantic-color(icon, accent, fill);
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&--colorDisabledAlt {
|
|
90
|
-
@
|
|
90
|
+
@apply c-bg-disabled;
|
|
91
91
|
|
|
92
92
|
.cobalt-Icon {
|
|
93
93
|
@include semantic-color(icon, subdued, fill);
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
&--colorErrorAlt {
|
|
98
|
-
@
|
|
98
|
+
@apply c-bg-errorAlt;
|
|
99
99
|
|
|
100
100
|
.cobalt-Icon {
|
|
101
101
|
@include semantic-color(icon, error, fill);
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
&--colorInfoAlt {
|
|
106
|
-
@
|
|
106
|
+
@apply c-bg-info;
|
|
107
107
|
|
|
108
108
|
.cobalt-Icon {
|
|
109
109
|
@include semantic-color(icon, info, fill);
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
&--colorSuccessAlt {
|
|
114
|
-
@
|
|
114
|
+
@apply c-bg-successAlt;
|
|
115
115
|
|
|
116
116
|
.cobalt-Icon {
|
|
117
117
|
@include semantic-color(icon, successAlt, fill);
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
&--colorConnectAlt {
|
|
122
|
-
@
|
|
122
|
+
@apply c-bg-connectAlt;
|
|
123
123
|
|
|
124
124
|
.cobalt-Icon {
|
|
125
125
|
@include semantic-color(icon, connectAlt, fill);
|
|
@@ -1,34 +1,28 @@
|
|
|
1
1
|
.cobalt- {
|
|
2
2
|
&EmptyState {
|
|
3
|
-
|
|
3
|
+
@apply c-p-sm;
|
|
4
|
+
max-width: calc(120 * theme("spacing.2xs"));
|
|
4
5
|
margin-left: auto;
|
|
5
6
|
margin-right: auto;
|
|
6
|
-
padding: spacing(sm);
|
|
7
7
|
|
|
8
8
|
text-align: center;
|
|
9
9
|
|
|
10
10
|
@include breakpoint($from: md) {
|
|
11
|
-
|
|
11
|
+
@apply c-p-lg;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
&EmptyState__Image {
|
|
16
|
+
@apply c-mb-md;
|
|
16
17
|
max-width: 100%;
|
|
17
18
|
height: auto;
|
|
18
|
-
|
|
19
|
-
margin-bottom: spacing(md);
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
&EmptyState__Title {
|
|
23
|
-
@
|
|
24
|
-
|
|
25
|
-
margin-bottom: spacing(xs);
|
|
22
|
+
@apply c-text-title-sm c-mb-xs;
|
|
26
23
|
}
|
|
27
24
|
|
|
28
25
|
&EmptyState__Body {
|
|
29
|
-
@
|
|
30
|
-
@include text-color(subdued);
|
|
31
|
-
|
|
32
|
-
margin-bottom: spacing(md);
|
|
26
|
+
@apply c-text-body-md c-text-subdued c-mb-md;
|
|
33
27
|
}
|
|
34
28
|
}
|
|
@@ -1,30 +1,24 @@
|
|
|
1
1
|
.cobalt- {
|
|
2
2
|
&Flash {
|
|
3
|
-
@
|
|
3
|
+
@apply c-text-body-md c-rounded-md c-shadow-lg;
|
|
4
4
|
|
|
5
5
|
max-width: 800px;
|
|
6
6
|
|
|
7
7
|
display: inline-block;
|
|
8
8
|
|
|
9
|
-
padding: spacing
|
|
10
|
-
|
|
11
|
-
border-radius: border-radius(md);
|
|
12
|
-
|
|
13
|
-
box-shadow: elevation(lg);
|
|
9
|
+
padding: theme("spacing.sm") theme("spacing.md") theme("spacing.sm")
|
|
10
|
+
theme("spacing.sm");
|
|
14
11
|
|
|
15
12
|
&--info {
|
|
16
|
-
@
|
|
17
|
-
@include text-color(info);
|
|
13
|
+
@apply c-bg-info c-text-info;
|
|
18
14
|
}
|
|
19
15
|
|
|
20
16
|
&--success {
|
|
21
|
-
@
|
|
22
|
-
@include text-color(successAlt);
|
|
17
|
+
@apply c-bg-successAlt c-text-successAlt;
|
|
23
18
|
}
|
|
24
19
|
|
|
25
20
|
&--error {
|
|
26
|
-
@
|
|
27
|
-
@include text-color(errorAlt);
|
|
21
|
+
@apply c-bg-errorAlt c-text-errorAlt;
|
|
28
22
|
}
|
|
29
23
|
}
|
|
30
24
|
|
|
@@ -35,7 +29,7 @@
|
|
|
35
29
|
}
|
|
36
30
|
|
|
37
31
|
&Flash__Icon {
|
|
38
|
-
|
|
32
|
+
@apply c-mr-xs;
|
|
39
33
|
min-width: 20px;
|
|
40
34
|
}
|
|
41
35
|
}
|
|
@@ -75,14 +75,12 @@
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&__item-wrapper {
|
|
78
|
-
@apply c-gap-xs;
|
|
78
|
+
@apply c-gap-xs c-py-xs c-pr-2xs c-pl-[11px];
|
|
79
79
|
|
|
80
80
|
display: flex;
|
|
81
81
|
justify-content: space-between;
|
|
82
82
|
|
|
83
83
|
width: 100%;
|
|
84
|
-
|
|
85
|
-
padding: spacing(xs) spacing("2xs") spacing(xs) 11px;
|
|
86
84
|
}
|
|
87
85
|
|
|
88
86
|
&__item-wrapper--disabled {
|
|
@@ -28,16 +28,13 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&__Label {
|
|
31
|
-
@
|
|
32
|
-
@include text-color(base);
|
|
33
|
-
@include bg-color(secondary);
|
|
31
|
+
@apply c-border-base c-border-2 c-text-base c-bg-secondary c-py-none c-px-md;
|
|
34
32
|
position: relative;
|
|
35
33
|
|
|
36
34
|
display: flex;
|
|
37
35
|
align-items: center;
|
|
38
36
|
height: $height;
|
|
39
37
|
box-sizing: border-box;
|
|
40
|
-
padding: 0 spacing(md);
|
|
41
38
|
|
|
42
39
|
// We remove the border-bottom and border-top width
|
|
43
40
|
line-height: $height - 2px * 2;
|
|
@@ -47,7 +44,7 @@
|
|
|
47
44
|
transition: $animation-duration;
|
|
48
45
|
|
|
49
46
|
&:hover {
|
|
50
|
-
@
|
|
47
|
+
@apply c-border-accent;
|
|
51
48
|
box-shadow: 0 4px 4px 0 rgba(#000, 0.16);
|
|
52
49
|
|
|
53
50
|
transform: translateY(-1px);
|
|
@@ -66,7 +63,7 @@
|
|
|
66
63
|
|
|
67
64
|
&__Input:focus + #{ $self }__Label:after {
|
|
68
65
|
// Color the shadow by using default text color
|
|
69
|
-
@
|
|
66
|
+
@apply c-text-accent;
|
|
70
67
|
position: absolute;
|
|
71
68
|
|
|
72
69
|
box-shadow: 0 0 0 1px;
|
|
@@ -74,8 +71,7 @@
|
|
|
74
71
|
}
|
|
75
72
|
|
|
76
73
|
&__Input:disabled + #{ $self }__Label {
|
|
77
|
-
@
|
|
78
|
-
@include bg-color(disabled);
|
|
74
|
+
@apply c-border-base c-border-2 c-bg-disabled;
|
|
79
75
|
|
|
80
76
|
cursor: default;
|
|
81
77
|
box-shadow: none;
|
|
@@ -85,15 +81,13 @@
|
|
|
85
81
|
}
|
|
86
82
|
|
|
87
83
|
&__Input:checked + #{ $self }__Label {
|
|
88
|
-
@
|
|
89
|
-
@include text-color(accentAlt);
|
|
90
|
-
@include border(accentAlt, 2);
|
|
84
|
+
@apply c-bg-accentAlt c-text-accentAlt c-border-accentAlt c-border-2;
|
|
91
85
|
}
|
|
92
86
|
|
|
93
87
|
&--with-icon {
|
|
94
88
|
.cobalt-Icon {
|
|
95
89
|
@include semantic-color(icon, base, fill);
|
|
96
|
-
|
|
90
|
+
@apply c-mr-xs;
|
|
97
91
|
|
|
98
92
|
transition: fill $animation-duration ease-in-out;
|
|
99
93
|
}
|
|
@@ -105,9 +99,7 @@
|
|
|
105
99
|
|
|
106
100
|
&--error {
|
|
107
101
|
#{ $self }__Input + #{ $self }__Label {
|
|
108
|
-
@
|
|
109
|
-
@include text-color(base);
|
|
110
|
-
@include bg-color(secondary);
|
|
102
|
+
@apply c-border-error c-text-base c-bg-secondary;
|
|
111
103
|
|
|
112
104
|
.cobalt-Icon {
|
|
113
105
|
@include semantic-color(icon, base, fill);
|
|
@@ -115,9 +107,7 @@
|
|
|
115
107
|
}
|
|
116
108
|
|
|
117
109
|
#{ $self }__Input:checked + #{ $self }__Label {
|
|
118
|
-
@
|
|
119
|
-
@include bg-color(errorAlt);
|
|
120
|
-
@include border-color(errorAlt);
|
|
110
|
+
@apply c-text-errorAlt c-bg-errorAlt c-border-errorAlt;
|
|
121
111
|
|
|
122
112
|
.cobalt-Icon {
|
|
123
113
|
@include semantic-color(icon, errorAlt, fill);
|
|
@@ -135,7 +125,7 @@
|
|
|
135
125
|
align-items: center;
|
|
136
126
|
|
|
137
127
|
.cobalt-CheckablePillField {
|
|
138
|
-
|
|
128
|
+
@apply c-mr-sm;
|
|
139
129
|
|
|
140
130
|
&--with-icon {
|
|
141
131
|
white-space: nowrap;
|
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
$radio-checkmark-size: 20px;
|
|
5
5
|
$checkbox-checkmark-size: 18px;
|
|
6
6
|
|
|
7
|
-
@
|
|
8
|
-
@include c-text-body-md;
|
|
7
|
+
@apply c-text-base c-text-body-md c-mb-xs;
|
|
9
8
|
|
|
10
9
|
position: relative;
|
|
11
10
|
|
|
12
|
-
margin-bottom: spacing(xs);
|
|
13
11
|
display: block;
|
|
14
12
|
|
|
15
13
|
&__Input {
|
|
@@ -23,13 +21,11 @@
|
|
|
23
21
|
opacity: 0;
|
|
24
22
|
|
|
25
23
|
& + #{ $self }__Checkmark {
|
|
26
|
-
@
|
|
24
|
+
@apply c-border-accent c-border-2 c-mr-xs;
|
|
27
25
|
display: inline-block;
|
|
28
26
|
|
|
29
27
|
flex: 0 0 auto;
|
|
30
28
|
|
|
31
|
-
margin-right: spacing(xs);
|
|
32
|
-
|
|
33
29
|
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
|
|
34
30
|
cursor: pointer;
|
|
35
31
|
|
|
@@ -37,7 +33,7 @@
|
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
&[disabled] ~ .cobalt-CheckmarkField__Label {
|
|
40
|
-
@
|
|
36
|
+
@apply c-text-subdued;
|
|
41
37
|
}
|
|
42
38
|
}
|
|
43
39
|
|
|
@@ -53,18 +49,15 @@
|
|
|
53
49
|
width: $radio-checkmark-size;
|
|
54
50
|
height: $radio-checkmark-size;
|
|
55
51
|
|
|
56
|
-
|
|
52
|
+
@apply c-rounded-full;
|
|
57
53
|
}
|
|
58
54
|
|
|
59
55
|
& + #{ $self }__Checkmark::after {
|
|
60
|
-
@
|
|
61
|
-
@include bg-color(accentAlt);
|
|
56
|
+
@apply c-border-accent c-bg-accentAlt c-rounded-full;
|
|
62
57
|
|
|
63
58
|
// Exception for radio inputs
|
|
64
59
|
border-width: 5px;
|
|
65
60
|
|
|
66
|
-
border-radius: 50%;
|
|
67
|
-
|
|
68
61
|
content: "";
|
|
69
62
|
opacity: 0;
|
|
70
63
|
|
|
@@ -82,14 +75,13 @@
|
|
|
82
75
|
}
|
|
83
76
|
|
|
84
77
|
&[disabled] + #{ $self }__Checkmark {
|
|
85
|
-
@
|
|
78
|
+
@apply c-border-subdued;
|
|
86
79
|
|
|
87
80
|
box-shadow: none;
|
|
88
81
|
}
|
|
89
82
|
|
|
90
83
|
&[disabled]:checked ~ #{ $self }__Checkmark::after {
|
|
91
|
-
@
|
|
92
|
-
@include bg-color(disabled);
|
|
84
|
+
@apply c-border-subdued c-bg-disabled;
|
|
93
85
|
}
|
|
94
86
|
}
|
|
95
87
|
|
|
@@ -116,7 +108,7 @@
|
|
|
116
108
|
}
|
|
117
109
|
|
|
118
110
|
&:checked + #{ $self }__Checkmark {
|
|
119
|
-
@
|
|
111
|
+
@apply c-bg-accent;
|
|
120
112
|
will-change: background-color;
|
|
121
113
|
}
|
|
122
114
|
|
|
@@ -135,13 +127,13 @@
|
|
|
135
127
|
}
|
|
136
128
|
|
|
137
129
|
&[disabled] + #{ $self }__Checkmark {
|
|
138
|
-
@
|
|
130
|
+
@apply c-border-subdued;
|
|
139
131
|
|
|
140
132
|
box-shadow: none;
|
|
141
133
|
}
|
|
142
134
|
|
|
143
135
|
&[disabled]:checked + #{ $self }__Checkmark {
|
|
144
|
-
@
|
|
136
|
+
@apply c-bg-disabled;
|
|
145
137
|
}
|
|
146
138
|
}
|
|
147
139
|
|
|
@@ -159,16 +151,15 @@
|
|
|
159
151
|
|
|
160
152
|
&--error {
|
|
161
153
|
#{ $self }__Input + #{ $self }__Checkmark {
|
|
162
|
-
@
|
|
154
|
+
@apply c-border-error;
|
|
163
155
|
}
|
|
164
156
|
|
|
165
157
|
#{ $self }__Input[type="radio"]:checked + #{ $self }__Checkmark::after {
|
|
166
|
-
@
|
|
167
|
-
@include bg-color(errorInteractive);
|
|
158
|
+
@apply c-border-error c-bg-errorInteractive;
|
|
168
159
|
}
|
|
169
160
|
|
|
170
161
|
#{ $self }__Input[type="checkbox"]:checked + #{ $self }__Checkmark {
|
|
171
|
-
@
|
|
162
|
+
@apply c-bg-errorInteractive;
|
|
172
163
|
}
|
|
173
164
|
}
|
|
174
165
|
}
|
|
@@ -177,7 +168,7 @@
|
|
|
177
168
|
@include form-field-container;
|
|
178
169
|
|
|
179
170
|
.cobalt-Hint {
|
|
180
|
-
|
|
171
|
+
@apply c-mt-xs c-mr-none c-mb-none c-ml-md;
|
|
181
172
|
}
|
|
182
173
|
}
|
|
183
174
|
}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
.cobalt- {
|
|
2
2
|
&Fieldset {
|
|
3
|
-
@
|
|
3
|
+
@apply c-border-t c-border-t-subdued;
|
|
4
4
|
|
|
5
|
-
// We
|
|
6
|
-
padding: (spacing
|
|
5
|
+
// We need to keep the original calculation
|
|
6
|
+
padding: calc(theme("spacing.sm") - 1px) 0 0 0;
|
|
7
7
|
|
|
8
8
|
& > legend {
|
|
9
|
-
@
|
|
10
|
-
|
|
11
|
-
margin-bottom: spacing(xs);
|
|
12
|
-
padding: 0 spacing(sm) 0 0;
|
|
9
|
+
@apply c-text-title-sm c-mb-xs c-pr-sm;
|
|
13
10
|
}
|
|
14
11
|
|
|
15
12
|
&:not(:first-child) {
|
|
16
|
-
|
|
13
|
+
@apply c-mt-lg;
|
|
17
14
|
}
|
|
18
15
|
|
|
19
16
|
& + & {
|
|
20
|
-
|
|
17
|
+
@apply c-mt-xl;
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
20
|
}
|