@@ -4,18 +4,67 @@ export const globalOverlaysStyle = css`
44 .global-overlays {
55 position : fixed;
66 z-index : 200 ;
7- left : 0 ;
8- top : 0 ;
9- width : 100vw ;
10- height : 100vh ;
11- pointer-events : none;
127 }
138
149 .global-overlays__overlay ,
1510 .global-overlays__overlay--blocking {
1611 pointer-events : auto;
1712 }
1813
14+ .global-overlays__overlay-container {
15+ display : flex;
16+ position : fixed;
17+ top : 0 ;
18+ left : 0 ;
19+ width : 100% ;
20+ height : 100% ;
21+ pointer-events : none;
22+ }
23+
24+ .global-overlays__overlay-container--top-left {
25+ justify-content : flex-start;
26+ align-items : flex-start;
27+ }
28+
29+ .global-overlays__overlay-container--top {
30+ justify-content : center;
31+ align-items : flex-start;
32+ }
33+
34+ .global-overlays__overlay-container--top-right {
35+ justify-content : flex-end;
36+ align-items : flex-start;
37+ }
38+
39+ .global-overlays__overlay-container--right {
40+ justify-content : flex-end;
41+ align-items : center;
42+ }
43+
44+ .global-overlays__overlay-container--bottom-left {
45+ justify-content : flex-start;
46+ align-items : flex-end;
47+ }
48+
49+ .global-overlays__overlay-container--bottom {
50+ justify-content : center;
51+ align-items : flex-end;
52+ }
53+
54+ .global-overlays__overlay-container--bottom-right {
55+ justify-content : flex-end;
56+ align-items : flex-end;
57+ }
58+ .global-overlays__overlay-container--left {
59+ justify-content : flex-start;
60+ align-items : center;
61+ }
62+
63+ .global-overlays__overlay-container--center {
64+ justify-content : center;
65+ align-items : center;
66+ }
67+
1968 .global-overlays .global-overlays--blocking-opened .global-overlays__overlay {
2069 display : none;
2170 }
@@ -30,9 +79,10 @@ export const globalOverlaysStyle = css`
3079 content : '' ;
3180 position : fixed;
3281 top : 0 ;
33- right : 0 ;
34- bottom : 0 ;
3582 left : 0 ;
83+ width : 100% ;
84+ height : 100% ;
85+ z-index : -1 ;
3686 background-color : # 333333 ;
3787 opacity : 0.3 ;
3888 }
@@ -46,19 +96,6 @@ export const globalOverlaysStyle = css`
4696 opacity : 0 ;
4797 }
4898
49- .global-overlays .global-overlays--backdrop-fade-out {
50- content : '' ;
51- position : fixed;
52- top : 0 ;
53- right : 0 ;
54- bottom : 0 ;
55- left : 0 ;
56- background-color : # 333333 ;
57- opacity : 0 ;
58- pointer-events : none;
59- animation : global-overlays-backdrop-fade-out 300ms ;
60- }
61-
6299 @keyframes global-overlays-backdrop-fade-in {
63100 from {
64101 opacity : 0 ;
0 commit comments