@carbon/styles 1.53.0 → 1.53.1
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 +146 -227
- package/css/styles.min.css +1 -1
- package/package.json +3 -3
- package/scss/__tests__/theme-test.js +3 -7
- package/scss/components/data-table/_data-table.scss +1 -1
- package/scss/components/modal/_modal.scss +3 -2
- package/scss/components/slug/_slug.scss +56 -143
- package/scss/components/tile/_tile.scss +1 -1
- package/scss/utilities/_ai-gradient.scss +8 -5
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.53.
|
|
4
|
+
"version": "1.53.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@carbon/grid": "^11.22.0",
|
|
46
46
|
"@carbon/layout": "^11.21.0",
|
|
47
47
|
"@carbon/motion": "^11.17.0",
|
|
48
|
-
"@carbon/themes": "^11.33.
|
|
48
|
+
"@carbon/themes": "^11.33.1",
|
|
49
49
|
"@carbon/type": "^11.26.0",
|
|
50
50
|
"@ibm/plex": "6.0.0-next.6",
|
|
51
51
|
"@ibm/telemetry-js": "^1.2.1"
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"scss/**/*.css",
|
|
69
69
|
"css/**/*.css"
|
|
70
70
|
],
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "56291fbf93e5fe5a8b75cdc162131784cdc57947"
|
|
72
72
|
}
|
|
@@ -127,16 +127,12 @@ describe('@carbon/styles/scss/theme', () => {
|
|
|
127
127
|
"support-caution-major",
|
|
128
128
|
"support-caution-minor",
|
|
129
129
|
"support-caution-undefined",
|
|
130
|
-
"
|
|
131
|
-
"slug-gradient",
|
|
132
|
-
"slug-background-hover",
|
|
133
|
-
"slug-gradient-hover",
|
|
134
|
-
"slug-hollow-hover",
|
|
130
|
+
"ai-popover-background",
|
|
135
131
|
"ai-popover-shadow-outer-01",
|
|
136
132
|
"ai-popover-shadow-outer-02",
|
|
137
133
|
"ai-inner-shadow",
|
|
134
|
+
"ai-aura-start-sm",
|
|
138
135
|
"ai-aura-start",
|
|
139
|
-
"ai-aura-start-table",
|
|
140
136
|
"ai-aura-end",
|
|
141
137
|
"ai-aura-hover-background",
|
|
142
138
|
"ai-aura-hover-start",
|
|
@@ -157,7 +153,7 @@ describe('@carbon/styles/scss/theme', () => {
|
|
|
157
153
|
"chat-prompt-border-end",
|
|
158
154
|
"chat-bubble-user",
|
|
159
155
|
"chat-bubble-agent",
|
|
160
|
-
"chat-bubble-
|
|
156
|
+
"chat-bubble-border",
|
|
161
157
|
"chat-avatar-bot",
|
|
162
158
|
"chat-avatar-agent",
|
|
163
159
|
"chat-avatar-user",
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
border: 1px solid transparent;
|
|
462
462
|
background-color: $layer;
|
|
463
463
|
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
|
|
464
|
-
0
|
|
464
|
+
0 24px 40px -24px $ai-drop-shadow;
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
.#{$prefix}--modal--slug
|
|
@@ -469,7 +469,8 @@
|
|
|
469
469
|
@include ai-popover-gradient('default', 64px, 'layer');
|
|
470
470
|
|
|
471
471
|
box-shadow: inset 0 -80px 0 -16px $layer,
|
|
472
|
-
inset 0 -160px 70px -65px $ai-inner-shadow,
|
|
472
|
+
inset 0 -160px 70px -65px $ai-inner-shadow,
|
|
473
|
+
0 24px 40px -24px $ai-drop-shadow;
|
|
473
474
|
}
|
|
474
475
|
|
|
475
476
|
.#{$prefix}--modal--slug .#{$prefix}--slug {
|
|
@@ -15,49 +15,42 @@ $sizes: (
|
|
|
15
15
|
width: convert.to-rem(16px),
|
|
16
16
|
font-size: convert.to-rem(9px),
|
|
17
17
|
line-height: convert.to-rem(12px),
|
|
18
|
-
background: $slug-background,
|
|
19
18
|
),
|
|
20
19
|
2xs: (
|
|
21
20
|
height: convert.to-rem(20px),
|
|
22
21
|
width: convert.to-rem(20px),
|
|
23
22
|
font-size: convert.to-rem(12px),
|
|
24
23
|
line-height: convert.to-rem(16px),
|
|
25
|
-
background: $slug-background,
|
|
26
24
|
),
|
|
27
25
|
xs: (
|
|
28
26
|
height: convert.to-rem(24px),
|
|
29
27
|
width: convert.to-rem(24px),
|
|
30
28
|
font-size: convert.to-rem(12px),
|
|
31
29
|
line-height: convert.to-rem(16px),
|
|
32
|
-
background: $slug-gradient,
|
|
33
30
|
),
|
|
34
31
|
sm: (
|
|
35
32
|
height: convert.to-rem(32px),
|
|
36
33
|
width: convert.to-rem(32px),
|
|
37
34
|
font-size: convert.to-rem(16px),
|
|
38
35
|
line-height: convert.to-rem(21px),
|
|
39
|
-
background: $slug-gradient,
|
|
40
36
|
),
|
|
41
37
|
md: (
|
|
42
38
|
height: convert.to-rem(40px),
|
|
43
39
|
width: convert.to-rem(40px),
|
|
44
40
|
font-size: convert.to-rem(16px),
|
|
45
41
|
line-height: convert.to-rem(21px),
|
|
46
|
-
background: $slug-gradient,
|
|
47
42
|
),
|
|
48
43
|
lg: (
|
|
49
44
|
height: convert.to-rem(48px),
|
|
50
45
|
width: convert.to-rem(48px),
|
|
51
46
|
font-size: convert.to-rem(16px),
|
|
52
47
|
line-height: convert.to-rem(21px),
|
|
53
|
-
background: $slug-gradient,
|
|
54
48
|
),
|
|
55
49
|
xl: (
|
|
56
50
|
height: convert.to-rem(64px),
|
|
57
51
|
width: convert.to-rem(64px),
|
|
58
52
|
font-size: convert.to-rem(20px),
|
|
59
53
|
line-height: convert.to-rem(26px),
|
|
60
|
-
background: $slug-gradient,
|
|
61
54
|
),
|
|
62
55
|
);
|
|
63
56
|
|
|
@@ -78,11 +71,15 @@ $sizes: (
|
|
|
78
71
|
display: flex;
|
|
79
72
|
align-items: center;
|
|
80
73
|
justify-content: center;
|
|
81
|
-
|
|
74
|
+
border: 1px solid $border-inverse;
|
|
75
|
+
background: transparent;
|
|
76
|
+
color: $text-primary;
|
|
82
77
|
font-weight: 600;
|
|
78
|
+
outline: none;
|
|
83
79
|
transition: color $duration-fast-01 motion(entrance, productive),
|
|
84
80
|
border-color $duration-fast-01 motion(entrance, productive),
|
|
85
|
-
box-shadow $duration-fast-01 motion(entrance, productive)
|
|
81
|
+
box-shadow $duration-fast-01 motion(entrance, productive),
|
|
82
|
+
background $duration-fast-01 motion(entrance, productive);
|
|
86
83
|
|
|
87
84
|
@each $group, $size in $sizes {
|
|
88
85
|
// Create a class for each size slug
|
|
@@ -96,91 +93,38 @@ $sizes: (
|
|
|
96
93
|
}
|
|
97
94
|
|
|
98
95
|
.#{$prefix}--slug .#{$prefix}--slug__button:focus {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.#{$prefix}--slug__text {
|
|
104
|
-
position: relative;
|
|
105
|
-
z-index: 1;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// pseudo element to animate the hover transition
|
|
109
|
-
.#{$prefix}--slug__button::before {
|
|
110
|
-
position: absolute;
|
|
111
|
-
background: $slug-gradient-hover;
|
|
112
|
-
block-size: 100%;
|
|
113
|
-
content: '';
|
|
114
|
-
inline-size: 100%;
|
|
115
|
-
opacity: 0;
|
|
116
|
-
transition: opacity $duration-fast-01 motion(entrance, productive);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.#{$prefix}--slug__button.#{$prefix}--slug__button--mini::after,
|
|
120
|
-
.#{$prefix}--slug__button.#{$prefix}--slug__button--2xs::after {
|
|
121
|
-
position: absolute;
|
|
122
|
-
block-size: convert.to-rem(24px);
|
|
123
|
-
content: '';
|
|
124
|
-
inline-size: convert.to-rem(24px);
|
|
125
|
-
opacity: 0;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.#{$prefix}--slug__button:hover::before {
|
|
129
|
-
opacity: 1;
|
|
96
|
+
border: 1px solid $focus;
|
|
97
|
+
box-shadow: inset 0 0 0 1px $focus;
|
|
130
98
|
}
|
|
131
99
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
100
|
+
.#{$prefix}--slug
|
|
101
|
+
.#{$prefix}--slug__button.#{$prefix}--slug__button--mini:focus,
|
|
102
|
+
.#{$prefix}--slug
|
|
103
|
+
.#{$prefix}--slug__button.#{$prefix}--slug__button--2xs:focus {
|
|
104
|
+
box-shadow: none;
|
|
136
105
|
}
|
|
137
106
|
|
|
138
|
-
.#{$prefix}--
|
|
139
|
-
|
|
140
|
-
|
|
107
|
+
.#{$prefix}--slug .#{$prefix}--slug__button:hover {
|
|
108
|
+
background: $border-inverse;
|
|
109
|
+
color: $text-inverse;
|
|
141
110
|
}
|
|
142
111
|
|
|
143
|
-
.#{$prefix}--
|
|
144
|
-
|
|
112
|
+
.#{$prefix}--slug .#{$prefix}--slug__button:hover:active {
|
|
113
|
+
background: $border-inverse;
|
|
145
114
|
box-shadow: inset 0 0 0 1px $focus, inset 0 0 0 2px $focus-inset;
|
|
115
|
+
color: $text-inverse;
|
|
146
116
|
}
|
|
147
117
|
|
|
148
|
-
.#{$prefix}--
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
// Hollow slug
|
|
155
|
-
// Only allow mini, 2xs, and xs sizes
|
|
156
|
-
.#{$prefix}--slug__button--hollow.#{$prefix}--slug__button--sm,
|
|
157
|
-
.#{$prefix}--slug__button--hollow.#{$prefix}--slug__button--md,
|
|
158
|
-
.#{$prefix}--slug__button--hollow.#{$prefix}--slug__button--lg,
|
|
159
|
-
.#{$prefix}--slug__button--hollow.#{$prefix}--slug__button--xl {
|
|
160
|
-
block-size: convert.to-rem(24px);
|
|
161
|
-
font-size: convert.to-rem(12px);
|
|
162
|
-
inline-size: convert.to-rem(24px);
|
|
163
|
-
line-height: convert.to-rem(16px);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.#{$prefix}--slug__button--hollow::before {
|
|
167
|
-
display: none;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.#{$prefix}--slug .#{$prefix}--slug__button--hollow {
|
|
171
|
-
border: 1px solid $border-inverse;
|
|
172
|
-
background: transparent;
|
|
173
|
-
color: $text-primary;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.#{$prefix}--slug__button--hollow:hover {
|
|
177
|
-
border-color: $slug-hollow-hover;
|
|
178
|
-
color: $slug-hollow-hover;
|
|
118
|
+
.#{$prefix}--slug
|
|
119
|
+
.#{$prefix}--slug__button.#{$prefix}--slug__button--mini:hover:active,
|
|
120
|
+
.#{$prefix}--slug
|
|
121
|
+
.#{$prefix}--slug__button.#{$prefix}--slug__button--2xs:hover:active {
|
|
122
|
+
box-shadow: inset 0 0 0 1px $focus-inset;
|
|
179
123
|
}
|
|
180
124
|
|
|
181
|
-
.#{$prefix}--
|
|
182
|
-
|
|
183
|
-
|
|
125
|
+
.#{$prefix}--slug__text {
|
|
126
|
+
position: relative;
|
|
127
|
+
z-index: 1;
|
|
184
128
|
}
|
|
185
129
|
|
|
186
130
|
// Inline slug
|
|
@@ -205,8 +149,11 @@ $sizes: (
|
|
|
205
149
|
box-shadow: none;
|
|
206
150
|
}
|
|
207
151
|
|
|
208
|
-
.#{$prefix}--slug .#{$prefix}--slug__button--inline:hover
|
|
152
|
+
.#{$prefix}--slug .#{$prefix}--slug__button--inline:hover,
|
|
153
|
+
.#{$prefix}--slug .#{$prefix}--slug__button--inline:hover:active {
|
|
209
154
|
border-color: $icon-secondary;
|
|
155
|
+
background: transparent;
|
|
156
|
+
box-shadow: none;
|
|
210
157
|
color: $text-secondary;
|
|
211
158
|
}
|
|
212
159
|
|
|
@@ -220,18 +167,13 @@ $sizes: (
|
|
|
220
167
|
background: $icon-secondary;
|
|
221
168
|
}
|
|
222
169
|
|
|
223
|
-
.#{$prefix}--slug--hollow
|
|
224
|
-
.#{$prefix}--slug__button--inline:hover
|
|
225
|
-
.#{$prefix}--slug__text::before {
|
|
226
|
-
background: transparent;
|
|
227
|
-
box-shadow: inset 0 0 0 1px $icon-secondary;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
170
|
.#{$prefix}--slug__button--inline .#{$prefix}--slug__text {
|
|
231
171
|
padding-inline-start: convert.to-rem(8px);
|
|
232
172
|
}
|
|
233
173
|
|
|
234
174
|
.#{$prefix}--slug__button--inline.#{$prefix}--slug__button--lg
|
|
175
|
+
.#{$prefix}--slug__text,
|
|
176
|
+
.#{$prefix}--slug__button--inline.#{$prefix}--slug__button--xl
|
|
235
177
|
.#{$prefix}--slug__text {
|
|
236
178
|
padding-inline-start: convert.to-rem(12px);
|
|
237
179
|
}
|
|
@@ -251,27 +193,8 @@ $sizes: (
|
|
|
251
193
|
box-shadow $duration-fast-01 motion(entrance, productive);
|
|
252
194
|
}
|
|
253
195
|
|
|
254
|
-
// Inline slug hollow dot
|
|
255
|
-
.#{$prefix}--slug--hollow .#{$prefix}--slug__text::before {
|
|
256
|
-
background: transparent;
|
|
257
|
-
block-size: convert.to-rem(6px);
|
|
258
|
-
box-shadow: inset 0 0 0 1px $icon-primary;
|
|
259
|
-
inline-size: convert.to-rem(6px);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.#{$prefix}--slug--hollow
|
|
263
|
-
.#{$prefix}--slug__button--sm
|
|
264
|
-
.#{$prefix}--slug__text,
|
|
265
|
-
.#{$prefix}--slug--hollow
|
|
266
|
-
.#{$prefix}--slug__button--md
|
|
267
|
-
.#{$prefix}--slug__text {
|
|
268
|
-
padding-inline-start: convert.to-rem(9px);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
196
|
.#{$prefix}--slug__button--lg .#{$prefix}--slug__text::before,
|
|
272
|
-
.#{$prefix}--
|
|
273
|
-
.#{$prefix}--slug__button--lg
|
|
274
|
-
.#{$prefix}--slug__text::before {
|
|
197
|
+
.#{$prefix}--slug__button--xl .#{$prefix}--slug__text::before {
|
|
275
198
|
block-size: convert.to-rem(8px);
|
|
276
199
|
inline-size: convert.to-rem(8px);
|
|
277
200
|
}
|
|
@@ -316,31 +239,27 @@ $sizes: (
|
|
|
316
239
|
font-size: convert.to-rem(14px);
|
|
317
240
|
}
|
|
318
241
|
|
|
319
|
-
.#{$prefix}--slug .#{$prefix}--slug__button--inline-with-content:focus
|
|
242
|
+
.#{$prefix}--slug .#{$prefix}--slug__button--inline-with-content:focus,
|
|
243
|
+
.#{$prefix}--slug .#{$prefix}--slug__button--inline-with-content:hover:focus {
|
|
320
244
|
box-shadow: inset 0 0 0 1px $focus;
|
|
321
245
|
}
|
|
322
246
|
|
|
323
|
-
// Default callout styles
|
|
324
|
-
.#{$prefix}--slug.#{$prefix}--slug--hollow .#{$prefix}--toggletip-content {
|
|
325
|
-
row-gap: 0;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
247
|
// Slug callout styles
|
|
329
|
-
.#{$prefix}--slug
|
|
248
|
+
.#{$prefix}--slug .#{$prefix}--slug-content {
|
|
330
249
|
@include ai-popover-gradient();
|
|
331
250
|
|
|
332
251
|
border: 1px solid transparent;
|
|
333
252
|
border-radius: convert.to-rem(8px);
|
|
334
253
|
// Need to make tokens
|
|
335
254
|
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
|
|
336
|
-
-40px
|
|
337
|
-
-
|
|
255
|
+
-40px 44px 60px -24px $ai-popover-shadow-outer-01,
|
|
256
|
+
-56px 64px 64px -24px $ai-popover-shadow-outer-02;
|
|
338
257
|
color: $text-primary;
|
|
339
258
|
min-inline-size: convert.to-rem(280px);
|
|
340
259
|
}
|
|
341
260
|
|
|
342
261
|
// Slug callout caret styles
|
|
343
|
-
.#{$prefix}--slug
|
|
262
|
+
.#{$prefix}--slug
|
|
344
263
|
> .#{$prefix}--toggletip
|
|
345
264
|
> .#{$prefix}--popover
|
|
346
265
|
> .#{$prefix}--popover-caret {
|
|
@@ -349,7 +268,7 @@ $sizes: (
|
|
|
349
268
|
}
|
|
350
269
|
|
|
351
270
|
// Caret pseudo element base styles
|
|
352
|
-
.#{$prefix}--slug
|
|
271
|
+
.#{$prefix}--slug
|
|
353
272
|
> .#{$prefix}--toggletip:is(
|
|
354
273
|
.#{$prefix}--popover--top,
|
|
355
274
|
.#{$prefix}--popover--top-right,
|
|
@@ -377,7 +296,7 @@ $sizes: (
|
|
|
377
296
|
transform: rotate(45deg);
|
|
378
297
|
}
|
|
379
298
|
|
|
380
|
-
.#{$prefix}--slug
|
|
299
|
+
.#{$prefix}--slug
|
|
381
300
|
> .#{$prefix}--toggletip:is(
|
|
382
301
|
.#{$prefix}--popover--top,
|
|
383
302
|
.#{$prefix}--popover--top-right,
|
|
@@ -403,7 +322,7 @@ $sizes: (
|
|
|
403
322
|
}
|
|
404
323
|
|
|
405
324
|
// Top
|
|
406
|
-
.#{$prefix}--slug
|
|
325
|
+
.#{$prefix}--slug
|
|
407
326
|
> .#{$prefix}--toggletip:is(
|
|
408
327
|
.#{$prefix}--popover--top,
|
|
409
328
|
.#{$prefix}--popover--top-right,
|
|
@@ -427,7 +346,7 @@ $sizes: (
|
|
|
427
346
|
}
|
|
428
347
|
}
|
|
429
348
|
|
|
430
|
-
.#{$prefix}--slug
|
|
349
|
+
.#{$prefix}--slug
|
|
431
350
|
> .#{$prefix}--toggletip:is(
|
|
432
351
|
.#{$prefix}--popover--top,
|
|
433
352
|
.#{$prefix}--popover--top-right,
|
|
@@ -440,7 +359,7 @@ $sizes: (
|
|
|
440
359
|
}
|
|
441
360
|
|
|
442
361
|
// Right
|
|
443
|
-
.#{$prefix}--slug
|
|
362
|
+
.#{$prefix}--slug
|
|
444
363
|
> .#{$prefix}--toggletip:is(
|
|
445
364
|
.#{$prefix}--popover--right,
|
|
446
365
|
.#{$prefix}--popover--right-bottom,
|
|
@@ -462,7 +381,7 @@ $sizes: (
|
|
|
462
381
|
}
|
|
463
382
|
|
|
464
383
|
// Bottom
|
|
465
|
-
.#{$prefix}--slug
|
|
384
|
+
.#{$prefix}--slug
|
|
466
385
|
> .#{$prefix}--toggletip:is(
|
|
467
386
|
.#{$prefix}--popover--bottom,
|
|
468
387
|
.#{$prefix}--popover--bottom-left,
|
|
@@ -486,7 +405,7 @@ $sizes: (
|
|
|
486
405
|
}
|
|
487
406
|
|
|
488
407
|
// Left
|
|
489
|
-
.#{$prefix}--slug
|
|
408
|
+
.#{$prefix}--slug
|
|
490
409
|
> .#{$prefix}--toggletip:is(
|
|
491
410
|
.#{$prefix}--popover--left,
|
|
492
411
|
.#{$prefix}--popover--left-bottom,
|
|
@@ -508,7 +427,7 @@ $sizes: (
|
|
|
508
427
|
}
|
|
509
428
|
|
|
510
429
|
// Override for specific alignments
|
|
511
|
-
.#{$prefix}--slug
|
|
430
|
+
.#{$prefix}--slug
|
|
512
431
|
> .#{$prefix}--toggletip:is(
|
|
513
432
|
.#{$prefix}--popover--left-bottom,
|
|
514
433
|
.#{$prefix}--popover--right-bottom
|
|
@@ -519,7 +438,7 @@ $sizes: (
|
|
|
519
438
|
}
|
|
520
439
|
|
|
521
440
|
// Change caret color / border when it is near the bottom of the callout
|
|
522
|
-
.#{$prefix}--slug
|
|
441
|
+
.#{$prefix}--slug
|
|
523
442
|
> .#{$prefix}--toggletip:is(
|
|
524
443
|
.#{$prefix}--popover--left-bottom,
|
|
525
444
|
.#{$prefix}--popover--right-bottom,
|
|
@@ -536,7 +455,7 @@ $sizes: (
|
|
|
536
455
|
}
|
|
537
456
|
|
|
538
457
|
// Adjust background if actions are present
|
|
539
|
-
.#{$prefix}--slug
|
|
458
|
+
.#{$prefix}--slug
|
|
540
459
|
> .#{$prefix}--toggletip:is(
|
|
541
460
|
.#{$prefix}--popover--left-bottom,
|
|
542
461
|
.#{$prefix}--popover--right-bottom,
|
|
@@ -552,7 +471,7 @@ $sizes: (
|
|
|
552
471
|
}
|
|
553
472
|
|
|
554
473
|
// Change the caret border when it is near the middle of the callout
|
|
555
|
-
.#{$prefix}--slug
|
|
474
|
+
.#{$prefix}--slug
|
|
556
475
|
> .#{$prefix}--toggletip:is(
|
|
557
476
|
.#{$prefix}--popover--left,
|
|
558
477
|
.#{$prefix}--popover--right
|
|
@@ -564,20 +483,18 @@ $sizes: (
|
|
|
564
483
|
}
|
|
565
484
|
}
|
|
566
485
|
|
|
567
|
-
.#{$prefix}--slug
|
|
486
|
+
.#{$prefix}--slug .#{$prefix}--toggletip-content {
|
|
568
487
|
// This sets the max size to the size of the action bar with 3 buttons
|
|
569
488
|
padding-block-end: convert.to-rem(80px);
|
|
570
489
|
padding-block-start: convert.to-rem(24px);
|
|
571
490
|
padding-inline: convert.to-rem(24px);
|
|
572
491
|
}
|
|
573
492
|
|
|
574
|
-
.#{$prefix}--slug.#{$prefix}--slug--
|
|
575
|
-
.#{$prefix}--slug-content
|
|
576
|
-
.#{$prefix}--toggletip-content {
|
|
493
|
+
.#{$prefix}--slug .#{$prefix}--slug-content .#{$prefix}--toggletip-content {
|
|
577
494
|
max-inline-size: convert.to-rem(320px);
|
|
578
495
|
}
|
|
579
496
|
|
|
580
|
-
.#{$prefix}--slug
|
|
497
|
+
.#{$prefix}--slug .#{$prefix}--slug-actions {
|
|
581
498
|
position: absolute;
|
|
582
499
|
justify-content: flex-end;
|
|
583
500
|
backdrop-filter: blur(85px);
|
|
@@ -590,16 +507,12 @@ $sizes: (
|
|
|
590
507
|
inset-inline-end: 0;
|
|
591
508
|
}
|
|
592
509
|
|
|
593
|
-
.#{$prefix}--slug.#{$prefix}--slug--
|
|
594
|
-
.#{$prefix}--slug-actions
|
|
595
|
-
.#{$prefix}--btn:focus {
|
|
510
|
+
.#{$prefix}--slug .#{$prefix}--slug-actions .#{$prefix}--btn:focus {
|
|
596
511
|
border-color: $focus;
|
|
597
512
|
box-shadow: inset 0 0 0 1px $focus, inset 0 0 0 2px $background;
|
|
598
513
|
}
|
|
599
514
|
|
|
600
|
-
.#{$prefix}--slug.#{$prefix}--slug--
|
|
601
|
-
.#{$prefix}--slug-actions
|
|
602
|
-
.#{$prefix}--btn--primary {
|
|
515
|
+
.#{$prefix}--slug .#{$prefix}--slug-actions .#{$prefix}--btn--primary {
|
|
603
516
|
order: 1;
|
|
604
517
|
border-end-end-radius: convert.to-rem(7px);
|
|
605
518
|
}
|
|
@@ -398,7 +398,7 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
|
|
|
398
398
|
|
|
399
399
|
border: 1px solid transparent;
|
|
400
400
|
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
|
|
401
|
-
0
|
|
401
|
+
0 24px 40px -24px $ai-drop-shadow;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
.#{$prefix}--tile--slug.#{$prefix}--tile--expandable:hover {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
background-image: linear-gradient(
|
|
31
31
|
$deg,
|
|
32
|
-
theme.$ai-
|
|
32
|
+
theme.$ai-aura-start-sm 0%,
|
|
33
33
|
15%,
|
|
34
34
|
theme.$ai-aura-end $span,
|
|
35
35
|
transparent 100%
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
} @else if $type == 'selected' {
|
|
51
51
|
background: linear-gradient(
|
|
52
52
|
to right,
|
|
53
|
-
theme.$ai-
|
|
53
|
+
theme.$ai-aura-start-sm 0%,
|
|
54
54
|
theme.$ai-aura-end 50%,
|
|
55
55
|
transparent 50%
|
|
56
56
|
),
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
} @else {
|
|
59
59
|
background: linear-gradient(
|
|
60
60
|
to right,
|
|
61
|
-
theme.$ai-aura-start-
|
|
61
|
+
theme.$ai-aura-start-sm 0%,
|
|
62
62
|
theme.$ai-aura-end $span,
|
|
63
63
|
transparent 50%
|
|
64
64
|
);
|
|
@@ -76,14 +76,17 @@
|
|
|
76
76
|
@mixin ai-popover-gradient(
|
|
77
77
|
$type: 'default',
|
|
78
78
|
$offset: 0,
|
|
79
|
-
$background: 'background'
|
|
79
|
+
$background: 'ai-popover-background'
|
|
80
80
|
) {
|
|
81
81
|
$start: 0%;
|
|
82
82
|
@if $offset != 0 {
|
|
83
83
|
$start: calc(0% + #{$offset});
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
$background: custom-property.get-var(
|
|
86
|
+
$background: custom-property.get-var(
|
|
87
|
+
#{$background},
|
|
88
|
+
theme.$ai-popover-background
|
|
89
|
+
);
|
|
87
90
|
|
|
88
91
|
@if $type == 'hover' {
|
|
89
92
|
background: linear-gradient(
|