no width transition on sidepanel opening to avoid lag when scrollbar appears

This commit is contained in:
jean-emmanuel 2016-03-21 13:46:23 +01:00
parent 02008791d4
commit 8a980ffb46
3 changed files with 7 additions and 5 deletions

File diff suppressed because one or more lines are too long

View file

@ -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;
}

View file

@ -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 {