Re-organize by media query and fix another problem with login dropdown.