// Navbar vertical align
//
// Vertically center elements in the navbar.
// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.

// Refactored from Bootstrap core to take extra height argument
// for use with responsive navbar heights.
.navbar-vertical-align(@element-height, @total-height: @navbar-height) {
  margin-top: ceil((@total-height - @element-height) / 2);
  margin-bottom: floor((@total-height - @element-height) / 2);
}
