vertical adjust to navbar background and shadow