@carbon/element-styles 0.3.6-rc.0 → 0.3.7-rc.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/README.md +51 -33
- package/css/prebuilt/editorial.css +1 -1
- package/css/prebuilt/expressive.css +2 -2
- package/css/prebuilt/productive.css +2 -2
- package/index.scss +2 -2
- package/package.json +30 -16
- package/scss/_config.scss +1 -1
- package/scss/elements/_heading/index.scss +3 -3
- package/scss/elements/_input/index.scss +11 -11
- package/scss/elements/_labelled-input/index.scss +41 -39
- package/scss/elements/_layer/index.scss +29 -17
- package/scss/elements/abbreviation/index.scss +5 -5
- package/scss/elements/address/index.scss +5 -5
- package/scss/elements/anchor/index.scss +10 -10
- package/scss/elements/block-quotation/index.scss +7 -7
- package/scss/elements/body/index.scss +6 -6
- package/scss/elements/bold-text/index.scss +4 -4
- package/scss/elements/button/index.scss +19 -19
- package/scss/elements/checkbox/index.scss +16 -14
- package/scss/elements/code/index.scss +6 -6
- package/scss/elements/color-input/index.scss +24 -27
- package/scss/elements/combo-box/index.scss +22 -20
- package/scss/elements/date-input/index.scss +18 -16
- package/scss/elements/date-time-input/index.scss +18 -16
- package/scss/elements/deleted-text/index.scss +6 -6
- package/scss/elements/description-list/index.scss +5 -5
- package/scss/elements/details/index.scss +12 -11
- package/scss/elements/dialog/index.scss +63 -49
- package/scss/elements/email-input/index.scss +17 -15
- package/scss/elements/fieldset/index.scss +11 -9
- package/scss/elements/file-input/index.scss +10 -9
- package/scss/elements/footer/index.scss +6 -6
- package/scss/elements/header-navigation/index.scss +11 -11
- package/scss/elements/heading-level-1/index.scss +5 -5
- package/scss/elements/heading-level-2/index.scss +5 -5
- package/scss/elements/heading-level-3/index.scss +5 -5
- package/scss/elements/heading-level-4/index.scss +5 -5
- package/scss/elements/heading-level-5/index.scss +5 -5
- package/scss/elements/heading-level-6/index.scss +5 -5
- package/scss/elements/horizontal-rule/index.scss +8 -8
- package/scss/elements/image/index.scss +3 -3
- package/scss/elements/inline-loading/index.scss +11 -12
- package/scss/elements/inline-quotation/index.scss +4 -4
- package/scss/elements/inserted-text/index.scss +6 -6
- package/scss/elements/italic-text/index.scss +4 -4
- package/scss/elements/keyboard-input/index.scss +6 -6
- package/scss/elements/label/index.scss +9 -9
- package/scss/elements/main/index.scss +6 -6
- package/scss/elements/marked-text/index.scss +7 -7
- package/scss/elements/menu/index.scss +13 -12
- package/scss/elements/number-input/index.scss +15 -13
- package/scss/elements/ordered-list/index.scss +5 -5
- package/scss/elements/paragraph/index.scss +4 -4
- package/scss/elements/password-input/index.scss +16 -14
- package/scss/elements/popover/index.scss +32 -37
- package/scss/elements/preformatted/index.scss +5 -5
- package/scss/elements/progress-bar/index.scss +20 -18
- package/scss/elements/radio-button/index.scss +14 -12
- package/scss/elements/range-input/index.scss +13 -11
- package/scss/elements/search-input/index.scss +18 -16
- package/scss/elements/select/index.scss +24 -22
- package/scss/elements/side-navigation/index.scss +11 -11
- package/scss/elements/small-text/index.scss +5 -5
- package/scss/elements/table/index.scss +16 -12
- package/scss/elements/tabs/index.scss +20 -16
- package/scss/elements/telephone-number-input/index.scss +17 -15
- package/scss/elements/text-area/index.scss +20 -16
- package/scss/elements/text-input/index.scss +17 -15
- package/scss/elements/tile/index.scss +14 -13
- package/scss/elements/time-input/index.scss +18 -16
- package/scss/elements/toggle/index.scss +20 -16
- package/scss/elements/tooltip/index.scss +13 -11
- package/scss/elements/tree-view/index.scss +11 -11
- package/scss/elements/unordered-list/index.scss +7 -7
- package/scss/elements/url-input/index.scss +17 -15
- package/scss/layout/_density.scss +6 -6
- package/scss/layout/_mode.scss +269 -161
- package/scss/layout/_size.scss +16 -10
- package/scss/layout/index.scss +3 -3
- package/scss/prebuilt/editorial/_elements.scss +34 -32
- package/scss/prebuilt/editorial/_layout.scss +4 -4
- package/scss/prebuilt/editorial/index.scss +9 -9
- package/scss/prebuilt/expressive/_elements.scss +74 -70
- package/scss/prebuilt/expressive/_layout.scss +4 -4
- package/scss/prebuilt/expressive/index.scss +9 -9
- package/scss/prebuilt/productive/_elements.scss +69 -67
- package/scss/prebuilt/productive/_layout.scss +4 -4
- package/scss/prebuilt/productive/index.scss +9 -9
- package/scss/utilities/_carbon.scss +28 -25
- package/scss/utilities/_icons.scss +1 -1
- package/scss/utilities/_tokens.scss +5 -5
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
@use
|
|
9
|
-
@use
|
|
8
|
+
@use "sass:map";
|
|
9
|
+
@use "sass:string";
|
|
10
10
|
|
|
11
|
-
@use
|
|
12
|
-
@use
|
|
13
|
-
@use
|
|
11
|
+
@use "@carbon/styles/scss/spacing";
|
|
12
|
+
@use "@carbon/styles/scss/theme";
|
|
13
|
+
@use "@carbon/styles/scss/components/button/tokens" as carbon-button;
|
|
14
14
|
|
|
15
|
-
@use
|
|
16
|
-
@use
|
|
15
|
+
@use "../../layout";
|
|
16
|
+
@use "../../utilities/guards";
|
|
17
17
|
|
|
18
18
|
$config: () !default;
|
|
19
19
|
|
|
20
20
|
$-default-config: (
|
|
21
|
-
selector:
|
|
22
|
-
kind:
|
|
21
|
+
selector: "button",
|
|
22
|
+
kind: "secondary",
|
|
23
23
|
);
|
|
24
24
|
|
|
25
25
|
/// @group button
|
|
@@ -29,7 +29,7 @@ $-default-config: (
|
|
|
29
29
|
@mixin styles($config: $config) {
|
|
30
30
|
$props: map.deep-merge($-default-config, $config);
|
|
31
31
|
|
|
32
|
-
#{map.get($props,
|
|
32
|
+
#{map.get($props, "selector")} {
|
|
33
33
|
@include layout.mode--body-compact;
|
|
34
34
|
appearance: none;
|
|
35
35
|
border: none;
|
|
@@ -78,12 +78,12 @@ $-default-config: (
|
|
|
78
78
|
aspect-ratio: 1;
|
|
79
79
|
justify-content: center;
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
& > svg {
|
|
82
82
|
margin-inline: 0;
|
|
83
|
-
|
|
83
|
+
}
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
@if map.get($props,
|
|
86
|
+
@if map.get($props, "kind") == "primary" {
|
|
87
87
|
background-color: carbon-button.$button-primary;
|
|
88
88
|
color: theme.$text-on-color;
|
|
89
89
|
|
|
@@ -103,7 +103,7 @@ $-default-config: (
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
@if map.get($props,
|
|
106
|
+
@if map.get($props, "kind") == "secondary" {
|
|
107
107
|
background-color: carbon-button.$button-secondary;
|
|
108
108
|
color: theme.$text-on-color;
|
|
109
109
|
|
|
@@ -123,7 +123,7 @@ $-default-config: (
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
@if map.get($props,
|
|
126
|
+
@if map.get($props, "kind") == "tertiary" {
|
|
127
127
|
background-color: transparent;
|
|
128
128
|
color: carbon-button.$button-tertiary;
|
|
129
129
|
outline: 0.0625rem solid carbon-button.$button-tertiary;
|
|
@@ -151,7 +151,7 @@ $-default-config: (
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
@if map.get($props,
|
|
154
|
+
@if map.get($props, "kind") == "ghost" {
|
|
155
155
|
background-color: transparent;
|
|
156
156
|
color: theme.$link-primary;
|
|
157
157
|
padding-inline-end: layout.$density--padding;
|
|
@@ -186,7 +186,7 @@ $-default-config: (
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
@if map.get($props,
|
|
189
|
+
@if map.get($props, "kind") == "danger--primary" {
|
|
190
190
|
background-color: carbon-button.$button-danger-primary;
|
|
191
191
|
color: theme.$text-on-color;
|
|
192
192
|
|
|
@@ -206,7 +206,7 @@ $-default-config: (
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
@if map.get($props,
|
|
209
|
+
@if map.get($props, "kind") == "danger--tertiary" {
|
|
210
210
|
background-color: transparent;
|
|
211
211
|
color: carbon-button.$button-danger-secondary;
|
|
212
212
|
outline: 0.0625rem solid carbon-button.$button-danger-secondary;
|
|
@@ -236,7 +236,7 @@ $-default-config: (
|
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
@if map.get($props,
|
|
239
|
+
@if map.get($props, "kind") == "danger--ghost" {
|
|
240
240
|
background-color: transparent;
|
|
241
241
|
color: carbon-button.$button-danger-secondary;
|
|
242
242
|
padding-inline-end: layout.$density--padding;
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
@use
|
|
8
|
+
@use "sass:map";
|
|
9
9
|
|
|
10
|
-
@use
|
|
11
|
-
@use
|
|
12
|
-
@use
|
|
10
|
+
@use "@carbon/styles/scss/theme";
|
|
11
|
+
@use "@carbon/styles/scss/spacing";
|
|
12
|
+
@use "@carbon/styles/scss/utilities/focus-outline";
|
|
13
13
|
|
|
14
|
-
@use
|
|
14
|
+
@use "../label";
|
|
15
15
|
|
|
16
|
-
@use
|
|
17
|
-
@use
|
|
16
|
+
@use "../../layout";
|
|
17
|
+
@use "../../utilities/icons";
|
|
18
18
|
|
|
19
19
|
$config: () !default;
|
|
20
20
|
|
|
@@ -28,11 +28,13 @@ $-default-config: (
|
|
|
28
28
|
@mixin styles($config: $config) {
|
|
29
29
|
$props: map.deep-merge($-default-config, $config);
|
|
30
30
|
|
|
31
|
-
#{map.get($props,
|
|
32
|
-
@include label.styles(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
#{map.get($props, "selector")} {
|
|
32
|
+
@include label.styles(
|
|
33
|
+
(
|
|
34
|
+
selector: "&",
|
|
35
|
+
axis: "inline",
|
|
36
|
+
)
|
|
37
|
+
);
|
|
36
38
|
|
|
37
39
|
justify-content: start;
|
|
38
40
|
cursor: pointer;
|
|
@@ -48,7 +50,7 @@ $-default-config: (
|
|
|
48
50
|
border-radius: 0.125rem;
|
|
49
51
|
|
|
50
52
|
&:focus {
|
|
51
|
-
@include focus-outline.focus-outline(
|
|
53
|
+
@include focus-outline.focus-outline("outline");
|
|
52
54
|
outline-offset: 0.125rem;
|
|
53
55
|
}
|
|
54
56
|
|
|
@@ -57,7 +59,7 @@ $-default-config: (
|
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
&::before {
|
|
60
|
-
content:
|
|
62
|
+
content: "";
|
|
61
63
|
position: absolute;
|
|
62
64
|
inset: 0;
|
|
63
65
|
@include icons.checkbox;
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
@use
|
|
8
|
+
@use "sass:map";
|
|
9
9
|
|
|
10
|
-
@use
|
|
11
|
-
@use
|
|
10
|
+
@use "@carbon/styles/scss/spacing";
|
|
11
|
+
@use "@carbon/styles/scss/theme";
|
|
12
12
|
|
|
13
|
-
@use
|
|
13
|
+
@use "../../layout";
|
|
14
14
|
|
|
15
15
|
$config: () !default;
|
|
16
16
|
|
|
17
17
|
$-default-config: (
|
|
18
|
-
selector:
|
|
18
|
+
selector: "code",
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
/// @group code
|
|
@@ -24,7 +24,7 @@ $-default-config: (
|
|
|
24
24
|
@mixin styles($config: $config) {
|
|
25
25
|
$props: map.deep-merge($-default-config, $config);
|
|
26
26
|
|
|
27
|
-
#{map.get($props,
|
|
27
|
+
#{map.get($props, "selector")} {
|
|
28
28
|
@include layout.mode--code;
|
|
29
29
|
background-color: theme.$layer;
|
|
30
30
|
padding-inline: spacing.$spacing-01;
|
|
@@ -5,22 +5,22 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
@use
|
|
8
|
+
@use "sass:map";
|
|
9
9
|
|
|
10
|
-
@use
|
|
11
|
-
@use
|
|
10
|
+
@use "@carbon/styles/scss/theme";
|
|
11
|
+
@use "@carbon/styles/scss/spacing";
|
|
12
12
|
|
|
13
|
-
@use
|
|
13
|
+
@use "../_labelled-input";
|
|
14
14
|
|
|
15
|
-
@use
|
|
16
|
-
@use
|
|
17
|
-
@use
|
|
15
|
+
@use "../../layout";
|
|
16
|
+
@use "../../utilities/icons";
|
|
17
|
+
@use "../../utilities/guards";
|
|
18
18
|
|
|
19
19
|
$config: () !default;
|
|
20
20
|
|
|
21
21
|
$-default-config: (
|
|
22
22
|
selector: 'label:has(input[type="color"])',
|
|
23
|
-
axis:
|
|
23
|
+
axis: "block",
|
|
24
24
|
);
|
|
25
25
|
|
|
26
26
|
/// @group color-input
|
|
@@ -30,19 +30,21 @@ $-default-config: (
|
|
|
30
30
|
@mixin styles($config: $config) {
|
|
31
31
|
$props: map.deep-merge($-default-config, $config);
|
|
32
32
|
|
|
33
|
-
#{map.get($props,
|
|
34
|
-
@include labelled-input.styles(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
33
|
+
#{map.get($props, "selector")} {
|
|
34
|
+
@include labelled-input.styles(
|
|
35
|
+
(
|
|
36
|
+
label: (
|
|
37
|
+
selector: "&",
|
|
38
|
+
axis: map.get($props, "axis"),
|
|
39
|
+
),
|
|
40
|
+
input: (
|
|
41
|
+
selector: 'input[type="color"]',
|
|
42
|
+
emit-readonly: false,
|
|
43
|
+
),
|
|
44
|
+
fixed-input-trailing-slots: 1,
|
|
45
|
+
input-invalid-slot: "after",
|
|
46
|
+
)
|
|
47
|
+
);
|
|
46
48
|
|
|
47
49
|
/*
|
|
48
50
|
inline padding
|
|
@@ -54,13 +56,8 @@ $-default-config: (
|
|
|
54
56
|
+ inline padding
|
|
55
57
|
*/
|
|
56
58
|
$-min-inline-size: calc(
|
|
59
|
+
layout.$density--padding + 1rem + spacing.$spacing-05 + 1rem + spacing.$spacing-03 + 1rem +
|
|
57
60
|
layout.$density--padding
|
|
58
|
-
+ 1rem
|
|
59
|
-
+ spacing.$spacing-05
|
|
60
|
-
+ 1rem
|
|
61
|
-
+ spacing.$spacing-03
|
|
62
|
-
+ 1rem
|
|
63
|
-
+ layout.$density--padding
|
|
64
61
|
);
|
|
65
62
|
|
|
66
63
|
& input[type="color"] {
|
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
@use
|
|
8
|
+
@use "sass:map";
|
|
9
9
|
|
|
10
|
-
@use
|
|
10
|
+
@use "@carbon/styles/scss/theme";
|
|
11
11
|
|
|
12
|
-
@use
|
|
12
|
+
@use "../_labelled-input";
|
|
13
13
|
|
|
14
|
-
@use
|
|
15
|
-
@use
|
|
14
|
+
@use "../../utilities/icons";
|
|
15
|
+
@use "../../utilities/guards";
|
|
16
16
|
|
|
17
17
|
$config: () !default;
|
|
18
18
|
|
|
19
19
|
$-default-config: (
|
|
20
20
|
selector: 'label:has(input[type="text"][list])',
|
|
21
|
-
axis:
|
|
21
|
+
axis: "block",
|
|
22
22
|
);
|
|
23
23
|
|
|
24
24
|
/// @group combo-box
|
|
@@ -28,19 +28,21 @@ $-default-config: (
|
|
|
28
28
|
@mixin styles($config: $config) {
|
|
29
29
|
$props: map.deep-merge($-default-config, $config);
|
|
30
30
|
|
|
31
|
-
#{map.get($props,
|
|
32
|
-
@include labelled-input.styles(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
#{map.get($props, "selector")} {
|
|
32
|
+
@include labelled-input.styles(
|
|
33
|
+
(
|
|
34
|
+
label: (
|
|
35
|
+
selector: "&",
|
|
36
|
+
axis: map.get($props, "axis"),
|
|
37
|
+
),
|
|
38
|
+
input: (
|
|
39
|
+
selector: 'input[type="text"][list]',
|
|
40
|
+
emit-readonly: false,
|
|
41
|
+
),
|
|
42
|
+
fixed-input-trailing-slots: 1,
|
|
43
|
+
input-invalid-slot: "after",
|
|
44
|
+
)
|
|
45
|
+
);
|
|
44
46
|
|
|
45
47
|
&::before {
|
|
46
48
|
@include labelled-input.input-trailing-slot {
|
|
@@ -59,7 +61,7 @@ $-default-config: (
|
|
|
59
61
|
background-color: theme.$layer-active;
|
|
60
62
|
}
|
|
61
63
|
|
|
62
|
-
@if map.get($props,
|
|
64
|
+
@if map.get($props, "axis") == "inline" {
|
|
63
65
|
&:enabled,
|
|
64
66
|
&:disabled {
|
|
65
67
|
background-color: transparent;
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
@use
|
|
8
|
+
@use "sass:map";
|
|
9
9
|
|
|
10
|
-
@use
|
|
10
|
+
@use "../_labelled-input";
|
|
11
11
|
|
|
12
|
-
@use
|
|
12
|
+
@use "../../utilities/icons";
|
|
13
13
|
|
|
14
14
|
$config: () !default;
|
|
15
15
|
|
|
16
16
|
$-default-config: (
|
|
17
17
|
selector: 'label:has(input[type="date"])',
|
|
18
|
-
axis:
|
|
18
|
+
axis: "block",
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
/// @group date-input
|
|
@@ -25,18 +25,20 @@ $-default-config: (
|
|
|
25
25
|
@mixin styles($config: $config) {
|
|
26
26
|
$props: map.deep-merge($-default-config, $config);
|
|
27
27
|
|
|
28
|
-
#{map.get($props,
|
|
29
|
-
@include labelled-input.styles(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
28
|
+
#{map.get($props, "selector")} {
|
|
29
|
+
@include labelled-input.styles(
|
|
30
|
+
(
|
|
31
|
+
label: (
|
|
32
|
+
selector: "&",
|
|
33
|
+
axis: map.get($props, "axis"),
|
|
34
|
+
),
|
|
35
|
+
input: (
|
|
36
|
+
selector: 'input[type="date"]',
|
|
37
|
+
),
|
|
38
|
+
fixed-input-trailing-slots: 1,
|
|
39
|
+
input-invalid-slot: "after",
|
|
40
|
+
)
|
|
41
|
+
);
|
|
40
42
|
|
|
41
43
|
&::before {
|
|
42
44
|
@include labelled-input.input-trailing-slot {
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
@use
|
|
8
|
+
@use "sass:map";
|
|
9
9
|
|
|
10
|
-
@use
|
|
10
|
+
@use "../_labelled-input";
|
|
11
11
|
|
|
12
|
-
@use
|
|
12
|
+
@use "../../utilities/icons";
|
|
13
13
|
|
|
14
14
|
$config: () !default;
|
|
15
15
|
|
|
16
16
|
$-default-config: (
|
|
17
17
|
selector: 'label:has(input[type="datetime-local"])',
|
|
18
|
-
axis:
|
|
18
|
+
axis: "block",
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
/// @group date-time-input
|
|
@@ -25,18 +25,20 @@ $-default-config: (
|
|
|
25
25
|
@mixin styles($config: $config) {
|
|
26
26
|
$props: map.deep-merge($-default-config, $config);
|
|
27
27
|
|
|
28
|
-
#{map.get($props,
|
|
29
|
-
@include labelled-input.styles(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
28
|
+
#{map.get($props, "selector")} {
|
|
29
|
+
@include labelled-input.styles(
|
|
30
|
+
(
|
|
31
|
+
label: (
|
|
32
|
+
selector: "&",
|
|
33
|
+
axis: map.get($props, "axis"),
|
|
34
|
+
),
|
|
35
|
+
input: (
|
|
36
|
+
selector: 'input[type="datetime-local"]',
|
|
37
|
+
),
|
|
38
|
+
fixed-input-trailing-slots: 1,
|
|
39
|
+
input-invalid-slot: "after",
|
|
40
|
+
)
|
|
41
|
+
);
|
|
40
42
|
|
|
41
43
|
&::before {
|
|
42
44
|
@include labelled-input.input-trailing-slot {
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
@use
|
|
8
|
+
@use "sass:map";
|
|
9
9
|
|
|
10
|
-
@use
|
|
11
|
-
@use
|
|
10
|
+
@use "@carbon/styles/scss/spacing";
|
|
11
|
+
@use "@carbon/styles/scss/components/tag/tokens" as tag-tokens;
|
|
12
12
|
|
|
13
|
-
@use
|
|
13
|
+
@use "../../layout";
|
|
14
14
|
|
|
15
15
|
$config: () !default;
|
|
16
16
|
|
|
17
17
|
$-default-config: (
|
|
18
|
-
selector:
|
|
18
|
+
selector: "del",
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
/// @group deleted-text
|
|
@@ -24,7 +24,7 @@ $-default-config: (
|
|
|
24
24
|
@mixin styles($config: $config) {
|
|
25
25
|
$props: map.deep-merge($-default-config, $config);
|
|
26
26
|
|
|
27
|
-
#{map.get($props,
|
|
27
|
+
#{map.get($props, "selector")} {
|
|
28
28
|
padding-inline: spacing.$spacing-01;
|
|
29
29
|
background-color: tag-tokens.$tag-background-red;
|
|
30
30
|
color: tag-tokens.$tag-color-red;
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
@use
|
|
8
|
+
@use "sass:map";
|
|
9
9
|
|
|
10
|
-
@use
|
|
10
|
+
@use "@carbon/styles/scss/spacing";
|
|
11
11
|
|
|
12
|
-
@use
|
|
12
|
+
@use "../../layout";
|
|
13
13
|
|
|
14
14
|
$config: () !default;
|
|
15
15
|
|
|
16
16
|
$-default-config: (
|
|
17
|
-
selector:
|
|
17
|
+
selector: "dl",
|
|
18
18
|
);
|
|
19
19
|
|
|
20
20
|
/// @group description-list
|
|
@@ -23,7 +23,7 @@ $-default-config: (
|
|
|
23
23
|
@mixin styles($config: $config) {
|
|
24
24
|
$props: map.deep-merge($-default-config, $config);
|
|
25
25
|
|
|
26
|
-
#{map.get($props,
|
|
26
|
+
#{map.get($props, "selector")} {
|
|
27
27
|
display: grid;
|
|
28
28
|
grid-template-columns: max-content 1fr;
|
|
29
29
|
column-gap: spacing.$spacing-04;
|
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
@use
|
|
8
|
+
@use "sass:map";
|
|
9
9
|
|
|
10
|
-
@use
|
|
11
|
-
@use
|
|
10
|
+
@use "@carbon/styles/scss/theme";
|
|
11
|
+
@use "@carbon/styles/scss/utilities/focus-outline";
|
|
12
12
|
|
|
13
|
-
@use
|
|
14
|
-
@use
|
|
15
|
-
@use
|
|
13
|
+
@use "../../layout";
|
|
14
|
+
@use "../../utilities/icons";
|
|
15
|
+
@use "../../utilities/guards";
|
|
16
16
|
|
|
17
17
|
$config: () !default;
|
|
18
18
|
|
|
19
19
|
$-default-config: (
|
|
20
|
-
selector:
|
|
20
|
+
selector: "details",
|
|
21
21
|
);
|
|
22
22
|
|
|
23
23
|
/// @group details
|
|
@@ -26,7 +26,7 @@ $-default-config: (
|
|
|
26
26
|
@mixin styles($config: $config) {
|
|
27
27
|
$props: map.deep-merge($-default-config, $config);
|
|
28
28
|
|
|
29
|
-
#{map.get($props,
|
|
29
|
+
#{map.get($props, "selector")} {
|
|
30
30
|
border-block-start: 0.0625rem solid theme.$border-subtle;
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
padding-inline-start: calc(layout.$density--padding + 1rem + layout.$density--padding);
|
|
@@ -60,19 +60,20 @@ $-default-config: (
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&:focus {
|
|
63
|
-
@include focus-outline.focus-outline(
|
|
63
|
+
@include focus-outline.focus-outline("outline");
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
& summary::before {
|
|
68
|
-
content:
|
|
68
|
+
content: "";
|
|
69
69
|
@include icons.chevron--down;
|
|
70
70
|
translate: 0 calc((1lh - 1rem) * 0.5);
|
|
71
71
|
display: inline-block;
|
|
72
72
|
margin-inline-end: layout.$density--padding;
|
|
73
73
|
|
|
74
74
|
@include guards.motion {
|
|
75
|
-
transition: rotate layout.$mode--transition-duration
|
|
75
|
+
transition: rotate layout.$mode--transition-duration
|
|
76
|
+
layout.$mode--transition-timing-function;
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
|