1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-27 23:30:04 +02:00

Navbar optimizations (#29864)

- Remove redundant `display: inline-block` from flex children
- Remove `line-height: inherit;` which is the default value of `line-height`
- Use flex shorthand
- Improve background shorthand
- Fix removed brand margin caused by requiring containers in navbars
This commit is contained in:
Martijn Cuppens
2019-12-25 17:38:41 +01:00
committed by XhmikosR
parent 7b78456be8
commit 74e45ebc07
2 changed files with 6 additions and 9 deletions

View File

@@ -843,6 +843,7 @@ $navbar-brand-font-size: $font-size-lg !default;
$nav-link-height: $font-size-base * $line-height-base + $nav-link-padding-y * 2 !default;
$navbar-brand-height: $navbar-brand-font-size * $line-height-base !default;
$navbar-brand-padding-y: ($nav-link-height - $navbar-brand-height) / 2 !default;
$navbar-brand-margin-right: 1rem !default;
$navbar-toggler-padding-y: .25rem !default;
$navbar-toggler-padding-x: .75rem !default;