made navbar on main page dark if short width