Merge pull request #6908 from jamigibbs/fix/sidebar-scroll-ios

Fixes sidebar scrolling behaviour on iOS.
This commit is contained in:
Justin Richardsson
2016-02-12 20:58:49 -05:00

View File

@ -11,7 +11,13 @@
bottom: 0; bottom: 0;
right: 0; right: 0;
overflow-x: hidden;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
display: -webkit-flex;
display: flex; display: flex;
-webkit-flex-direction: row;
flex-direction: row; flex-direction: row;
background-color: @body-bg; background-color: @body-bg;
@ -21,6 +27,7 @@
transition: transform 0.3s cubic-bezier(0.16, 0.22, 0.22, 1.7); transition: transform 0.3s cubic-bezier(0.16, 0.22, 0.22, 1.7);
&.is-collapsed { &.is-collapsed {
-webkit-transform: translateY(110%);
transform: translateX(110%); transform: translateX(110%);
} }
@ -52,9 +59,9 @@
.map-aside-action-bar { .map-aside-action-bar {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0;
right: 0; right: 0;
display: -webkit-flex;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
@ -127,6 +134,7 @@
.fa { .fa {
position:absolute; position:absolute;
top:50%; top:50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%); transform: translateY(-50%);
right:10px; right:10px;
} }
@ -185,7 +193,7 @@
margin-left:30px; margin-left:30px;
} }
} }
} }
.challengeBlockDescription { .challengeBlockDescription {
margin:0; margin:0;
@ -244,6 +252,7 @@
} }
.map-aside-action-item { .map-aside-action-item {
display: -webkit-flex;
display: flex; display: flex;
/* main axis */ /* main axis */
justify-content: center; justify-content: center;