@@ -9,8 +9,11 @@ pl-drawer {
9
9
flex-direction : column ;
10
10
position : relative ;
11
11
position : sticky ;
12
+ top : auto ;
13
+ bottom : 0 ;
14
+ left : 0 ;
15
+ right : 0 ;
12
16
z-index : 20 ;
13
- box-shadow : 0 0 2px 0 $pl-color-gray-70 ;
14
17
overflow : visible ;
15
18
}
16
19
@@ -20,23 +23,14 @@ pl-drawer {
20
23
*/
21
24
.pl-c-drawer {
22
25
display : flex ;
23
- height : 100% ;
24
26
flex-direction : column ;
25
27
font-family : $pl-font ;
26
28
background-color : $pl-color-gray-87 ;
27
29
color : $pl-color-gray-20 ;
28
- position : sticky ;
29
- top : auto ;
30
- bottom : 0 ;
31
- left : 0 ;
32
- right : 0 ;
33
- z-index : 5 ;
34
30
width : 100% ;
35
31
height : 100% ;
36
- transition : transform 0.3s ease ;
37
- transform : translate3d (0 , 100% , 0 );
32
+ transform : translate3d (0 , 0 , 0 );
38
33
pointer-events : none ;
39
- will-change : height , transform ;
40
34
overflow : hidden ;
41
35
max-width : 100vw ;
42
36
@@ -50,7 +44,6 @@ pl-drawer {
50
44
* Active drawer
51
45
*/
52
46
& .pl-is-active {
53
- transform : translate3d (0 , 0 , 0 );
54
47
pointer-events : auto ;
55
48
}
56
49
}
@@ -81,6 +74,10 @@ pl-drawer {
81
74
flex-direction : column ;
82
75
flex-grow : 1 ;
83
76
overflow : hidden ; // needed for IE 11 so scrollbars show up
77
+
78
+ @supports (padding : env (safe-area-inset-top )){
79
+ padding-right : calc (env (safe-area-inset-right ) - 0.9rem );
80
+ }
84
81
}
85
82
86
83
.pl-c-drawer__toolbar-controls {
@@ -89,7 +86,7 @@ pl-drawer {
89
86
align-self : flex-end ;
90
87
position : relative ;
91
88
z-index : 10 ;
92
- flex-shrink : 0 ;
89
+ flex-shrink : 0 ; // fix for IE 11 squishing UI controls
93
90
}
94
91
95
92
/* *
@@ -143,7 +140,6 @@ pl-drawer {
143
140
right : 0 ;
144
141
align-items : center ;
145
142
justify-content : center ;
146
- left : 0 ;
147
143
height : $pl-drawer-resizer-height ;
148
144
width : 100% ;
149
145
background-color : inherit ;
@@ -160,7 +156,7 @@ pl-drawer {
160
156
opacity : 0.5 ;
161
157
background-color : currentColor ;
162
158
border-radius : 3px ;
163
- display : block ;
159
+ display : block ; // IE 11 bug fix
164
160
}
165
161
166
162
& :hover :after {
0 commit comments