Skip to content
Snippets Groups Projects
Commit 25d03630 authored by Ivica Puljic's avatar Ivica Puljic Committed by Ivica Puljic
Browse files

Issue #3358668 by pivica: Do not use calc in $navbar-second-level-height variable

parent 3407f5b0
No related branches found
No related tags found
No related merge requests found
// First and second levels are horizontal, third is a dropdown.
$navbar-second-level-height: calc(#{$navbar-2nd-link-padding-x + $navbar-2nd-link-padding-y + $navbar-2nd-font-size * $line-height-base} + #{$navbar-2nd-border-bottom-width}) !default;
$navbar-second-level-height: #{$navbar-2nd-link-padding-x + $navbar-2nd-link-padding-y + $navbar-2nd-font-size * $line-height-base} + #{$navbar-2nd-border-bottom-width} !default;
@if breakpoint-max($navbar-collapse-responsive-break) != null {
@include media-breakpoint-up($navbar-collapse-responsive-break) {
......@@ -8,7 +8,7 @@ $navbar-second-level-height: calc(#{$navbar-2nd-link-padding-x + $navbar-2nd-lin
&.second-level-expanded {
// Claim the space for 2nd navigation line.
@if ($navbar-second-level-height) {
#{$navbar-second-level-distance-type}-bottom: $navbar-second-level-height;
#{$navbar-second-level-distance-type}-bottom: calc(#{$navbar-second-level-height});
}
// In this case border bottom will be wrongly applied, because of a
......@@ -31,7 +31,7 @@ $navbar-second-level-height: calc(#{$navbar-2nd-link-padding-x + $navbar-2nd-lin
left: 0;
display: block;
width: 100%;
height: $navbar-second-level-height;
height: calc(#{$navbar-second-level-height});
content: '';
z-index: 1;
@if ($navbar-2nd-bg) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment