@carbon/styles 1.77.1 → 1.77.2
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.77.
|
|
4
|
+
"version": "1.77.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@carbon/colors": "^11.30.0",
|
|
44
|
-
"@carbon/feature-flags": "^0.24.
|
|
45
|
-
"@carbon/grid": "^11.32.
|
|
46
|
-
"@carbon/layout": "^11.30.
|
|
44
|
+
"@carbon/feature-flags": "^0.24.0",
|
|
45
|
+
"@carbon/grid": "^11.32.2",
|
|
46
|
+
"@carbon/layout": "^11.30.2",
|
|
47
47
|
"@carbon/motion": "^11.25.0",
|
|
48
|
-
"@carbon/themes": "^11.48.
|
|
49
|
-
"@carbon/type": "^11.36.
|
|
48
|
+
"@carbon/themes": "^11.48.2",
|
|
49
|
+
"@carbon/type": "^11.36.2",
|
|
50
50
|
"@ibm/plex": "6.0.0-next.6",
|
|
51
51
|
"@ibm/plex-mono": "0.0.3-alpha.0",
|
|
52
52
|
"@ibm/plex-sans": "0.0.3-alpha.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"scss/**/*.css",
|
|
76
76
|
"css/**/*.css"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "5c8f7e2a47c2bfb2865f1f2f4efe55b26f45ad5c"
|
|
79
79
|
}
|
package/scss/_feature-flags.scss
CHANGED
|
@@ -18,14 +18,16 @@
|
|
|
18
18
|
@use '../../utilities/component-reset';
|
|
19
19
|
@use '../../utilities/focus-outline' as *;
|
|
20
20
|
@use '../../utilities/high-contrast-mode' as *;
|
|
21
|
+
@use '../../utilities/z-index' as *;
|
|
21
22
|
|
|
22
23
|
/// Dialog styles
|
|
23
24
|
/// @access public
|
|
24
25
|
/// @group dialog
|
|
25
26
|
@mixin dialog {
|
|
26
27
|
.#{$prefix}--dialog {
|
|
28
|
+
/* size */
|
|
27
29
|
padding: 0;
|
|
28
|
-
border:
|
|
30
|
+
border: 1px solid $border-subtle-01;
|
|
29
31
|
background-color: $layer;
|
|
30
32
|
color: $text-primary;
|
|
31
33
|
inline-size: 48rem;
|
|
@@ -99,6 +101,15 @@
|
|
|
99
101
|
min-block-size: $spacing-09;
|
|
100
102
|
}
|
|
101
103
|
|
|
104
|
+
.#{$prefix}--dialog__content {
|
|
105
|
+
padding: $spacing-05;
|
|
106
|
+
block-size: 100%;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.#{$prefix}--dialog--modal {
|
|
110
|
+
border: 1px solid transparent;
|
|
111
|
+
}
|
|
112
|
+
|
|
102
113
|
/* Transition the :backdrop when the dialog modal is promoted to the top layer */
|
|
103
114
|
.#{$prefix}--dialog::backdrop {
|
|
104
115
|
background-color: $overlay;
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
@use '../button';
|
|
9
9
|
@use '../../config' as *;
|
|
10
|
-
@use '../../feature-flags' as *;
|
|
11
10
|
@use '../../breakpoint' as *;
|
|
12
11
|
@use '../../motion' as *;
|
|
13
12
|
@use '../../spacing' as *;
|
|
@@ -24,57 +23,34 @@
|
|
|
24
23
|
/// Modal styles
|
|
25
24
|
/// @access public
|
|
26
25
|
/// @group modal
|
|
27
|
-
@mixin modal
|
|
28
|
-
$enable-experimental-focus-wrap-without-sentinels: false,
|
|
29
|
-
$enable-dialog-element: false
|
|
30
|
-
) {
|
|
26
|
+
@mixin modal {
|
|
31
27
|
.#{$prefix}--modal {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
inset-inline-start: 0;
|
|
52
|
-
opacity: 0;
|
|
28
|
+
position: fixed;
|
|
29
|
+
z-index: z('modal');
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
background-color: $overlay;
|
|
34
|
+
block-size: 100vh;
|
|
35
|
+
content: '';
|
|
36
|
+
inline-size: 100vw;
|
|
37
|
+
inset-block-start: 0;
|
|
38
|
+
inset-inline-start: 0;
|
|
39
|
+
opacity: 0;
|
|
40
|
+
transition:
|
|
41
|
+
opacity $duration-moderate-02 motion(exit, expressive),
|
|
42
|
+
visibility 0ms linear $duration-moderate-02;
|
|
43
|
+
visibility: hidden;
|
|
44
|
+
|
|
45
|
+
&.is-visible {
|
|
46
|
+
opacity: 1;
|
|
53
47
|
transition:
|
|
54
|
-
opacity $duration-moderate-02 motion(
|
|
55
|
-
visibility 0ms linear
|
|
56
|
-
visibility:
|
|
57
|
-
}
|
|
48
|
+
opacity $duration-moderate-02 motion(entrance, expressive),
|
|
49
|
+
visibility 0ms linear;
|
|
50
|
+
visibility: inherit;
|
|
58
51
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
@if not(
|
|
62
|
-
enabled('enable-experimental-focus-wrap-without-sentinels') or
|
|
63
|
-
$enable-experimental-focus-wrap-without-sentinels or
|
|
64
|
-
enabled('enable-dialog-element') or
|
|
65
|
-
$enable-dialog-element
|
|
66
|
-
)
|
|
67
|
-
{
|
|
68
|
-
&.is-visible {
|
|
69
|
-
opacity: 1;
|
|
70
|
-
transition:
|
|
71
|
-
opacity $duration-moderate-02 motion(entrance, expressive),
|
|
72
|
-
visibility 0ms linear;
|
|
73
|
-
visibility: inherit;
|
|
74
|
-
|
|
75
|
-
@media screen and (prefers-reduced-motion: reduce) {
|
|
76
|
-
transition: none;
|
|
77
|
-
}
|
|
52
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
53
|
+
transition: none;
|
|
78
54
|
}
|
|
79
55
|
}
|
|
80
56
|
|