diff --git a/src/resources/formats/html/bootstrap/dist/scss/_variables.scss b/src/resources/formats/html/bootstrap/dist/scss/_variables.scss
index ffda0d61d6..e19750ec47 100644
--- a/src/resources/formats/html/bootstrap/dist/scss/_variables.scss
+++ b/src/resources/formats/html/bootstrap/dist/scss/_variables.scss
@@ -1164,8 +1164,8 @@ $zindex-levels: (
// Navs
// scss-docs-start nav-variables
-$nav-link-padding-y: .5rem !default;
-$nav-link-padding-x: 1rem !default;
+$nav-link-padding-y: ($font-size-base * 0.5) !default;
+$nav-link-padding-x: $font-size-base !default;
$nav-link-font-size: null !default;
$nav-link-font-weight: null !default;
$nav-link-color: $link-color !default;