responsive main nav

This modifies the main navigation code to adapt it to responsive design. In the standard setup, nothing should change. To see the changes you need to revert commit 0e8e608.