update h1 margin

updated h1 margin to better handle cases where multiple h1 tags are
present in one wiki page.
sidebar collapsing mechanism change

Changed the way sidebar collapses which will do:
* Better scrolling performance on mobile browsers.
* Allowed overflowing contents under non-toggled view.
* Consistent page width without use of calc() css function.
* Better footer position when sidebar is collapsed.