Added listeners to reposition the sidebar collapse buttons on
media query change.

removed some previous tests in css.