Window resize event listener to adjust navbar padding