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
55 return55 return
56 56
57 showSidebar: =>57 showSidebar: =>
58 return if @isSidebarShown()58 if @isSidebarShown()
59 @body.scrollTop = 0
60 return
61
59 @contentTop = @body.scrollTop62 @contentTop = @body.scrollTop
60 @content.style.display = 'none'63 @content.style.display = 'none'
61 @sidebar.style.display = 'block'64 @sidebar.style.display = 'block'
assets/stylesheets/components/_mobile.scss+2−11
@@ -55,9 +55,6 @@ · 54 unmodified lines
55 position: static;55 position: static;
56 min-height: 100%;56 min-height: 100%;
57 overflow: visible;57 overflow: visible;
58 padding-bottom: 2rem;
59
60 > ._list { padding-bottom: 0; }
61 }58 }
62 59
63 ._list, ._sidebar-footer { width: 100%; }60 ._list, ._sidebar-footer { width: 100%; }
@@ -81,16 +78,10 @@ · 17 unmodified lines
81 78
82 ._list-link { display: none; }79 ._list-link { display: none; }
83 80
84 ._sidebar-footer {81 ._sidebar-footer { box-shadow: none; }
85 position: static;
86 margin-top: .5rem;
87 font-weight: bold;
88
89 &:before { content: none; }
90 }
91 82
92 ._sidebar-footer-save {83 ._sidebar-footer-save {
93 margin-top: 1rem;84 margin: 0;
94 box-shadow: 0 1px $noteGreenBorder, 0 -1px $noteGreenBorder;85 box-shadow: 0 1px $noteGreenBorder, 0 -1px $noteGreenBorder;
95 }86 }
96 87