0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-28 20:52:21 +01:00

Add new variable for -padding-x

(cherry picked from commit fe77208a01b9b41ce13a9c68139d9f1618c48ec9)
This commit is contained in:
Mark Otto 2020-09-21 16:27:26 -07:00 committed by XhmikosR
parent f927a95b6c
commit d106b01dec
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@
display: none; // none by default, but block on "open" of the menu
float: left;
min-width: $dropdown-min-width;
padding: $dropdown-padding-y 0;
padding: $dropdown-padding-y $dropdown-padding-x;
margin: $dropdown-spacer 0 0; // override default ul
@include font-size($dropdown-font-size);
color: $dropdown-color;

View File

@ -755,6 +755,7 @@ $navbar-dark-brand-hover-color: $navbar-dark-active-color !default;
// Dropdown menu container and contents.
$dropdown-min-width: 10rem !default;
$dropdown-padding-x: 0 !default;
$dropdown-padding-y: .5rem !default;
$dropdown-spacer: .125rem !default;
$dropdown-font-size: $font-size-base !default;