aboutsummaryrefslogtreecommitdiff
path: root/scss/_nav.scss
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2022-03-10 12:38:07 -0800
committerMark Otto <[email protected]>2022-03-11 09:04:13 -0800
commit63145c8bc6bb26f7651fbd6cfe626068704cdf76 (patch)
tree35c1732f7cd07117fbb8b98b6f7af29be999736d /scss/_nav.scss
parent05c6e7dd66c10af8b2f8345b48c26de12f769335 (diff)
downloadbootstrap-63145c8bc6bb26f7651fbd6cfe626068704cdf76.tar.xz
bootstrap-63145c8bc6bb26f7651fbd6cfe626068704cdf76.zip
Fix some instances of lazy Sass math when multiplying new CSS var based border-width
Diffstat (limited to 'scss/_nav.scss')
-rw-r--r--scss/_nav.scss4
1 files changed, 2 insertions, 2 deletions
diff --git a/scss/_nav.scss b/scss/_nav.scss
index 8660a4dbc..62a2fa682 100644
--- a/scss/_nav.scss
+++ b/scss/_nav.scss
@@ -42,7 +42,7 @@
border-bottom: $nav-tabs-border-width solid $nav-tabs-border-color;
.nav-link {
- margin-bottom: -$nav-tabs-border-width;
+ margin-bottom: calc($nav-tabs-border-width * -1); // stylelint-disable-line function-disallowed-list
background: none;
border: $nav-tabs-border-width solid transparent;
@include border-top-radius($nav-tabs-border-radius);
@@ -70,7 +70,7 @@
.dropdown-menu {
// Make dropdown border overlap tab border
- margin-top: -$nav-tabs-border-width;
+ margin-top: calc($nav-tabs-border-width * -1); // stylelint-disable-line function-disallowed-list
// Remove the top rounded corners here since there is a hard edge above the menu
@include border-top-radius(0);
}