0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

Merge pull request #19240 from twbs/dropdown-item-padding-x

Extract $dropdown-item-padding-x variable
This commit is contained in:
Chris Rebert 2016-02-16 21:21:58 -08:00
commit 79c955f019
2 changed files with 4 additions and 2 deletions

View File

@ -67,7 +67,7 @@
.dropdown-item { .dropdown-item {
display: block; display: block;
width: 100%; // For `<button>`s width: 100%; // For `<button>`s
padding: 3px 20px; padding: 3px $dropdown-item-padding-x;
clear: both; clear: both;
font-weight: normal; font-weight: normal;
color: $dropdown-link-color; color: $dropdown-link-color;
@ -141,7 +141,7 @@
// Dropdown section headers // Dropdown section headers
.dropdown-header { .dropdown-header {
display: block; display: block;
padding: 5px 20px; padding: 5px $dropdown-item-padding-x;
font-size: $font-size-sm; font-size: $font-size-sm;
color: $dropdown-header-color; color: $dropdown-header-color;
white-space: nowrap; // as with > li > a white-space: nowrap; // as with > li > a

View File

@ -446,6 +446,8 @@ $dropdown-link-active-bg: $component-active-bg !default;
$dropdown-link-disabled-color: $gray-light !default; $dropdown-link-disabled-color: $gray-light !default;
$dropdown-item-padding-x: 20px !default;
$dropdown-header-color: $gray-light !default; $dropdown-header-color: $gray-light !default;