]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add dropdown-item-padding-y var
authorMark Otto <markdotto@gmail.com>
Sat, 8 Apr 2017 21:17:06 +0000 (14:17 -0700)
committerMark Otto <markd.otto@gmail.com>
Sat, 8 Apr 2017 21:40:11 +0000 (14:40 -0700)
- Closes #21622 which kept the 3px
- Puts variable in proper order for shorthand (y x)

scss/_dropdown.scss
scss/_variables.scss

index 7c3ad855be0381ca96441113e06adb799379670c..090fdf1c16412a9d48d0ecd978e5dff67afc6093 100644 (file)
@@ -65,7 +65,7 @@
 .dropdown-item {
   display: block;
   width: 100%; // For `<button>`s
-  padding: 3px $dropdown-item-padding-x;
+  padding: $dropdown-item-padding-y $dropdown-item-padding-x;
   clear: both;
   font-weight: $font-weight-normal;
   color: $dropdown-link-color;
index be8caa3424b053a82169b18c5504866b1ae1c2e6..3af5205a4200546ae1e0ae6a514027a6d67b9b7d 100644 (file)
@@ -547,6 +547,7 @@ $dropdown-link-active-bg:        $component-active-bg !default;
 
 $dropdown-link-disabled-color:   $gray-light !default;
 
+$dropdown-item-padding-y:        .25rem !default;
 $dropdown-item-padding-x:        1.5rem !default;
 
 $dropdown-header-color:          $gray-light !default;