diff options
| author | Chris Rebert <[email protected]> | 2016-02-16 21:13:15 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2016-02-16 21:13:15 -0800 |
| commit | dcb29fc814abc35818ca21b711b350a7b1c4ef36 (patch) | |
| tree | b9f36fe1cd42d29c78e02b49fe71076e6f77b2e9 | |
| parent | ee0b3b2faa355b6d054d7e6d9424bfc19ef22ec4 (diff) | |
| download | bootstrap-dcb29fc814abc35818ca21b711b350a7b1c4ef36.tar.xz bootstrap-dcb29fc814abc35818ca21b711b350a7b1c4ef36.zip | |
Extract $dropdown-margin-top variable
[skip sauce]
[skip validator]
| -rw-r--r-- | scss/_dropdown.scss | 4 | ||||
| -rw-r--r-- | scss/_variables.scss | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss index 07ae2f1f6..7db8e0c14 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 6352b602b..2c961b74a 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; |
