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:
committed by
XhmikosR
parent
7b78456be8
commit
74e45ebc07
@@ -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;
|
||||
|
Reference in New Issue
Block a user