@@ -13,26 +13,35 @@ governing permissions and limitations under the License.
13
13
@import '../overlay/index.css' ;
14
14
15
15
.spectrum-Underlay {
16
- /* Bug: this must be 0ms, not 0 */
17
- --spectrum-dialog-confirm-background-entry-animation-delay : var (--spectrum-animation-duration-0 );
18
- --spectrum-dialog-confirm-background-exit-animation-ease : cubic-bezier (0.5 , 0 , 1 , 1 ); /* wrong in DNA */
19
- --spectrum-dialog-confirm-background-entry-animation-ease : cubic-bezier (0 , 0 , 0.40 , 1 ); /* wrong in DNA */
20
- --spectrum-dialog-background-exit-animation-duration : var (--spectrum-animation-duration-100 );
21
- --spectrum-dialog-confirm-background-entry-animation-duration : var (--spectrum-animation-duration-600 );
22
- --spectrum-dialog-confirm-background-exit-animation-duration : var (----spectrum-animation-duration-300 );
23
- --spectrum-dialog-confirm-background-exit-animation-delay : var (--spectrum-animation-duration-200 );
16
+ --spectrum-underlay-background-entry-animation-delay : var (--spectrum-animation-duration-0 ); /* Bug: this must be 0ms, not 0 */
17
+ --spectrum-underlay-background-exit-animation-ease : cubic-bezier (0.5 , 0 , 1 , 1 ); /* wrong in DNA */
18
+ --spectrum-underlay-background-entry-animation-ease : cubic-bezier (0 , 0 , 0.40 , 1 ); /* wrong in DNA */
19
+ --spectrum-underlay-background-exit-animation-duration : var (--spectrum-animation-duration-100 );
20
+ --spectrum-underlay-background-entry-animation-duration : var (--spectrum-animation-duration-600 );
21
+ --spectrum-underlay-background-exit-animation-duration : var (----spectrum-animation-duration-300 );
22
+ --spectrum-underlay-background-exit-animation-delay : var (--spectrum-animation-duration-200 );
23
+
24
+ --spectrum-underlay-background-color-rgb : var (--spectrum-black-rgb );
25
+ --spectrum-underlay-background-opacity-light : var (--spectrum-transparent-black-400-opacity );
26
+ --spectrum-underlay-background-opacity-dark : 0.5 ;
27
+ --spectrum-underlay-background-opacity-darkest : 0.6 ;
28
+
29
+
24
30
25
31
.spectrum--light & ,
26
32
.spectrum--lightest & {
27
- --spectrum-dialog-background-color : rgba (var (--spectrum-black-rgb ), var (--spectrum-transparent-black-400-opacity ));
33
+ --spectrum-underlay-background-color : rgba (var (--mod-underlay-background-color-rgb , var (--spectrum-underlay-background-color-rgb )),
34
+ var (--mod-underlay-background-opacity-light , var (--spectrum-underlay-background-opacity-light )));
28
35
}
29
36
30
37
.spectrum--dark & {
31
- --spectrum-dialog-background-color : rgba (var (--spectrum-black-rgb ), 0.5 );
38
+ --spectrum-underlay-background-color : rgba (var (--mod-underlay-background-color-rgb , var (--spectrum-underlay-background-color-rgb )),
39
+ var (--mod-underlay-background-opacity-dark , var (--spectrum-underlay-background-opacity-dark )));
32
40
}
33
41
34
42
.spectrum--darkest & {
35
- --spectrum-dialog-background-color : rgba (var (--spectrum-black-rgb ), 0.6 );
43
+ --spectrum-underlay-background-color : rgba (var (--mod-underlay-background-color-rgb , var (--spectrum-underlay-background-color-rgb )),
44
+ var (--mod-underlay-background-opacity-darkest , var (--spectrum-underlay-background-opacity-darkest )));
36
45
}
37
46
}
38
47
@@ -43,28 +52,28 @@ governing permissions and limitations under the License.
43
52
inset-block : 0 ;
44
53
inset-inline : 0 ;
45
54
46
- background-color : var (--mod-dialog -background-color , var (--spectrum-dialog -background-color ));
55
+ background-color : var (--mod-underlay -background-color , var (--spectrum-underlay -background-color ));
47
56
48
57
/* Float above things by default */
49
58
z-index : 1 ;
50
59
51
60
overflow : hidden;
52
61
53
62
/* Exit animations */
54
- transition : opacity var (--mod-dialog-confirm- background-exit-animation-duration , var (--spectrum-dialog-confirm -background-exit-animation-duration ))
55
- var (--mod-dialog-confirm- background-exit-animation-ease , var (--spectrum-dialog-confirm -background-exit-animation-ease ))
56
- var (--mod-dialog-confirm- background-exit-animation-delay , var (--spectrum-dialog-confirm -background-exit-animation-delay )),
63
+ transition : opacity var (--mod-underlay- background-exit-animation-duration , var (--spectrum-underlay -background-exit-animation-duration ))
64
+ var (--mod-underlay- background-exit-animation-ease , var (--spectrum-underlay -background-exit-animation-ease ))
65
+ var (--mod-underlay- background-exit-animation-delay , var (--spectrum-underlay -background-exit-animation-delay )),
57
66
visibility 0ms
58
67
linear calc (
59
- var (--mod-dialog-confirm- background-exit-animation-delay , var (--spectrum-dialog-confirm -background-exit-animation-delay )) +
60
- var (--mod-dialog-confirm- background-exit-animation-duration , var (--spectrum-dialog-confirm -background-exit-animation-duration )));
68
+ var (--mod-underlay- background-exit-animation-delay , var (--spectrum-underlay -background-exit-animation-delay )) +
69
+ var (--mod-underlay- background-exit-animation-duration , var (--spectrum-underlay -background-exit-animation-duration )));
61
70
}
62
71
63
72
.spectrum-Underlay .is-open {
64
73
@inherit : %spectrum- overlay- - open;
65
74
66
75
/* Entry animations */
67
- transition : opacity var (--mod-dialog-confirm- background-entry-animation-duration , var (--spectrum-dialog-confirm -background-entry-animation-duration ))
68
- var (--mod-dialog-confirm- background-entry-animation-ease , var (--spectrum-dialog-confirm -background-entry-animation-ease ))
69
- var (--mod-dialog-confirm- background-entry-animation-delay , var (--spectrum-dialog-confirm -background-entry-animation-delay ));
76
+ transition : opacity var (--mod-underlay- background-entry-animation-duration , var (--spectrum-underlay -background-entry-animation-duration ))
77
+ var (--mod-underlay- background-entry-animation-ease , var (--spectrum-underlay -background-entry-animation-ease ))
78
+ var (--mod-underlay- background-entry-animation-delay , var (--spectrum-underlay -background-entry-animation-delay ));
70
79
}
0 commit comments