no width transition on sidepanel opening to avoid lag when scrollbar appears
This commit is contained in:
parent
02008791d4
commit
8a980ffb46
3 changed files with 7 additions and 5 deletions
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,5 @@
|
|||
body {
|
||||
background:$color-fg;
|
||||
background:$color-bg;
|
||||
// border:$gutter*2 solid $color-fg;
|
||||
border-radius: $border-radius
|
||||
}
|
||||
|
|
@ -14,7 +14,7 @@ body {
|
|||
flex-direction: column;
|
||||
background:$color-bg;
|
||||
padding:$gutter;
|
||||
transition:right .2s;
|
||||
// transition:right .2s;
|
||||
&.sidepanel-open {
|
||||
right:$sidepanel-size;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,12 +9,14 @@
|
|||
bottom:0;
|
||||
margin-right:-$sidepanel-size;
|
||||
background:$color-fg;
|
||||
transition:right .2s;
|
||||
transition:transform .2s;
|
||||
transform: translate3d(0,0,0);
|
||||
|
||||
overflow-y: auto;
|
||||
overflow-x: visible;
|
||||
|
||||
&.sidepanel-open {
|
||||
right:$sidepanel-size;
|
||||
transform: translate3d(- $sidepanel-size,0,0);
|
||||
}
|
||||
|
||||
#options {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue