Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_nav-vertical-align.scss « mixins « bootstrap « stylesheets « assets - github.com/twbs/bootstrap-sass.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f3dd2cf3125aacb361ac9263fed39d4f38f24e77 (plain)
1
2
3
4
5
6
7
8
9
10
@use "sass:math";
// 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.

@mixin navbar-vertical-align($element-height) {
  margin-top: (math.div($navbar-height - $element-height), 2);
  margin-bottom: (math.div($navbar-height - $element-height), 2);
}