File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed
Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 77 : is (.dialog ) {
88 border : 0 ;
99 opacity : 0 ;
10- transform : scale (0.9 );
10+ transform : scale (0.85 );
1111 transform-origin : center;
12- transition : var (--dialog-duration ) ease-out allow-discrete;
13- transition-property : opacity, overlay, transform;
12+ transition-behavior : allow-discrete;
13+ transition-duration : calc (var (--dialog-duration ) / 2 ); /* Faster closing */
14+ transition-property : display, opacity, overlay, transform;
15+ transition-timing-function : ease-out;
1416
1517 & ::backdrop {
1618 background-color : var (--color-black );
17- opacity : 0.4 ;
18- transition : var (--dialog-duration ) ease-out allow-discrete;
19- transition-property : opacity, overlay;
19+ opacity : 0 ;
20+ transition-behavior : allow-discrete;
21+ transition-duration : calc (var (--dialog-duration ) / 2 );
22+ transition-property : display, opacity, overlay;
23+ transition-timing-function : ease-out;
2024 }
2125
2226 & [open ] {
2327 opacity : 1 ;
2428 transform : scale (1 );
29+ transition-duration : var (--dialog-duration ); /* Normal opening speed */
2530
2631 & ::backdrop {
2732 opacity : 0.5 ;
33+ transition-duration : var (--dialog-duration );
2834 }
2935 }
3036
3137 @starting-style {
3238 & [open ] {
3339 opacity : 0 ;
34- transform : scale (0.9 );
40+ transform : scale (0.85 );
3541 }
3642
3743 & [open ]::backdrop {
38- opacity : 0.4 ;
44+ opacity : 0 ;
3945 }
4046 }
4147 }
You can’t perform that action at this time.
0 commit comments