update styling for the nav, so it resizes when the user scrolls down or up