mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-06 21:56:42 +02:00
removes hardcoded value for nav-link padding
This commit is contained in:
committed by
Mark Otto
parent
8c87e019a5
commit
5f3856ce29
@@ -168,8 +168,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.nav-link {
|
.nav-link {
|
||||||
padding-right: .5rem;
|
padding-right: $navbar-nav-link-padding-x;
|
||||||
padding-left: .5rem;
|
padding-left: $navbar-nav-link-padding-x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -585,6 +585,8 @@ $nav-pills-link-active-bg: $component-active-bg !default;
|
|||||||
$navbar-padding-y: ($spacer / 2) !default;
|
$navbar-padding-y: ($spacer / 2) !default;
|
||||||
$navbar-padding-x: $spacer !default;
|
$navbar-padding-x: $spacer !default;
|
||||||
|
|
||||||
|
$navbar-nav-link-padding-x: .5rem !default;
|
||||||
|
|
||||||
$navbar-brand-font-size: $font-size-lg !default;
|
$navbar-brand-font-size: $font-size-lg !default;
|
||||||
// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link
|
// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link
|
||||||
$nav-link-height: ($font-size-base * $line-height-base + $nav-link-padding-y * 2) !default;
|
$nav-link-height: ($font-size-base * $line-height-base + $nav-link-padding-y * 2) !default;
|
||||||
|
Reference in New Issue
Block a user