From dcb29fc814abc35818ca21b711b350a7b1c4ef36 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 16 Feb 2016 21:13:15 -0800 Subject: [PATCH] Extract $dropdown-margin-top variable [skip sauce] [skip validator] --- scss/_dropdown.scss | 4 ++-- scss/_variables.scss | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss index 07ae2f1f65..7db8e0c149 100644 --- a/scss/_dropdown.scss +++ b/scss/_dropdown.scss @@ -44,7 +44,7 @@ float: left; min-width: $dropdown-min-width; padding: 5px 0; - margin: 2px 0 0; // override default ul + margin: $dropdown-margin-top 0 0; // override default ul font-size: $font-size-base; color: $body-color; text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer) @@ -175,6 +175,6 @@ .dropdown-menu { top: auto; bottom: 100%; - margin-bottom: 2px; + margin-bottom: $dropdown-margin-top; } } diff --git a/scss/_variables.scss b/scss/_variables.scss index 6352b602bc..2c961b74a0 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -431,6 +431,7 @@ $form-icon-danger: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www // Dropdown menu container and contents. $dropdown-min-width: 160px !default; +$dropdown-margin-top: 2px !default; $dropdown-bg: #fff !default; $dropdown-border-color: rgba(0,0,0,.15) !default; $dropdown-border-width: $border-width !default; -- 2.47.2