Improve doc list/picker on mobile

This commit is contained in:
Thibaut Courouble 2016-08-07 10:14:49 -04:00
parent 68f7ce02aa
commit aa6b928324
2 changed files with 6 additions and 12 deletions

View file

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

View file

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