Skip to content

Commit 97ecdad

Browse files
committed
chore: minor CSS cleanup
1 parent 40bcf78 commit 97ecdad

File tree

1 file changed

+11
-15
lines changed
  • packages/uikit-workshop/src/scripts/components/pl-drawer

1 file changed

+11
-15
lines changed

packages/uikit-workshop/src/scripts/components/pl-drawer/pl-drawer.scss

100644100755
Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ pl-drawer {
99
flex-direction: column;
1010
position: relative;
1111
position: sticky;
12+
top: auto;
13+
bottom: 0;
14+
left: 0;
15+
right: 0;
1216
z-index: 20;
13-
box-shadow: 0 0 2px 0 $pl-color-gray-70;
1417
overflow: visible;
1518
}
1619

@@ -20,23 +23,14 @@ pl-drawer {
2023
*/
2124
.pl-c-drawer {
2225
display: flex;
23-
height: 100%;
2426
flex-direction: column;
2527
font-family: $pl-font;
2628
background-color: $pl-color-gray-87;
2729
color: $pl-color-gray-20;
28-
position: sticky;
29-
top: auto;
30-
bottom: 0;
31-
left: 0;
32-
right: 0;
33-
z-index: 5;
3430
width: 100%;
3531
height: 100%;
36-
transition: transform 0.3s ease;
37-
transform: translate3d(0, 100%, 0);
32+
transform: translate3d(0, 0, 0);
3833
pointer-events: none;
39-
will-change: height, transform;
4034
overflow: hidden;
4135
max-width: 100vw;
4236

@@ -50,7 +44,6 @@ pl-drawer {
5044
* Active drawer
5145
*/
5246
&.pl-is-active {
53-
transform: translate3d(0, 0, 0);
5447
pointer-events: auto;
5548
}
5649
}
@@ -81,6 +74,10 @@ pl-drawer {
8174
flex-direction: column;
8275
flex-grow: 1;
8376
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+
}
8481
}
8582

8683
.pl-c-drawer__toolbar-controls {
@@ -89,7 +86,7 @@ pl-drawer {
8986
align-self: flex-end;
9087
position: relative;
9188
z-index: 10;
92-
flex-shrink: 0;
89+
flex-shrink: 0; // fix for IE 11 squishing UI controls
9390
}
9491

9592
/**
@@ -143,7 +140,6 @@ pl-drawer {
143140
right: 0;
144141
align-items: center;
145142
justify-content: center;
146-
left: 0;
147143
height: $pl-drawer-resizer-height;
148144
width: 100%;
149145
background-color: inherit;
@@ -160,7 +156,7 @@ pl-drawer {
160156
opacity: 0.5;
161157
background-color: currentColor;
162158
border-radius: 3px;
163-
display: block;
159+
display: block; // IE 11 bug fix
164160
}
165161

166162
&:hover:after {

0 commit comments

Comments
 (0)