@carbon/styles 1.55.0 → 1.55.1-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 +32 -13
- package/css/styles.min.css +1 -1
- package/package.json +2 -2
- package/scss/components/fluid-list-box/_fluid-list-box.scss +14 -3
- package/scss/components/fluid-select/_fluid-select.scss +9 -0
- package/scss/components/fluid-text-area/_fluid-text-area.scss +7 -0
- package/scss/components/tile/_tile.scss +12 -3
- package/scss/utilities/_ai-gradient.scss +2 -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.55.0",
|
|
4
|
+
"version": "1.55.1-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"scss/**/*.css",
|
|
69
69
|
"css/**/*.css"
|
|
70
70
|
],
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "c6ef02eb0fa5b2dcaccbbe60d45f26884a167948"
|
|
72
72
|
}
|
|
@@ -191,9 +191,10 @@
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
.#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid
|
|
194
|
+
.#{$prefix}--list-box[data-invalid]
|
|
194
195
|
.#{$prefix}--list-box__invalid-icon,
|
|
195
196
|
.#{$prefix}--list-box__wrapper--fluid
|
|
196
|
-
.#{$prefix}--list-box--warning
|
|
197
|
+
.#{$prefix}--list-box.#{$prefix}--list-box--warning
|
|
197
198
|
.#{$prefix}--list-box__invalid-icon {
|
|
198
199
|
inset-block-start: convert.to-rem(81px);
|
|
199
200
|
inset-inline-end: $spacing-05;
|
|
@@ -355,11 +356,21 @@
|
|
|
355
356
|
|
|
356
357
|
.#{$prefix}--list-box__wrapper--fluid:has(.#{$prefix}--multi-select)
|
|
357
358
|
.#{$prefix}--list-box__menu-icon {
|
|
358
|
-
inset-inline-end:
|
|
359
|
+
inset-inline-end: $spacing-04;
|
|
359
360
|
}
|
|
360
361
|
|
|
361
362
|
.#{$prefix}--list-box__wrapper--fluid:has(.#{$prefix}--dropdown)
|
|
362
363
|
.#{$prefix}--list-box__menu-icon {
|
|
363
|
-
inset-inline-end:
|
|
364
|
+
inset-inline-end: $spacing-04;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// remove slug divider when element is invalid and fluid
|
|
368
|
+
.#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--slug
|
|
369
|
+
.#{$prefix}--list-box--invalid[data-invalid]
|
|
370
|
+
.#{$prefix}--slug::before,
|
|
371
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
372
|
+
.#{$prefix}--list-box--warning
|
|
373
|
+
.#{$prefix}--slug::before {
|
|
374
|
+
display: none;
|
|
364
375
|
}
|
|
365
376
|
}
|
|
@@ -153,9 +153,11 @@
|
|
|
153
153
|
|
|
154
154
|
.#{$prefix}--select--fluid
|
|
155
155
|
.#{$prefix}--select--invalid
|
|
156
|
+
.#{$prefix}--select-input__wrapper[data-invalid]
|
|
156
157
|
.#{$prefix}--select__invalid-icon,
|
|
157
158
|
.#{$prefix}--select--fluid
|
|
158
159
|
.#{$prefix}--select--warning
|
|
160
|
+
.#{$prefix}--select-input__wrapper
|
|
159
161
|
.#{$prefix}--select__invalid-icon {
|
|
160
162
|
inset-block-start: convert.to-rem(73px);
|
|
161
163
|
inset-inline-end: $spacing-05;
|
|
@@ -208,4 +210,11 @@
|
|
|
208
210
|
.#{$prefix}--select-input {
|
|
209
211
|
padding-inline-end: $spacing-10;
|
|
210
212
|
}
|
|
213
|
+
|
|
214
|
+
// remove slug divider when element is invalid and fluid
|
|
215
|
+
.#{$prefix}--select--fluid
|
|
216
|
+
.#{$prefix}--select--slug:has(.#{$prefix}--select__invalid-icon)
|
|
217
|
+
.#{$prefix}--slug::before {
|
|
218
|
+
display: none;
|
|
219
|
+
}
|
|
211
220
|
}
|
|
@@ -236,4 +236,11 @@
|
|
|
236
236
|
~ .#{$prefix}--slug {
|
|
237
237
|
inset-inline-end: $spacing-05;
|
|
238
238
|
}
|
|
239
|
+
|
|
240
|
+
// Remove ai border when invalid
|
|
241
|
+
.#{$prefix}--text-area--fluid
|
|
242
|
+
.#{$prefix}--text-area__wrapper--slug
|
|
243
|
+
.#{$prefix}--text-area--invalid {
|
|
244
|
+
border-block-end-color: transparent;
|
|
245
|
+
}
|
|
239
246
|
}
|
|
@@ -85,6 +85,8 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
85
85
|
|
|
86
86
|
&:focus {
|
|
87
87
|
@include focus-outline('outline');
|
|
88
|
+
|
|
89
|
+
text-decoration: none;
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
&:hover,
|
|
@@ -398,7 +400,7 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
398
400
|
|
|
399
401
|
border: 1px solid transparent;
|
|
400
402
|
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
|
|
401
|
-
0
|
|
403
|
+
0 4px 8px 0 $ai-drop-shadow;
|
|
402
404
|
}
|
|
403
405
|
|
|
404
406
|
.#{$prefix}--tile--slug.#{$prefix}--tile--expandable:hover {
|
|
@@ -423,7 +425,8 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
423
425
|
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable::before {
|
|
424
426
|
@include ai-popover-gradient('hover', 0, 'layer');
|
|
425
427
|
|
|
426
|
-
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow
|
|
428
|
+
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
|
|
429
|
+
0 4px 10px 2px $ai-drop-shadow;
|
|
427
430
|
}
|
|
428
431
|
|
|
429
432
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable:hover::before,
|
|
@@ -431,10 +434,16 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
431
434
|
opacity: 1;
|
|
432
435
|
}
|
|
433
436
|
|
|
437
|
+
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable:focus,
|
|
438
|
+
.#{$prefix}--tile--slug.#{$prefix}--tile--clickable:focus {
|
|
439
|
+
outline-offset: -1px;
|
|
440
|
+
}
|
|
441
|
+
|
|
434
442
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable::after {
|
|
435
443
|
@include ai-popover-gradient('selected', 0, 'layer');
|
|
436
444
|
|
|
437
|
-
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow
|
|
445
|
+
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
|
|
446
|
+
0 4px 8px 0 $ai-drop-shadow;
|
|
438
447
|
}
|
|
439
448
|
|
|
440
449
|
.#{$prefix}--tile--slug.#{$prefix}--tile--selectable:hover::after {
|
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
background: linear-gradient(
|
|
116
116
|
to top,
|
|
117
117
|
theme.$ai-aura-start $start,
|
|
118
|
+
15%,
|
|
118
119
|
theme.$ai-aura-end 50%
|
|
119
120
|
)
|
|
120
121
|
padding-box,
|
|
@@ -129,6 +130,7 @@
|
|
|
129
130
|
to top,
|
|
130
131
|
$background $start,
|
|
131
132
|
theme.$ai-aura-start $start,
|
|
133
|
+
15%,
|
|
132
134
|
theme.$ai-aura-end 50%
|
|
133
135
|
)
|
|
134
136
|
padding-box,
|