@carbon/styles 1.27.0-rc.0 → 1.28.0-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/styles.css +805 -2863
- package/css/styles.min.css +1 -1
- package/package.json +9 -9
- package/scss/components/list/_list.scss +4 -0
- package/scss/components/tabs/_tabs.scss +32 -12
- package/scss/components/treeview/_treeview.scss +21 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.28.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
"sass": "^1.33.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@carbon/colors": "^11.14.0
|
|
35
|
+
"@carbon/colors": "^11.14.0",
|
|
36
36
|
"@carbon/feature-flags": "^0.13.0",
|
|
37
|
-
"@carbon/grid": "^11.13.0
|
|
38
|
-
"@carbon/layout": "^11.13.0
|
|
37
|
+
"@carbon/grid": "^11.13.0",
|
|
38
|
+
"@carbon/layout": "^11.13.0",
|
|
39
39
|
"@carbon/motion": "^11.10.0",
|
|
40
|
-
"@carbon/themes": "^11.18.0
|
|
41
|
-
"@carbon/type": "^11.17.0
|
|
40
|
+
"@carbon/themes": "^11.18.0",
|
|
41
|
+
"@carbon/type": "^11.17.0",
|
|
42
42
|
"@ibm/plex": "6.0.0-next.6"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@carbon/test-utils": "^10.28.0
|
|
45
|
+
"@carbon/test-utils": "^10.28.0",
|
|
46
46
|
"autoprefixer": "^10.4.7",
|
|
47
|
-
"browserslist-config-carbon": "^11.
|
|
47
|
+
"browserslist-config-carbon": "^11.2.0-rc.0",
|
|
48
48
|
"css": "^3.0.0",
|
|
49
49
|
"cssnano": "^6.0.0",
|
|
50
50
|
"lodash.isequal": "^4.5.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"scss/**/*.css",
|
|
60
60
|
"css/**/*.css"
|
|
61
61
|
],
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "419643a2b37523e0d4add7245c4762e51356e91b"
|
|
63
63
|
}
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
list-style: none;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
.#{$prefix}--list--unordered:not(.#{$prefix}--list--nested) {
|
|
34
|
+
margin-left: $spacing-05;
|
|
35
|
+
}
|
|
36
|
+
|
|
33
37
|
.#{$prefix}--list--expressive,
|
|
34
38
|
.#{$prefix}--list--expressive .#{$prefix}--list--nested {
|
|
35
39
|
@include type.type-style('body-02');
|
|
@@ -230,6 +230,13 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
+
//-----------------------------
|
|
234
|
+
// Wrapper
|
|
235
|
+
//-----------------------------
|
|
236
|
+
.#{$prefix}--tabs__nav-item-label-wrapper {
|
|
237
|
+
display: flex;
|
|
238
|
+
}
|
|
239
|
+
|
|
233
240
|
//-----------------------------
|
|
234
241
|
// Item
|
|
235
242
|
//-----------------------------
|
|
@@ -266,6 +273,19 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
266
273
|
outline $duration-fast-01 motion(standard, productive);
|
|
267
274
|
}
|
|
268
275
|
|
|
276
|
+
//-----------------------------
|
|
277
|
+
// Icon
|
|
278
|
+
//-----------------------------
|
|
279
|
+
.#{$prefix}--tabs__nav-item--icon {
|
|
280
|
+
display: flex;
|
|
281
|
+
align-items: center;
|
|
282
|
+
padding-left: $spacing-03;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&.#{$prefix}--tabs--contained .#{$prefix}--tabs__nav-item--icon {
|
|
286
|
+
padding-left: $spacing-05;
|
|
287
|
+
}
|
|
288
|
+
|
|
269
289
|
//-----------------------------
|
|
270
290
|
// Link
|
|
271
291
|
//-----------------------------
|
|
@@ -326,8 +346,8 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
326
346
|
overflow-x: visible;
|
|
327
347
|
}
|
|
328
348
|
|
|
329
|
-
.#{$prefix}--tabs__nav-item--icon,
|
|
330
|
-
&.#{$prefix}--tabs--contained .#{$prefix}--tabs__nav-item--icon {
|
|
349
|
+
.#{$prefix}--tabs__nav-item--icon-only,
|
|
350
|
+
&.#{$prefix}--tabs--contained .#{$prefix}--tabs__nav-item--icon-only {
|
|
331
351
|
display: flex;
|
|
332
352
|
width: $icon-tab-size;
|
|
333
353
|
height: $icon-tab-size;
|
|
@@ -347,8 +367,16 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
347
367
|
//-----------------------------
|
|
348
368
|
// Item Hover
|
|
349
369
|
//-----------------------------
|
|
350
|
-
|
|
351
|
-
|
|
370
|
+
&:not(.#{$prefix}--tabs--contained)
|
|
371
|
+
.#{$prefix}--tabs__nav-item:not(.#{$prefix}--tabs__nav-item--selected):not(.#{$prefix}--tabs__nav-item--disabled):hover {
|
|
372
|
+
border-bottom: $tab-underline-color-hover;
|
|
373
|
+
color: $text-primary;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
&.#{$prefix}--tabs--contained
|
|
377
|
+
.#{$prefix}--tabs__nav-item:not(.#{$prefix}--tabs__nav-item--disabled):hover {
|
|
378
|
+
background-color: $layer-accent-hover;
|
|
379
|
+
color: $text-primary;
|
|
352
380
|
}
|
|
353
381
|
|
|
354
382
|
//-----------------------------
|
|
@@ -407,14 +435,6 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
407
435
|
background-color: $background;
|
|
408
436
|
}
|
|
409
437
|
|
|
410
|
-
//-----------------------------
|
|
411
|
-
// Link Hover
|
|
412
|
-
//-----------------------------
|
|
413
|
-
.#{$prefix}--tabs__nav-item:hover .#{$prefix}--tabs__nav-link {
|
|
414
|
-
border-bottom: $tab-underline-color-hover;
|
|
415
|
-
color: $text-primary;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
438
|
//-----------------------------
|
|
419
439
|
// Item Disabled
|
|
420
440
|
//-----------------------------
|
|
@@ -30,6 +30,14 @@
|
|
|
30
30
|
&:focus {
|
|
31
31
|
outline: none;
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.#{$prefix}--tree-node--with-icon .#{$prefix}--tree-node {
|
|
40
|
+
margin-left: $spacing-03;
|
|
33
41
|
}
|
|
34
42
|
|
|
35
43
|
.#{$prefix}--tree-node:focus > .#{$prefix}--tree-node__label {
|
|
@@ -105,6 +113,11 @@
|
|
|
105
113
|
padding-left: $spacing-07;
|
|
106
114
|
}
|
|
107
115
|
|
|
116
|
+
.#{$prefix}--tree-leaf-node.#{$prefix}--tree-node--with-icon
|
|
117
|
+
.#{$prefix}--tree-leaf-node {
|
|
118
|
+
padding-left: $spacing-06;
|
|
119
|
+
}
|
|
120
|
+
|
|
108
121
|
.#{$prefix}--tree-node__label__details {
|
|
109
122
|
display: flex;
|
|
110
123
|
align-items: center;
|
|
@@ -124,6 +137,7 @@
|
|
|
124
137
|
border: 0;
|
|
125
138
|
margin-top: $spacing-02;
|
|
126
139
|
margin-right: $spacing-02;
|
|
140
|
+
margin-left: -$spacing-02;
|
|
127
141
|
|
|
128
142
|
&:hover {
|
|
129
143
|
cursor: pointer;
|
|
@@ -150,9 +164,16 @@
|
|
|
150
164
|
align-self: flex-start;
|
|
151
165
|
margin-top: rem(1px);
|
|
152
166
|
margin-right: $spacing-03;
|
|
167
|
+
margin-left: $spacing-03;
|
|
153
168
|
fill: $icon-secondary;
|
|
154
169
|
}
|
|
155
170
|
|
|
171
|
+
.#{$prefix}--tree-parent-node__toggle
|
|
172
|
+
+ .#{$prefix}--tree-node__label__details
|
|
173
|
+
.#{$prefix}--tree-node__icon {
|
|
174
|
+
margin-left: $spacing-02;
|
|
175
|
+
}
|
|
176
|
+
|
|
156
177
|
.#{$prefix}--tree-node--selected > .#{$prefix}--tree-node__label {
|
|
157
178
|
background-color: $layer-selected-01;
|
|
158
179
|
color: $text-primary;
|