Better fix for #182.

Uses media queries instead of JS to show/hide the sidebar. Now JS
is just used for positioning them vertically.