Improve doc list/picker on mobile

pull/417/merge
Thibaut Courouble 9 years ago
parent 68f7ce02aa
commit aa6b928324

@ -55,7 +55,10 @@ class app.views.Mobile extends app.View
return return
showSidebar: => showSidebar: =>
return if @isSidebarShown() if @isSidebarShown()
@body.scrollTop = 0
return
@contentTop = @body.scrollTop @contentTop = @body.scrollTop
@content.style.display = 'none' @content.style.display = 'none'
@sidebar.style.display = 'block' @sidebar.style.display = 'block'

@ -55,9 +55,6 @@
position: static; position: static;
min-height: 100%; min-height: 100%;
overflow: visible; overflow: visible;
padding-bottom: 2rem;
> ._list { padding-bottom: 0; }
} }
._list, ._sidebar-footer { width: 100%; } ._list, ._sidebar-footer { width: 100%; }
@ -81,16 +78,10 @@
._list-link { display: none; } ._list-link { display: none; }
._sidebar-footer { ._sidebar-footer { box-shadow: none; }
position: static;
margin-top: .5rem;
font-weight: bold;
&:before { content: none; }
}
._sidebar-footer-save { ._sidebar-footer-save {
margin-top: 1rem; margin: 0;
box-shadow: 0 1px $noteGreenBorder, 0 -1px $noteGreenBorder; box-shadow: 0 1px $noteGreenBorder, 0 -1px $noteGreenBorder;
} }

Loading…
Cancel
Save