diff options
| author | Mark Otto <[email protected]> | 2013-08-05 11:30:50 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-05 11:30:50 -0700 |
| commit | 01c46bfc0f6f23697326bc5f8d69baa4f7ef3052 (patch) | |
| tree | 1a8b087fca6f42fa4786eacdd1633f096a125c10 /less/button-groups.less | |
| parent | 6af693d1602d9e4c052c23215ac3130580bfcb17 (diff) | |
| download | bootstrap-01c46bfc0f6f23697326bc5f8d69baa4f7ef3052.tar.xz bootstrap-01c46bfc0f6f23697326bc5f8d69baa4f7ef3052.zip | |
More button updates
- Fixes #9113 (caret colors in dropdown buttons)
- Darken borders around buttons for contrast in button groups
Diffstat (limited to 'less/button-groups.less')
| -rw-r--r-- | less/button-groups.less | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/less/button-groups.less b/less/button-groups.less index ac58b38ce..76936691a 100644 --- a/less/button-groups.less +++ b/less/button-groups.less @@ -3,11 +3,32 @@ // -------------------------------------------------- // Button carets -.btn .caret { - border-top-color: @btn-default-color; +// +// Match the button text color to the arrow/caret for indicating dropdown-ness. + +.caret { + .btn-default & { + border-top-color: @btn-default-color; + } + .btn-primary &, + .btn-success &, + .btn-warning &, + .btn-danger &, + .btn-info & { + border-top-color: #fff; + } } -.dropup .btn .caret { - border-bottom-color: @btn-default-color; +.dropup .caret { + .btn-default & { + border-bottom-color: @btn-default-color; + } + .btn-primary &, + .btn-success &, + .btn-warning &, + .btn-danger &, + .btn-info & { + border-bottom-color: #fff; + } } // Make the div behave like a button |
