@carbon/element-styles 0.3.6 → 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,27 +5,27 @@
|
|
|
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
|
|
13
|
-
@use
|
|
14
|
-
@use
|
|
15
|
-
@use
|
|
10
|
+
@use "@carbon/styles/scss/spacing";
|
|
11
|
+
@use "@carbon/styles/scss/theme";
|
|
12
|
+
@use "@carbon/styles/scss/breakpoint";
|
|
13
|
+
@use "@carbon/styles/scss/motion";
|
|
14
|
+
@use "@carbon/styles/scss/utilities/focus-outline";
|
|
15
|
+
@use "@carbon/styles/scss/layer/layer-tokens";
|
|
16
16
|
|
|
17
|
-
@use
|
|
17
|
+
@use "../button";
|
|
18
18
|
|
|
19
|
-
@use
|
|
19
|
+
@use "../_layer";
|
|
20
20
|
|
|
21
|
-
@use
|
|
22
|
-
@use
|
|
23
|
-
@use
|
|
21
|
+
@use "../../layout";
|
|
22
|
+
@use "../../utilities/icons";
|
|
23
|
+
@use "../../utilities/guards";
|
|
24
24
|
|
|
25
25
|
$config: () !default;
|
|
26
26
|
|
|
27
27
|
$-default-config: (
|
|
28
|
-
selector:
|
|
28
|
+
selector: "dialog",
|
|
29
29
|
);
|
|
30
30
|
|
|
31
31
|
/// @group dialog
|
|
@@ -34,13 +34,13 @@ $-default-config: (
|
|
|
34
34
|
@mixin styles($config: $config) {
|
|
35
35
|
$props: map.deep-merge($-default-config, $config);
|
|
36
36
|
|
|
37
|
-
#{map.get($props,
|
|
37
|
+
#{map.get($props, "selector")} {
|
|
38
38
|
position: relative;
|
|
39
39
|
padding: 0;
|
|
40
40
|
|
|
41
41
|
&:modal {
|
|
42
|
-
@include layout.size(
|
|
43
|
-
@include layout.density(
|
|
42
|
+
@include layout.size("md");
|
|
43
|
+
@include layout.density("normal");
|
|
44
44
|
@include layer.styles;
|
|
45
45
|
|
|
46
46
|
color: theme.$text-primary;
|
|
@@ -51,24 +51,24 @@ $-default-config: (
|
|
|
51
51
|
box-sizing: border-box;
|
|
52
52
|
|
|
53
53
|
&:focus {
|
|
54
|
-
@include focus-outline.focus-outline(
|
|
54
|
+
@include focus-outline.focus-outline("outline");
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
@include breakpoint.breakpoint(
|
|
57
|
+
@include breakpoint.breakpoint("xlg") {
|
|
58
58
|
inline-size: 48%;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
@include breakpoint.breakpoint-down(
|
|
61
|
+
@include breakpoint.breakpoint-down("xlg") {
|
|
62
62
|
inline-size: 60%;
|
|
63
63
|
max-block-size: 84%;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
@include breakpoint.breakpoint-down(
|
|
66
|
+
@include breakpoint.breakpoint-down("lg") {
|
|
67
67
|
inline-size: 84%;
|
|
68
68
|
max-block-size: 90%;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
@include breakpoint.breakpoint-down(
|
|
71
|
+
@include breakpoint.breakpoint-down("md") {
|
|
72
72
|
inline-size: 100%;
|
|
73
73
|
block-size: 100%;
|
|
74
74
|
max-inline-size: 100dvi;
|
|
@@ -83,10 +83,11 @@ $-default-config: (
|
|
|
83
83
|
&:modal header {
|
|
84
84
|
@include layout.mode--heading-level-4;
|
|
85
85
|
margin-block: layout.$density--padding;
|
|
86
|
+
margin-inline-end: calc(layout.$size--block-size + spacing.$spacing-05);
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
&:modal footer {
|
|
89
|
-
@include layout.size(
|
|
90
|
+
@include layout.size("xl");
|
|
90
91
|
display: grid;
|
|
91
92
|
grid-template-columns: repeat(4, 1fr);
|
|
92
93
|
margin-inline: calc(layout.$density--padding * -1);
|
|
@@ -100,52 +101,64 @@ $-default-config: (
|
|
|
100
101
|
// single button
|
|
101
102
|
&:modal footer > button:only-child {
|
|
102
103
|
grid-column: 3 / span 2;
|
|
103
|
-
@include button.styles(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
@include button.styles(
|
|
105
|
+
(
|
|
106
|
+
selector: "&",
|
|
107
|
+
kind: "primary",
|
|
108
|
+
)
|
|
109
|
+
);
|
|
107
110
|
}
|
|
108
111
|
|
|
109
112
|
// two buttons
|
|
110
113
|
&:modal footer > button:first-child:has(+ button:last-child) {
|
|
111
114
|
grid-column: 1 / span 2;
|
|
112
|
-
@include button.styles(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
@include button.styles(
|
|
116
|
+
(
|
|
117
|
+
selector: "&",
|
|
118
|
+
kind: "secondary",
|
|
119
|
+
)
|
|
120
|
+
);
|
|
116
121
|
}
|
|
117
122
|
|
|
118
123
|
&:modal footer > button:first-child + button:last-child {
|
|
119
124
|
grid-column: 3 / span 2;
|
|
120
|
-
@include button.styles(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
125
|
+
@include button.styles(
|
|
126
|
+
(
|
|
127
|
+
selector: "&",
|
|
128
|
+
kind: "primary",
|
|
129
|
+
)
|
|
130
|
+
);
|
|
124
131
|
}
|
|
125
132
|
|
|
126
133
|
// three buttons
|
|
127
134
|
&:modal footer > button:first-child:not(:has(+ button:last-child), :last-child) {
|
|
128
135
|
grid-column: 1;
|
|
129
|
-
@include button.styles(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
136
|
+
@include button.styles(
|
|
137
|
+
(
|
|
138
|
+
selector: "&",
|
|
139
|
+
kind: "ghost",
|
|
140
|
+
)
|
|
141
|
+
);
|
|
133
142
|
}
|
|
134
143
|
|
|
135
144
|
&:modal footer > button:not(:first-child):has(+ button:last-child) {
|
|
136
145
|
grid-column: 3;
|
|
137
|
-
@include button.styles(
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
146
|
+
@include button.styles(
|
|
147
|
+
(
|
|
148
|
+
selector: "&",
|
|
149
|
+
kind: "secondary",
|
|
150
|
+
)
|
|
151
|
+
);
|
|
141
152
|
}
|
|
142
153
|
|
|
143
154
|
&:modal footer > button:not(:first-child) + button:last-child {
|
|
144
155
|
grid-column: 4;
|
|
145
|
-
@include button.styles(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
156
|
+
@include button.styles(
|
|
157
|
+
(
|
|
158
|
+
selector: "&",
|
|
159
|
+
kind: "primary",
|
|
160
|
+
)
|
|
161
|
+
);
|
|
149
162
|
}
|
|
150
163
|
|
|
151
164
|
// header close button
|
|
@@ -166,7 +179,8 @@ $-default-config: (
|
|
|
166
179
|
align-items: center;
|
|
167
180
|
justify-content: center;
|
|
168
181
|
cursor: pointer;
|
|
169
|
-
transition: background-color layout.$mode--transition-duration
|
|
182
|
+
transition: background-color layout.$mode--transition-duration
|
|
183
|
+
layout.$mode--transition-timing-function;
|
|
170
184
|
|
|
171
185
|
@include guards.hover {
|
|
172
186
|
&:hover {
|
|
@@ -179,7 +193,7 @@ $-default-config: (
|
|
|
179
193
|
}
|
|
180
194
|
|
|
181
195
|
&:focus {
|
|
182
|
-
@include focus-outline.focus-outline(
|
|
196
|
+
@include focus-outline.focus-outline("outline");
|
|
183
197
|
}
|
|
184
198
|
}
|
|
185
199
|
|
|
@@ -187,7 +201,7 @@ $-default-config: (
|
|
|
187
201
|
@include icons.close($size: 1.25rem);
|
|
188
202
|
display: block;
|
|
189
203
|
inset: 0;
|
|
190
|
-
content:
|
|
204
|
+
content: "";
|
|
191
205
|
}
|
|
192
206
|
|
|
193
207
|
// entry animation
|
|
@@ -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 "../../layout";
|
|
13
13
|
|
|
14
14
|
$config: () !default;
|
|
15
15
|
|
|
16
16
|
$-default-config: (
|
|
17
17
|
selector: 'label:has(input[type="email"])',
|
|
18
|
-
axis:
|
|
18
|
+
axis: "block",
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
/// @group email-input
|
|
@@ -25,16 +25,18 @@ $-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
|
-
|
|
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="email"]',
|
|
37
|
+
),
|
|
38
|
+
input-invalid-slot: "after",
|
|
39
|
+
)
|
|
40
|
+
);
|
|
39
41
|
}
|
|
40
42
|
}
|
|
@@ -5,18 +5,18 @@
|
|
|
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 "../label";
|
|
13
13
|
|
|
14
|
-
@use
|
|
14
|
+
@use "../../layout";
|
|
15
15
|
|
|
16
16
|
$config: () !default;
|
|
17
17
|
|
|
18
18
|
$-default-config: (
|
|
19
|
-
selector:
|
|
19
|
+
selector: "fieldset",
|
|
20
20
|
);
|
|
21
21
|
|
|
22
22
|
/// @group fieldset
|
|
@@ -25,15 +25,17 @@ $-default-config: (
|
|
|
25
25
|
@mixin styles($config: $config) {
|
|
26
26
|
$props: map.deep-merge($-default-config, $config);
|
|
27
27
|
|
|
28
|
-
#{map.get($props,
|
|
28
|
+
#{map.get($props, "selector")} {
|
|
29
29
|
border: none;
|
|
30
30
|
padding: 0;
|
|
31
31
|
margin-block: layout.$mode--margin-block;
|
|
32
32
|
|
|
33
33
|
& legend {
|
|
34
|
-
@include label.styles(
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
@include label.styles(
|
|
35
|
+
(
|
|
36
|
+
selector: "&",
|
|
37
|
+
)
|
|
38
|
+
);
|
|
37
39
|
padding: 0;
|
|
38
40
|
margin-block-end: spacing.$spacing-03;
|
|
39
41
|
}
|
|
@@ -5,15 +5,15 @@
|
|
|
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
|
|
13
|
-
@use
|
|
10
|
+
@use "@carbon/styles/scss/theme";
|
|
11
|
+
@use "@carbon/styles/scss/spacing";
|
|
12
|
+
@use "@carbon/styles/scss/utilities/focus-outline";
|
|
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
|
|
|
@@ -27,7 +27,7 @@ $-default-config: (
|
|
|
27
27
|
@mixin styles($config: $config) {
|
|
28
28
|
$props: map.deep-merge($-default-config, $config);
|
|
29
29
|
|
|
30
|
-
#{map.get($props,
|
|
30
|
+
#{map.get($props, "selector")} {
|
|
31
31
|
@include layout.mode--heading-compact;
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
@@ -59,7 +59,8 @@ $-default-config: (
|
|
|
59
59
|
padding-inline-start: layout.$density--padding;
|
|
60
60
|
padding-inline-end: calc(layout.$density--padding + 1rem + layout.$density--padding);
|
|
61
61
|
cursor: pointer;
|
|
62
|
-
transition: background-color layout.$mode--transition-duration
|
|
62
|
+
transition: background-color layout.$mode--transition-duration
|
|
63
|
+
layout.$mode--transition-timing-function;
|
|
63
64
|
|
|
64
65
|
@include guards.hover {
|
|
65
66
|
&:hover {
|
|
@@ -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/theme";
|
|
11
|
+
@use "@carbon/styles/scss/spacing";
|
|
12
12
|
|
|
13
|
-
@use
|
|
13
|
+
@use "../../layout";
|
|
14
14
|
|
|
15
15
|
$config: () !default;
|
|
16
16
|
|
|
17
17
|
$-default-config: (
|
|
18
|
-
selector:
|
|
18
|
+
selector: "main + footer",
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
/// @group footer
|
|
@@ -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--body-compact;
|
|
29
29
|
color: theme.$text-secondary;
|
|
30
30
|
border-block-start: 0.0625rem solid theme.$border-subtle;
|
|
@@ -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
|
|
12
|
-
@use
|
|
10
|
+
@use "@carbon/styles/scss/spacing";
|
|
11
|
+
@use "@carbon/styles/scss/theme";
|
|
12
|
+
@use "@carbon/styles/scss/utilities/focus-outline";
|
|
13
13
|
|
|
14
|
-
@use
|
|
15
|
-
@use
|
|
14
|
+
@use "../../layout";
|
|
15
|
+
@use "../../utilities/guards";
|
|
16
16
|
|
|
17
17
|
$config: () !default;
|
|
18
18
|
|
|
19
19
|
$-default-config: (
|
|
20
|
-
selector:
|
|
20
|
+
selector: "body > header:first-child",
|
|
21
21
|
);
|
|
22
22
|
|
|
23
23
|
/// @group header-navigation
|
|
@@ -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
|
position: sticky;
|
|
31
31
|
inset-block-start: 0;
|
|
32
32
|
z-index: 9999;
|
|
@@ -87,7 +87,7 @@ $-default-config: (
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&:focus {
|
|
90
|
-
@include focus-outline.focus-outline(
|
|
90
|
+
@include focus-outline.focus-outline("outline");
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -109,7 +109,7 @@ $-default-config: (
|
|
|
109
109
|
white-space: nowrap;
|
|
110
110
|
|
|
111
111
|
&:focus {
|
|
112
|
-
@include focus-outline.focus-outline(
|
|
112
|
+
@include focus-outline.focus-outline("outline");
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -119,7 +119,7 @@ $-default-config: (
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
& > nav a + ul::before {
|
|
122
|
-
content:
|
|
122
|
+
content: "";
|
|
123
123
|
display: block;
|
|
124
124
|
inline-size: 0.0625rem;
|
|
125
125
|
inset-inline-start: -0.0625rem;
|
|
@@ -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 "../_heading";
|
|
11
11
|
|
|
12
|
-
@use
|
|
12
|
+
@use "../../layout";
|
|
13
13
|
|
|
14
14
|
$config: () !default;
|
|
15
15
|
|
|
16
16
|
$-default-config: (
|
|
17
|
-
selector:
|
|
17
|
+
selector: "h1",
|
|
18
18
|
);
|
|
19
19
|
|
|
20
20
|
/// @group heading-level-1
|
|
@@ -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
|
@include heading.styles;
|
|
28
28
|
@include layout.mode--heading-level-1;
|
|
29
29
|
}
|
|
@@ -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 "../_heading";
|
|
11
11
|
|
|
12
|
-
@use
|
|
12
|
+
@use "../../layout";
|
|
13
13
|
|
|
14
14
|
$config: () !default;
|
|
15
15
|
|
|
16
16
|
$-default-config: (
|
|
17
|
-
selector:
|
|
17
|
+
selector: "h2",
|
|
18
18
|
);
|
|
19
19
|
|
|
20
20
|
/// @group heading-level-2
|
|
@@ -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
|
@include heading.styles;
|
|
28
28
|
@include layout.mode--heading-level-2;
|
|
29
29
|
}
|
|
@@ -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 "../_heading";
|
|
11
11
|
|
|
12
|
-
@use
|
|
12
|
+
@use "../../layout";
|
|
13
13
|
|
|
14
14
|
$config: () !default;
|
|
15
15
|
|
|
16
16
|
$-default-config: (
|
|
17
|
-
selector:
|
|
17
|
+
selector: "h3",
|
|
18
18
|
);
|
|
19
19
|
|
|
20
20
|
/// @group heading-level-3
|
|
@@ -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
|
@include heading.styles;
|
|
28
28
|
@include layout.mode--heading-level-3;
|
|
29
29
|
}
|
|
@@ -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 "../_heading";
|
|
11
11
|
|
|
12
|
-
@use
|
|
12
|
+
@use "../../layout";
|
|
13
13
|
|
|
14
14
|
$config: () !default;
|
|
15
15
|
|
|
16
16
|
$-default-config: (
|
|
17
|
-
selector:
|
|
17
|
+
selector: "h4",
|
|
18
18
|
);
|
|
19
19
|
|
|
20
20
|
/// @group heading-level-4
|
|
@@ -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
|
@include heading.styles;
|
|
28
28
|
@include layout.mode--heading-level-4;
|
|
29
29
|
}
|
|
@@ -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 "../_heading";
|
|
11
11
|
|
|
12
|
-
@use
|
|
12
|
+
@use "../../layout";
|
|
13
13
|
|
|
14
14
|
$config: () !default;
|
|
15
15
|
|
|
16
16
|
$-default-config: (
|
|
17
|
-
selector:
|
|
17
|
+
selector: "h5",
|
|
18
18
|
);
|
|
19
19
|
|
|
20
20
|
/// @group heading-level-5
|
|
@@ -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
|
@include heading.styles;
|
|
28
28
|
@include layout.mode--heading-level-5;
|
|
29
29
|
}
|
|
@@ -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 "../_heading";
|
|
11
11
|
|
|
12
|
-
@use
|
|
12
|
+
@use "../../layout";
|
|
13
13
|
|
|
14
14
|
$config: () !default;
|
|
15
15
|
|
|
16
16
|
$-default-config: (
|
|
17
|
-
selector:
|
|
17
|
+
selector: "h6",
|
|
18
18
|
);
|
|
19
19
|
|
|
20
20
|
/// @group heading-level-6
|
|
@@ -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
|
@include heading.styles;
|
|
28
28
|
@include layout.mode--heading-level-6;
|
|
29
29
|
}
|
|
@@ -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 "@carbon/styles/scss/theme";
|
|
11
11
|
|
|
12
|
-
@use
|
|
12
|
+
@use "../../layout";
|
|
13
13
|
|
|
14
14
|
$config: () !default;
|
|
15
15
|
|
|
16
16
|
$-default-config: (
|
|
17
|
-
selector:
|
|
18
|
-
kind:
|
|
17
|
+
selector: "hr",
|
|
18
|
+
kind: "subtle",
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
/// @group horizontal-rule
|
|
@@ -25,16 +25,16 @@ $-default-config: (
|
|
|
25
25
|
@mixin styles($config: $config) {
|
|
26
26
|
$props: map.deep-merge($-default-config, $config);
|
|
27
27
|
|
|
28
|
-
#{map.get($props,
|
|
28
|
+
#{map.get($props, "selector")} {
|
|
29
29
|
border: none;
|
|
30
30
|
block-size: 0.0625rem;
|
|
31
31
|
margin-block: layout.$mode--margin-block;
|
|
32
32
|
|
|
33
|
-
@if map.get($props,
|
|
33
|
+
@if map.get($props, "kind") == "subtle" {
|
|
34
34
|
background-color: theme.$border-subtle;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
@if map.get($props,
|
|
37
|
+
@if map.get($props, "kind") == "strong" {
|
|
38
38
|
background-color: theme.$border-strong;
|
|
39
39
|
}
|
|
40
40
|
}
|