diff options
| author | Chris Rebert <[email protected]> | 2016-02-16 21:16:55 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2016-02-16 21:16:55 -0800 |
| commit | 1046e27dd3c90fe60630ff11628f959ea14c6176 (patch) | |
| tree | bafb871e3642637eb31c0c736576e3681aecf72e | |
| parent | ee0b3b2faa355b6d054d7e6d9424bfc19ef22ec4 (diff) | |
| download | bootstrap-1046e27dd3c90fe60630ff11628f959ea14c6176.tar.xz bootstrap-1046e27dd3c90fe60630ff11628f959ea14c6176.zip | |
Extract $dropdown-item-padding-x variable
[skip sauce]
[skip validator]
| -rw-r--r-- | scss/_dropdown.scss | 4 | ||||
| -rw-r--r-- | scss/_variables.scss | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss index 07ae2f1f6..7aff06095 100644 --- a/scss/_dropdown.scss +++ b/scss/_dropdown.scss @@ -67,7 +67,7 @@ .dropdown-item { display: block; width: 100%; // For `<button>`s - padding: 3px 20px; + padding: 3px $dropdown-item-padding-x; clear: both; font-weight: normal; color: $dropdown-link-color; @@ -141,7 +141,7 @@ // Dropdown section headers .dropdown-header { display: block; - padding: 5px 20px; + padding: 5px $dropdown-item-padding-x; font-size: $font-size-sm; color: $dropdown-header-color; white-space: nowrap; // as with > li > a diff --git a/scss/_variables.scss b/scss/_variables.scss index 6352b602b..c02af45f5 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -446,6 +446,8 @@ $dropdown-link-active-bg: $component-active-bg !default; $dropdown-link-disabled-color: $gray-light !default; +$dropdown-item-padding-x: 20px !default; + $dropdown-header-color: $gray-light !default; |
