@carbon/element-styles 0.2.4-rc.4 → 0.2.5-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/css/prebuilt/editorial.css +1 -1
- package/css/prebuilt/expressive.css +1 -1
- package/css/prebuilt/productive.css +1 -1
- package/package.json +1 -1
- package/scss/elements/dialog/index.scss +4 -2
- package/scss/elements/header-navigation/index.scss +7 -0
- package/scss/prebuilt/editorial/_elements.scss +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/element-styles",
|
|
3
3
|
"description": "An experimental styling system for native HTML elements, relying on semantic, attribute-focused selectors instead of class names.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sass": "index.scss",
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
@use '../button';
|
|
18
18
|
|
|
19
|
+
@use '../_layer';
|
|
20
|
+
|
|
19
21
|
@use '../../layout';
|
|
20
22
|
@use '../../utilities/icons';
|
|
21
23
|
|
|
@@ -38,8 +40,8 @@ $-default-config: (
|
|
|
38
40
|
&:modal {
|
|
39
41
|
@include layout.size('md');
|
|
40
42
|
@include layout.density('normal');
|
|
43
|
+
@include layer.styles;
|
|
41
44
|
|
|
42
|
-
background-color: theme.$layer;
|
|
43
45
|
color: theme.$text-primary;
|
|
44
46
|
border: none;
|
|
45
47
|
padding-inline: layout.$density--padding;
|
|
@@ -78,7 +80,7 @@ $-default-config: (
|
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
&:modal header {
|
|
81
|
-
@include layout.mode--heading-level-
|
|
83
|
+
@include layout.mode--heading-level-4;
|
|
82
84
|
margin-block: layout.$density--padding;
|
|
83
85
|
}
|
|
84
86
|
|
|
@@ -40,6 +40,7 @@ $-default-config: (
|
|
|
40
40
|
flex-shrink: 0;
|
|
41
41
|
display: flex;
|
|
42
42
|
block-size: 100%;
|
|
43
|
+
flex-grow: 1;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
& > nav ul {
|
|
@@ -51,6 +52,10 @@ $-default-config: (
|
|
|
51
52
|
display: flex;
|
|
52
53
|
}
|
|
53
54
|
|
|
55
|
+
& > nav ul:first-of-type {
|
|
56
|
+
flex-grow: 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
54
59
|
& > nav ul li {
|
|
55
60
|
@include layout.mode--body-compact;
|
|
56
61
|
padding: 0;
|
|
@@ -97,6 +102,8 @@ $-default-config: (
|
|
|
97
102
|
display: inline-flex;
|
|
98
103
|
align-items: center;
|
|
99
104
|
column-gap: spacing.$spacing-02;
|
|
105
|
+
flex-shrink: 0;
|
|
106
|
+
white-space: nowrap;
|
|
100
107
|
|
|
101
108
|
&:focus {
|
|
102
109
|
@include focus-outline.focus-outline('outline');
|