mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Improve doc list/picker on mobile
This commit is contained in:
parent
68f7ce02aa
commit
aa6b928324
2 changed files with 6 additions and 12 deletions
|
@ -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'
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue