History

Improve doc list/picker on mobile

Thibaut Courouble committed 10 years ago

Commit aa6b9281 parent 68f7ce02 files · +6 −12Browse files

Unified · Split

2 files
  1. assets/javascripts/views/layout/mobile.coffee +4 −1
  2. assets/stylesheets/components/_mobile.scss +2 −11
assets/javascripts/views/layout/mobile.coffee+4−1
@@ -55,7 +55,10 @@ class app.views.Mobile extends app.View · 54 unmodified lines
5555 return
5656
5757 showSidebar: =>
58− return if @isSidebarShown()
58+ if @isSidebarShown()
59+ @body.scrollTop = 0
60+ return
61+
5962 @contentTop = @body.scrollTop
6063 @content.style.display = 'none'
6164 @sidebar.style.display = 'block'
assets/stylesheets/components/_mobile.scss+2−11
@@ -55,9 +55,6 @@ · 54 unmodified lines
5555 position: static;
5656 min-height: 100%;
5757 overflow: visible;
58− padding-bottom: 2rem;
59−
60− > ._list { padding-bottom: 0; }
6158 }
6259
6360 ._list, ._sidebar-footer { width: 100%; }
@@ -81,16 +78,10 @@ · 17 unmodified lines
8178
8279 ._list-link { display: none; }
8380
84− ._sidebar-footer {
85− position: static;
86− margin-top: .5rem;
87− font-weight: bold;
88−
89− &:before { content: none; }
90− }
81+ ._sidebar-footer { box-shadow: none; }
9182
9283 ._sidebar-footer-save {
93− margin-top: 1rem;
84+ margin: 0;
9485 box-shadow: 0 1px $noteGreenBorder, 0 -1px $noteGreenBorder;
9586 }
9687