diff options
Diffstat (limited to 'assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss')
-rw-r--r-- | assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss b/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss index c8fbf1a7..f3dd2cf3 100644 --- a/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +++ b/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss @@ -1,9 +1,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: (($navbar-height - $element-height) / 2); - margin-bottom: (($navbar-height - $element-height) / 2); + margin-top: (math.div($navbar-height - $element-height), 2); + margin-bottom: (math.div($navbar-height - $element-height), 2); } |