@carbon/styles 1.48.0-rc.0 → 1.48.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 +276 -50
- package/css/styles.min.css +1 -1
- package/package.json +3 -3
- package/scss/__tests__/theme-test.js +13 -0
- package/scss/components/date-picker/_date-picker.scss +1 -1
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +9 -1
- package/scss/components/fluid-number-input/_fluid-number-input.scss +4 -1
- package/scss/components/fluid-text-area/_fluid-text-area.scss +4 -1
- package/scss/components/list-box/_list-box.scss +8 -1
- package/scss/components/modal/_modal.scss +5 -2
- package/scss/components/number-input/_number-input.scss +6 -1
- package/scss/components/popover/_popover.scss +4 -4
- package/scss/components/select/_select.scss +2 -1
- package/scss/components/slug/_slug.scss +245 -16
- package/scss/components/text-area/_text-area.scss +2 -1
- package/scss/components/text-input/_text-input.scss +2 -1
- package/scss/components/toggletip/_toggletip.scss +0 -1
- package/scss/utilities/_ai-gradient.scss +21 -24
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.48.
|
|
4
|
+
"version": "1.48.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@carbon/grid": "^11.21.0",
|
|
44
44
|
"@carbon/layout": "^11.20.0",
|
|
45
45
|
"@carbon/motion": "^11.16.0",
|
|
46
|
-
"@carbon/themes": "^11.29.
|
|
46
|
+
"@carbon/themes": "^11.29.1",
|
|
47
47
|
"@carbon/type": "^11.25.0",
|
|
48
48
|
"@ibm/plex": "6.0.0-next.6"
|
|
49
49
|
},
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"scss/**/*.css",
|
|
66
66
|
"css/**/*.css"
|
|
67
67
|
],
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "68c58d98fe0c287eb4456c8b5153f6cb7b58c5bf"
|
|
69
69
|
}
|
|
@@ -149,6 +149,19 @@ describe('@carbon/styles/scss/theme', () => {
|
|
|
149
149
|
"ai-gradient-start-01",
|
|
150
150
|
"ai-gradient-start-02",
|
|
151
151
|
"ai-gradient-end",
|
|
152
|
+
"slug-callout-shadow-outer-01",
|
|
153
|
+
"slug-callout-shadow-outer-02",
|
|
154
|
+
"ai-inner-shadow",
|
|
155
|
+
"ai-aura-start",
|
|
156
|
+
"ai-aura-end",
|
|
157
|
+
"ai-border-strong",
|
|
158
|
+
"ai-border-start",
|
|
159
|
+
"ai-border-end",
|
|
160
|
+
"ai-drop-shadow",
|
|
161
|
+
"slug-callout-caret-center",
|
|
162
|
+
"slug-callout-caret-bottom",
|
|
163
|
+
"slug-callout-caret-bottom-background",
|
|
164
|
+
"slug-callout-caret-bottom-background-actions",
|
|
152
165
|
"highlight",
|
|
153
166
|
"overlay",
|
|
154
167
|
"toggle-off",
|
|
@@ -407,10 +407,18 @@
|
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
.#{$prefix}--date-picker--fluid
|
|
410
|
-
.#{$prefix}--date-picker-input__wrapper--slug
|
|
410
|
+
.#{$prefix}--date-picker-input__wrapper--slug:not(
|
|
411
|
+
:has(~ .#{$prefix}--slug--revert)
|
|
412
|
+
) {
|
|
411
413
|
@include ai-gradient;
|
|
412
414
|
}
|
|
413
415
|
|
|
416
|
+
.#{$prefix}--date-picker--fluid
|
|
417
|
+
.#{$prefix}--date-picker-input__wrapper--slug
|
|
418
|
+
.#{$prefix}--date-picker__input:not(.cds--date-picker__input--invalid) {
|
|
419
|
+
border-block-end-color: $ai-border-strong;
|
|
420
|
+
}
|
|
421
|
+
|
|
414
422
|
.#{$prefix}--date-picker--fluid
|
|
415
423
|
.#{$prefix}--date-picker-input__wrapper--slug
|
|
416
424
|
.#{$prefix}--date-picker__input,
|
|
@@ -303,7 +303,10 @@
|
|
|
303
303
|
padding-inline-end: convert.to-rem(120px);
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
.#{$prefix}--number-input--fluid
|
|
306
|
+
.#{$prefix}--number-input--fluid
|
|
307
|
+
.#{$prefix}--number__input-wrapper--slug:not(
|
|
308
|
+
:has(~ .#{$prefix}--slug--revert)
|
|
309
|
+
) {
|
|
307
310
|
@include ai-gradient;
|
|
308
311
|
}
|
|
309
312
|
}
|
|
@@ -219,7 +219,10 @@
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
// Slug styles
|
|
222
|
-
.#{$prefix}--text-area--fluid
|
|
222
|
+
.#{$prefix}--text-area--fluid
|
|
223
|
+
.#{$prefix}--text-area__wrapper--slug:not(
|
|
224
|
+
:has(~ .#{$prefix}--slug--revert)
|
|
225
|
+
) {
|
|
223
226
|
@include ai-gradient;
|
|
224
227
|
}
|
|
225
228
|
|
|
@@ -897,10 +897,17 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
897
897
|
transform: translateY(-50%);
|
|
898
898
|
}
|
|
899
899
|
|
|
900
|
-
.#{$prefix}--list-box__wrapper--slug
|
|
900
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
901
|
+
.#{$prefix}--list-box:not(:has(.#{$prefix}--slug--revert)) {
|
|
901
902
|
@include ai-gradient;
|
|
902
903
|
}
|
|
903
904
|
|
|
905
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
906
|
+
.#{$prefix}--list-box
|
|
907
|
+
input[role='combobox'] {
|
|
908
|
+
border-block-end-color: transparent;
|
|
909
|
+
}
|
|
910
|
+
|
|
904
911
|
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--list-box__field,
|
|
905
912
|
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--text-input--empty {
|
|
906
913
|
padding-inline-end: $spacing-10;
|
|
@@ -511,8 +511,11 @@
|
|
|
511
511
|
inset-inline-end: 0;
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
-
.#{$prefix}--modal-header
|
|
515
|
-
|
|
514
|
+
.#{$prefix}--modal-header
|
|
515
|
+
> .#{$prefix}--slug:has(+ .#{$prefix}--modal-close-button),
|
|
516
|
+
.#{$prefix}--modal-header
|
|
517
|
+
> .#{$prefix}--modal-close-button
|
|
518
|
+
~ .#{$prefix}--slug,
|
|
516
519
|
.#{$prefix}--modal--slug
|
|
517
520
|
.#{$prefix}--modal-container-body
|
|
518
521
|
> .#{$prefix}--slug {
|
|
@@ -445,13 +445,18 @@
|
|
|
445
445
|
padding-inline-end: convert.to-rem(144px);
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
.#{$prefix}--number__input-wrapper--slug
|
|
448
|
+
.#{$prefix}--number__input-wrapper--slug
|
|
449
|
+
input[type='number']:not(:has(~ .#{$prefix}--slug--revert)),
|
|
449
450
|
.#{$prefix}--number__input-wrapper--slug input[type='number']:disabled {
|
|
450
451
|
@include ai-gradient;
|
|
451
452
|
|
|
452
453
|
padding-inline-end: convert.to-rem(112px);
|
|
453
454
|
}
|
|
454
455
|
|
|
456
|
+
.#{$prefix}--number__input-wrapper--slug .#{$prefix}--number__control-btn {
|
|
457
|
+
border-block-end-color: $ai-border-strong;
|
|
458
|
+
}
|
|
459
|
+
|
|
455
460
|
// Skeleton State
|
|
456
461
|
.#{$prefix}--number.#{$prefix}--skeleton {
|
|
457
462
|
@include skeleton;
|
|
@@ -509,26 +509,26 @@ $popover-caret-height: custom-property.get-var(
|
|
|
509
509
|
.#{$prefix}--popover--left-top
|
|
510
510
|
> .#{$prefix}--popover
|
|
511
511
|
> .#{$prefix}--popover-content {
|
|
512
|
-
inset-block-start:
|
|
512
|
+
inset-block-start: 50%;
|
|
513
513
|
inset-inline-end: 100%;
|
|
514
514
|
// Add in 0.1px to prevent rounding errors where the content is
|
|
515
515
|
// moved farther than the caret
|
|
516
516
|
transform: translate(
|
|
517
517
|
calc(-1 * $popover-offset),
|
|
518
|
-
calc(-1 * 0.5 * $popover-offset
|
|
518
|
+
calc(-1 * 0.5 * $popover-offset - 16px)
|
|
519
519
|
);
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
.#{$prefix}--popover--left-bottom
|
|
523
523
|
> .#{$prefix}--popover
|
|
524
524
|
> .#{$prefix}--popover-content {
|
|
525
|
-
inset-block-end:
|
|
525
|
+
inset-block-end: 50%;
|
|
526
526
|
inset-inline-end: 100%;
|
|
527
527
|
// Add in 0.1px to prevent rounding errors where the content is
|
|
528
528
|
// moved farther than the caret
|
|
529
529
|
transform: translate(
|
|
530
530
|
calc(-1 * $popover-offset),
|
|
531
|
-
calc(0.5 * $popover-offset
|
|
531
|
+
calc(0.5 * $popover-offset + 16px)
|
|
532
532
|
);
|
|
533
533
|
}
|
|
534
534
|
|
|
@@ -288,7 +288,8 @@
|
|
|
288
288
|
transform: translateY(-50%);
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
.#{$prefix}--select--slug
|
|
291
|
+
.#{$prefix}--select--slug
|
|
292
|
+
.#{$prefix}--select-input:not(:has(~ .#{$prefix}--slug--revert)) {
|
|
292
293
|
@include ai-gradient;
|
|
293
294
|
|
|
294
295
|
padding-inline-end: $spacing-10;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
@use '../../utilities/ai-gradient' as *;
|
|
8
8
|
@use '../../utilities/convert';
|
|
9
9
|
@use '../toggletip';
|
|
10
|
+
@use '../popover';
|
|
10
11
|
|
|
11
12
|
$sizes: (
|
|
12
13
|
mini: (
|
|
@@ -328,39 +329,267 @@ $sizes: (
|
|
|
328
329
|
.#{$prefix}--slug.#{$prefix}--slug--enabled .#{$prefix}--slug-content {
|
|
329
330
|
@include callout-gradient();
|
|
330
331
|
|
|
331
|
-
border: 1px solid
|
|
332
|
-
border-radius:
|
|
333
|
-
//
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
// filter: drop-shadow(-45px 45px 100px rgba(0, 0, 0, 0.2));
|
|
338
|
-
box-shadow: -45px 45px 100px rgba(0, 0, 0, 0.2);
|
|
332
|
+
border: 1px solid transparent;
|
|
333
|
+
border-radius: convert.to-rem(8px);
|
|
334
|
+
// Need to make tokens
|
|
335
|
+
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
|
|
336
|
+
-40px 30px 100px -25px $slug-callout-shadow-outer-01,
|
|
337
|
+
-60px 80px 60px -45px $slug-callout-shadow-outer-02;
|
|
339
338
|
color: $text-primary;
|
|
340
339
|
min-inline-size: convert.to-rem(280px);
|
|
341
340
|
}
|
|
342
341
|
|
|
342
|
+
// Slug callout caret styles
|
|
343
343
|
.#{$prefix}--slug.#{$prefix}--slug--enabled
|
|
344
344
|
> .#{$prefix}--toggletip
|
|
345
345
|
> .#{$prefix}--popover
|
|
346
346
|
> .#{$prefix}--popover-caret {
|
|
347
|
-
background:
|
|
347
|
+
background: transparent;
|
|
348
|
+
clip-path: none;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// Caret pseudo element base styles
|
|
352
|
+
.#{$prefix}--slug.#{$prefix}--slug--enabled
|
|
353
|
+
> .#{$prefix}--toggletip:is(
|
|
354
|
+
.#{$prefix}--popover--top,
|
|
355
|
+
.#{$prefix}--popover--top-right,
|
|
356
|
+
.#{$prefix}--popover--top-left,
|
|
357
|
+
.#{$prefix}--popover--bottom,
|
|
358
|
+
.#{$prefix}--popover--bottom-right,
|
|
359
|
+
.#{$prefix}--popover--bottom-left,
|
|
360
|
+
.#{$prefix}--popover--left,
|
|
361
|
+
.#{$prefix}--popover--left-top,
|
|
362
|
+
.#{$prefix}--popover--left-bottom,
|
|
363
|
+
.#{$prefix}--popover--right,
|
|
364
|
+
.#{$prefix}--popover--right-top,
|
|
365
|
+
.#{$prefix}--popover--right-bottom
|
|
366
|
+
)
|
|
367
|
+
> .#{$prefix}--popover
|
|
368
|
+
> .#{$prefix}--popover-caret::before {
|
|
369
|
+
position: absolute;
|
|
370
|
+
display: block;
|
|
371
|
+
border: 1px solid $ai-border-start;
|
|
372
|
+
background: $background;
|
|
373
|
+
block-size: convert.to-rem(12px);
|
|
374
|
+
clip-path: polygon(98% 0, 0 0, -52% 150%) border-box;
|
|
375
|
+
content: '';
|
|
376
|
+
inline-size: convert.to-rem(12px);
|
|
377
|
+
transform: rotate(45deg);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.#{$prefix}--slug.#{$prefix}--slug--enabled
|
|
381
|
+
> .#{$prefix}--toggletip:is(
|
|
382
|
+
.#{$prefix}--popover--top,
|
|
383
|
+
.#{$prefix}--popover--top-right,
|
|
384
|
+
.#{$prefix}--popover--top-left,
|
|
385
|
+
.#{$prefix}--popover--bottom,
|
|
386
|
+
.#{$prefix}--popover--bottom-right,
|
|
387
|
+
.#{$prefix}--popover--bottom-left,
|
|
388
|
+
.#{$prefix}--popover--left,
|
|
389
|
+
.#{$prefix}--popover--left-top,
|
|
390
|
+
.#{$prefix}--popover--left-bottom,
|
|
391
|
+
.#{$prefix}--popover--right,
|
|
392
|
+
.#{$prefix}--popover--right-top,
|
|
393
|
+
.#{$prefix}--popover--right-bottom
|
|
394
|
+
)
|
|
395
|
+
> .#{$prefix}--popover
|
|
396
|
+
> .#{$prefix}--popover-caret::after {
|
|
397
|
+
position: absolute;
|
|
398
|
+
display: block;
|
|
399
|
+
background: $background;
|
|
400
|
+
block-size: convert.to-rem(14px);
|
|
401
|
+
content: '';
|
|
402
|
+
inline-size: convert.to-rem(2px);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
// Top
|
|
406
|
+
.#{$prefix}--slug.#{$prefix}--slug--enabled
|
|
407
|
+
> .#{$prefix}--toggletip:is(
|
|
408
|
+
.#{$prefix}--popover--top,
|
|
409
|
+
.#{$prefix}--popover--top-right,
|
|
410
|
+
.#{$prefix}--popover--top-left
|
|
411
|
+
)
|
|
412
|
+
> .#{$prefix}--popover
|
|
413
|
+
> .#{$prefix}--popover-caret {
|
|
414
|
+
&::before {
|
|
415
|
+
inset-block-end: convert.to-rem(1px);
|
|
416
|
+
transform: rotate(-135deg);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
&::after {
|
|
420
|
+
background: $slug-callout-caret-bottom-background;
|
|
421
|
+
block-size: convert.to-rem(2px);
|
|
422
|
+
border-end-end-radius: 50%;
|
|
423
|
+
border-end-start-radius: 50%;
|
|
424
|
+
inline-size: convert.to-rem(14px);
|
|
425
|
+
inset-block-start: convert.to-rem(-2px);
|
|
426
|
+
inset-inline-start: convert.to-rem(-1px);
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.#{$prefix}--slug.#{$prefix}--slug--enabled
|
|
431
|
+
> .#{$prefix}--toggletip:is(
|
|
432
|
+
.#{$prefix}--popover--top,
|
|
433
|
+
.#{$prefix}--popover--top-right,
|
|
434
|
+
.#{$prefix}--popover--top-left
|
|
435
|
+
)
|
|
436
|
+
> .#{$prefix}--popover
|
|
437
|
+
> .#{$prefix}--slug-content--with-actions
|
|
438
|
+
+ .#{$prefix}--popover-caret::after {
|
|
439
|
+
display: none;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
// Right
|
|
443
|
+
.#{$prefix}--slug.#{$prefix}--slug--enabled
|
|
444
|
+
> .#{$prefix}--toggletip:is(
|
|
445
|
+
.#{$prefix}--popover--right,
|
|
446
|
+
.#{$prefix}--popover--right-bottom,
|
|
447
|
+
.#{$prefix}--popover--right-top
|
|
448
|
+
)
|
|
449
|
+
> .#{$prefix}--popover
|
|
450
|
+
> .#{$prefix}--popover-caret {
|
|
451
|
+
&::before {
|
|
452
|
+
inset-inline-start: convert.to-rem(1px);
|
|
453
|
+
transform: rotate(-45deg);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
&::after {
|
|
457
|
+
border-end-start-radius: 50%;
|
|
458
|
+
border-start-start-radius: 50%;
|
|
459
|
+
inset-block-start: convert.to-rem(-1px);
|
|
460
|
+
inset-inline-start: convert.to-rem(6px);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
// Bottom
|
|
465
|
+
.#{$prefix}--slug.#{$prefix}--slug--enabled
|
|
466
|
+
> .#{$prefix}--toggletip:is(
|
|
467
|
+
.#{$prefix}--popover--bottom,
|
|
468
|
+
.#{$prefix}--popover--bottom-left,
|
|
469
|
+
.#{$prefix}--popover--bottom-right
|
|
470
|
+
)
|
|
471
|
+
> .#{$prefix}--popover
|
|
472
|
+
> .#{$prefix}--popover-caret {
|
|
473
|
+
&::before {
|
|
474
|
+
inset-block-start: convert.to-rem(1px);
|
|
475
|
+
transform: rotate(45deg);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
&::after {
|
|
479
|
+
block-size: convert.to-rem(2px);
|
|
480
|
+
border-start-end-radius: 50%;
|
|
481
|
+
border-start-start-radius: 50%;
|
|
482
|
+
inline-size: convert.to-rem(14px);
|
|
483
|
+
inset-block-end: convert.to-rem(-2.5px);
|
|
484
|
+
inset-inline-start: convert.to-rem(-1px);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
// Left
|
|
489
|
+
.#{$prefix}--slug.#{$prefix}--slug--enabled
|
|
490
|
+
> .#{$prefix}--toggletip:is(
|
|
491
|
+
.#{$prefix}--popover--left,
|
|
492
|
+
.#{$prefix}--popover--left-bottom,
|
|
493
|
+
.#{$prefix}--popover--left-top
|
|
494
|
+
)
|
|
495
|
+
> .#{$prefix}--popover
|
|
496
|
+
> .#{$prefix}--popover-caret {
|
|
497
|
+
&::before {
|
|
498
|
+
inset-inline-end: convert.to-rem(1px);
|
|
499
|
+
transform: rotate(135deg);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
&::after {
|
|
503
|
+
border-end-end-radius: 50%;
|
|
504
|
+
border-start-end-radius: 50%;
|
|
505
|
+
inset-block-start: convert.to-rem(-1px);
|
|
506
|
+
inset-inline-start: convert.to-rem(-2px);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
// Override for specific alignments
|
|
511
|
+
.#{$prefix}--slug.#{$prefix}--slug--enabled
|
|
512
|
+
> .#{$prefix}--toggletip:is(
|
|
513
|
+
.#{$prefix}--popover--left-bottom,
|
|
514
|
+
.#{$prefix}--popover--right-bottom
|
|
515
|
+
)
|
|
516
|
+
> .#{$prefix}--popover
|
|
517
|
+
> .#{$prefix}--popover-caret::after {
|
|
518
|
+
background: transparent;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
// Change caret color / border when it is near the bottom of the callout
|
|
522
|
+
.#{$prefix}--slug.#{$prefix}--slug--enabled
|
|
523
|
+
> .#{$prefix}--toggletip:is(
|
|
524
|
+
.#{$prefix}--popover--left-bottom,
|
|
525
|
+
.#{$prefix}--popover--right-bottom,
|
|
526
|
+
.#{$prefix}--popover--top,
|
|
527
|
+
.#{$prefix}--popover--top-right,
|
|
528
|
+
.#{$prefix}--popover--top-left
|
|
529
|
+
)
|
|
530
|
+
> .#{$prefix}--popover
|
|
531
|
+
> .#{$prefix}--popover-caret {
|
|
532
|
+
&::before {
|
|
533
|
+
border-color: $slug-callout-caret-bottom;
|
|
534
|
+
background: $slug-callout-caret-bottom-background;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
// Adjust background if actions are present
|
|
539
|
+
.#{$prefix}--slug.#{$prefix}--slug--enabled
|
|
540
|
+
> .#{$prefix}--toggletip:is(
|
|
541
|
+
.#{$prefix}--popover--left-bottom,
|
|
542
|
+
.#{$prefix}--popover--right-bottom,
|
|
543
|
+
.#{$prefix}--popover--top,
|
|
544
|
+
.#{$prefix}--popover--top-right,
|
|
545
|
+
.#{$prefix}--popover--top-left
|
|
546
|
+
)
|
|
547
|
+
> .#{$prefix}--popover:has(.#{$prefix}--slug-content--with-actions)
|
|
548
|
+
> .#{$prefix}--popover-caret {
|
|
549
|
+
&::before {
|
|
550
|
+
background: $slug-callout-caret-bottom-background-actions;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
// Change the caret border when it is near the middle of the callout
|
|
555
|
+
.#{$prefix}--slug.#{$prefix}--slug--enabled
|
|
556
|
+
> .#{$prefix}--toggletip:is(
|
|
557
|
+
.#{$prefix}--popover--left,
|
|
558
|
+
.#{$prefix}--popover--right
|
|
559
|
+
)
|
|
560
|
+
> .#{$prefix}--popover
|
|
561
|
+
> .#{$prefix}--popover-caret {
|
|
562
|
+
&::before {
|
|
563
|
+
border-color: $slug-callout-caret-center;
|
|
564
|
+
}
|
|
348
565
|
}
|
|
349
566
|
|
|
350
567
|
.#{$prefix}--slug.#{$prefix}--slug--enabled .#{$prefix}--toggletip-content {
|
|
351
568
|
// This sets the max size to the size of the action bar with 3 buttons
|
|
352
|
-
max-inline-size: convert.to-rem(334px);
|
|
353
569
|
padding-block-end: convert.to-rem(80px);
|
|
354
|
-
padding-block-start: convert.to-rem(
|
|
355
|
-
padding-inline: convert.to-rem(
|
|
570
|
+
padding-block-start: convert.to-rem(24px);
|
|
571
|
+
padding-inline: convert.to-rem(24px);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.#{$prefix}--slug.#{$prefix}--slug--enabled
|
|
575
|
+
.#{$prefix}--slug-content--with-actions
|
|
576
|
+
.#{$prefix}--toggletip-content {
|
|
577
|
+
max-inline-size: convert.to-rem(334px);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.#{$prefix}--slug.#{$prefix}--slug--enabled
|
|
581
|
+
.#{$prefix}--slug-content:not(.#{$prefix}--slug-content--with-actions)
|
|
582
|
+
.#{$prefix}--toggletip-content {
|
|
583
|
+
max-inline-size: convert.to-rem(320px);
|
|
356
584
|
}
|
|
357
585
|
|
|
358
586
|
.#{$prefix}--slug.#{$prefix}--slug--enabled .#{$prefix}--slug-actions {
|
|
359
587
|
position: absolute;
|
|
360
588
|
justify-content: flex-end;
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
border-end-
|
|
589
|
+
backdrop-filter: blur(85px);
|
|
590
|
+
background: rgba(0, 0, 0, 0.01);
|
|
591
|
+
border-end-end-radius: convert.to-rem(8px);
|
|
592
|
+
border-end-start-radius: convert.to-rem(8px);
|
|
364
593
|
column-gap: 0;
|
|
365
594
|
inline-size: 100%;
|
|
366
595
|
inset-block-end: 0;
|
|
@@ -378,7 +607,7 @@ $sizes: (
|
|
|
378
607
|
.#{$prefix}--slug-actions
|
|
379
608
|
.#{$prefix}--btn--primary {
|
|
380
609
|
order: 1;
|
|
381
|
-
border-end-end-radius: convert.to-rem(
|
|
610
|
+
border-end-end-radius: convert.to-rem(7px);
|
|
382
611
|
}
|
|
383
612
|
|
|
384
613
|
// Revert styles
|
|
@@ -136,7 +136,8 @@
|
|
|
136
136
|
transform: translate(0);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
.#{$prefix}--text-area__wrapper--slug
|
|
139
|
+
.#{$prefix}--text-area__wrapper--slug
|
|
140
|
+
.#{$prefix}--text-area:not(:has(~ .#{$prefix}--slug--revert)) {
|
|
140
141
|
@include ai-gradient;
|
|
141
142
|
|
|
142
143
|
padding-inline-end: $spacing-08;
|
|
@@ -423,7 +423,8 @@
|
|
|
423
423
|
transform: translateY(-50%);
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
.#{$prefix}--text-input__field-wrapper--slug
|
|
426
|
+
.#{$prefix}--text-input__field-wrapper--slug
|
|
427
|
+
.#{$prefix}--text-input:not(:has(~ .#{$prefix}--slug--revert)) {
|
|
427
428
|
@include ai-gradient;
|
|
428
429
|
|
|
429
430
|
padding-inline-end: $spacing-08;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
/// Adds AI gradient styles to a component
|
|
12
12
|
/// @access private
|
|
13
13
|
/// @param {String} $direction - Direction of gradient from: `left`, `right`, `top`, and `bottom`
|
|
14
|
-
/// @param {Number} $
|
|
14
|
+
/// @param {Number} $span - Percentage span of gradient with regards to parent component
|
|
15
15
|
/// @example @include ai-gradient('right', '33%');
|
|
16
16
|
/// @group utilities
|
|
17
|
-
@mixin ai-gradient($direction: '
|
|
17
|
+
@mixin ai-gradient($direction: 'bottom', $span: 50%) {
|
|
18
18
|
$deg: 0;
|
|
19
19
|
@if $direction == 'bottom' {
|
|
20
20
|
$deg: 0deg;
|
|
@@ -27,17 +27,14 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
background-image: linear-gradient(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
theme.$ai-gradient-end $width,
|
|
39
|
-
transparent 100%
|
|
40
|
-
);
|
|
30
|
+
$deg,
|
|
31
|
+
theme.$ai-inner-shadow 0%,
|
|
32
|
+
15%,
|
|
33
|
+
theme.$ai-aura-end $span,
|
|
34
|
+
transparent 100%
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
border-block-end-color: theme.$ai-border-strong;
|
|
41
38
|
}
|
|
42
39
|
|
|
43
40
|
/// Experimental - name and structure subject to change. Use at your own risk!
|
|
@@ -45,7 +42,7 @@
|
|
|
45
42
|
/// @access private
|
|
46
43
|
/// @example @include callout-gradient();
|
|
47
44
|
/// @param {String} $type - Type of gradient, either 'default', 'selected' or 'hover'
|
|
48
|
-
/// @param {Number} $
|
|
45
|
+
/// @param {Number} $offset - specify a pixel offset the callout should start from the bottom
|
|
49
46
|
/// @group utilities
|
|
50
47
|
@mixin callout-gradient($type: 'default', $offset: 0) {
|
|
51
48
|
$start: 0%;
|
|
@@ -87,16 +84,16 @@
|
|
|
87
84
|
rgba(0, 0, 0, 0.01);
|
|
88
85
|
} @else {
|
|
89
86
|
background: linear-gradient(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
transparent 50%
|
|
94
|
-
),
|
|
95
|
-
linear-gradient(
|
|
96
|
-
180deg,
|
|
97
|
-
theme.$slug-callout-gradient-top $start,
|
|
98
|
-
theme.$slug-callout-gradient-bottom 100%
|
|
87
|
+
to top,
|
|
88
|
+
theme.$ai-aura-start $start,
|
|
89
|
+
theme.$ai-aura-end 50%
|
|
99
90
|
)
|
|
100
|
-
|
|
91
|
+
padding-box,
|
|
92
|
+
linear-gradient(to top, theme.$background, theme.$background) padding-box,
|
|
93
|
+
linear-gradient(to bottom, theme.$ai-border-start, theme.$ai-border-end)
|
|
94
|
+
border-box,
|
|
95
|
+
// Needed to underlay the transparent border
|
|
96
|
+
linear-gradient(to top, theme.$background, theme.$background)
|
|
97
|
+
border-box;
|
|
101
98
|
}
|
|
102
99
|
}
|