2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

Fix some instances of lazy Sass math when multiplying new CSS var based border-width

This commit is contained in:
Mark Otto
2022-03-10 12:38:07 -08:00
committed by Mark Otto
parent 05c6e7dd66
commit 63145c8bc6
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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);
}