@carbon/styles 1.45.0 → 1.46.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/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.46.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"scss/**/*.css",
|
|
66
66
|
"css/**/*.css"
|
|
67
67
|
],
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "89fe49b63bf2b4b5902d30f3bfeff2face55897e"
|
|
69
69
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
@use '../../spacing' as *;
|
|
13
13
|
@use '../../theme' as *;
|
|
14
14
|
@use '../../type' as *;
|
|
15
|
+
@use '../../utilities/ai-gradient' as *;
|
|
15
16
|
@use '../../utilities/convert';
|
|
16
17
|
@use '../../utilities/component-reset';
|
|
17
18
|
@use '../../utilities/focus-outline' as *;
|
|
@@ -155,7 +156,6 @@
|
|
|
155
156
|
.#{$prefix}--modal-container {
|
|
156
157
|
position: fixed;
|
|
157
158
|
display: grid;
|
|
158
|
-
overflow: hidden;
|
|
159
159
|
background-color: $layer;
|
|
160
160
|
block-size: 100%;
|
|
161
161
|
grid-template-columns: 100%;
|
|
@@ -485,6 +485,38 @@
|
|
|
485
485
|
margin: 0;
|
|
486
486
|
}
|
|
487
487
|
|
|
488
|
+
// Slug styles
|
|
489
|
+
.#{$prefix}--modal--slug .#{$prefix}--modal-container {
|
|
490
|
+
@include callout-gradient('default');
|
|
491
|
+
|
|
492
|
+
background-color: $layer;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
// Start the gradient 64px from bottom only when two buttons are present
|
|
496
|
+
.#{$prefix}--modal--slug
|
|
497
|
+
.#{$prefix}--modal-container:has(
|
|
498
|
+
.#{$prefix}--btn-set:not(.#{$prefix}--modal-footer--three-button)
|
|
499
|
+
> button:not(:only-child)
|
|
500
|
+
) {
|
|
501
|
+
@include callout-gradient('default', 64px);
|
|
502
|
+
|
|
503
|
+
background-color: $layer;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.#{$prefix}--modal--slug .#{$prefix}--slug {
|
|
507
|
+
position: absolute;
|
|
508
|
+
inset-block-start: 0;
|
|
509
|
+
inset-inline-end: 0;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.#{$prefix}--modal-header > .#{$prefix}--slug:has(+ .#{$prefix}--modal-close),
|
|
513
|
+
.#{$prefix}--modal-header > .#{$prefix}--modal-close ~ .#{$prefix}--slug,
|
|
514
|
+
.#{$prefix}--modal--slug
|
|
515
|
+
.#{$prefix}--modal-container-body
|
|
516
|
+
> .#{$prefix}--slug {
|
|
517
|
+
inset-inline-end: convert.to-rem(48px);
|
|
518
|
+
}
|
|
519
|
+
|
|
488
520
|
// Windows HCM fix
|
|
489
521
|
/* stylelint-disable */
|
|
490
522
|
.#{$prefix}--modal-close__icon {
|
|
@@ -45,50 +45,56 @@
|
|
|
45
45
|
/// @access private
|
|
46
46
|
/// @example @include callout-gradient();
|
|
47
47
|
/// @param {String} $type - Type of gradient, either 'default', 'selected' or 'hover'
|
|
48
|
+
/// @param {Number} $type - specify a pixel offset the callout should start from the bottom
|
|
48
49
|
/// @group utilities
|
|
49
|
-
@mixin callout-gradient($type: 'default') {
|
|
50
|
+
@mixin callout-gradient($type: 'default', $offset: 0) {
|
|
51
|
+
$start: 0%;
|
|
52
|
+
@if $offset != 0 {
|
|
53
|
+
$start: calc(0% + #{$offset});
|
|
54
|
+
}
|
|
55
|
+
|
|
50
56
|
@if $type == 'hover' {
|
|
51
57
|
background: linear-gradient(
|
|
52
58
|
0deg,
|
|
53
|
-
theme.$slug-callout-aura-start-hover-01
|
|
59
|
+
theme.$slug-callout-aura-start-hover-01 $start,
|
|
54
60
|
theme.$slug-callout-aura-end-hover-01 50%,
|
|
55
61
|
transparent 50%
|
|
56
62
|
),
|
|
57
63
|
linear-gradient(
|
|
58
64
|
0deg,
|
|
59
|
-
theme.$slug-callout-aura-start-hover-02
|
|
65
|
+
theme.$slug-callout-aura-start-hover-02 $start,
|
|
60
66
|
theme.$slug-callout-aura-end-hover-02 50%,
|
|
61
67
|
transparent 50%
|
|
62
68
|
),
|
|
63
69
|
linear-gradient(
|
|
64
70
|
180deg,
|
|
65
|
-
theme.$slug-callout-gradient-top-hover
|
|
71
|
+
theme.$slug-callout-gradient-top-hover $start,
|
|
66
72
|
theme.$slug-callout-gradient-bottom-hover 100%
|
|
67
73
|
)
|
|
68
74
|
rgba(0, 0, 0, 0.01);
|
|
69
75
|
} @else if $type == 'selected' {
|
|
70
76
|
background: linear-gradient(
|
|
71
77
|
0deg,
|
|
72
|
-
theme.$slug-callout-aura-start-selected
|
|
78
|
+
theme.$slug-callout-aura-start-selected $start,
|
|
73
79
|
theme.$slug-callout-aura-end-selected 50%,
|
|
74
80
|
transparent 50%
|
|
75
81
|
),
|
|
76
82
|
linear-gradient(
|
|
77
83
|
180deg,
|
|
78
|
-
theme.$slug-callout-gradient-top-selected
|
|
84
|
+
theme.$slug-callout-gradient-top-selected $start,
|
|
79
85
|
theme.$slug-callout-gradient-bottom-selected 100%
|
|
80
86
|
)
|
|
81
87
|
rgba(0, 0, 0, 0.01);
|
|
82
88
|
} @else {
|
|
83
89
|
background: linear-gradient(
|
|
84
90
|
0deg,
|
|
85
|
-
theme.$slug-callout-aura-start
|
|
91
|
+
theme.$slug-callout-aura-start $start,
|
|
86
92
|
theme.$slug-callout-aura-end 50%,
|
|
87
93
|
transparent 50%
|
|
88
94
|
),
|
|
89
95
|
linear-gradient(
|
|
90
96
|
180deg,
|
|
91
|
-
theme.$slug-callout-gradient-top
|
|
97
|
+
theme.$slug-callout-gradient-top $start,
|
|
92
98
|
theme.$slug-callout-gradient-bottom 100%
|
|
93
99
|
)
|
|
94
100
|
rgba(0, 0, 0, 0.01);
|