diff options
author | Mark Otto <markdotto@gmail.com> | 2017-10-03 06:51:14 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2017-10-03 06:51:14 +0300 |
commit | e626277c731b36826dec978b3cf3dc8901ef11f0 (patch) | |
tree | e30694b6ad9888439a4f739779dee766757859be /scss/_dropdown.scss | |
parent | 7adf74d58508b4fae4fed94da1b304f18d912591 (diff) | |
parent | ea854233b70a4420d20eaacf507865f395134cae (diff) |
Merge branch 'dropdown-caret' of https://github.com/pat270/bootstrap into v4-dev
Diffstat (limited to 'scss/_dropdown.scss')
-rw-r--r-- | scss/_dropdown.scss | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss index 6e81947ed9..32657167f5 100644 --- a/scss/_dropdown.scss +++ b/scss/_dropdown.scss @@ -6,21 +6,7 @@ .dropdown-toggle { // Generate the caret automatically - &::after { - display: inline-block; - width: 0; - height: 0; - margin-left: $caret-width * .85; - vertical-align: $caret-width * .85; - content: ""; - border-top: $caret-width solid; - border-right: $caret-width solid transparent; - border-left: $caret-width solid transparent; - } - - &:empty::after { - margin-left: 0; - } + @include caret; } // Allow for dropdowns to go bottom up (aka, dropup-menu) @@ -32,10 +18,7 @@ } .dropdown-toggle { - &::after { - border-top: 0; - border-bottom: $caret-width solid; - } + @include caret(up); } } |