0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Sync dropdown font size with btn font size

This commit is contained in:
Martijn Cuppens 2019-01-07 16:11:26 +01:00 committed by Mark Otto
parent fd98e77cac
commit e57cdee6bc
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@
min-width: $dropdown-min-width;
padding: $dropdown-padding-y 0;
margin: $dropdown-spacer 0 0; // override default ul
font-size: $font-size-base; // Redeclare because nesting can cause inheritance issues
font-size: $dropdown-font-size;
color: $body-color;
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
list-style: none;

View File

@ -755,6 +755,7 @@ $navbar-dark-brand-hover-color: $navbar-dark-active-color !default;
$dropdown-min-width: 10rem !default;
$dropdown-padding-y: .5rem !default;
$dropdown-spacer: .125rem !default;
$dropdown-font-size: $btn-font-size !default;
$dropdown-bg: $white !default;
$dropdown-border-color: rgba($black, .15) !default;
$dropdown-border-radius: $border-radius !default;