3 // --------------------------------------------------
7 border-top-color: @btn-default-color;
10 border-bottom-color: @btn-default-color;
13 // Make the div behave like a button
17 display: inline-block;
18 vertical-align: middle; // match .btn alignment given font-size hack above
22 // Bring the "active" button to the front
30 // Prevent double borders when buttons are next to each other
31 .btn-group .btn + .btn {
35 // Optional: Group multiple button groups together for a toolbar
42 // Space out series of button groups
52 .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
56 // Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
57 .btn-group > .btn:first-child {
59 &:not(:last-child):not(.dropdown-toggle) {
60 .border-right-radius(0);
63 // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
64 .btn-group > .btn:last-child:not(:first-child),
65 .btn-group > .dropdown-toggle:not(:first-child) {
66 .border-left-radius(0);
69 // Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
70 .btn-group > .btn-group {
73 .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
76 .btn-group > .btn-group:first-child {
79 .border-right-radius(0);
82 .btn-group > .btn-group:last-child > .btn:first-child {
83 .border-left-radius(0);
86 // On active and open, don't show outline
87 .btn-group .dropdown-toggle:active,
88 .btn-group.open .dropdown-toggle {
94 // Split button dropdowns
95 // ----------------------
97 // Give the line between buttons some depth
98 .btn-group > .btn + .dropdown-toggle {
102 .btn-group > .btn-large + .dropdown-toggle {
107 // The clickable button for toggling the menu
108 // Remove the gradient and set the same inset shadow as the :active state
109 .btn-group.open .dropdown-toggle {
110 .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
114 // Reposition the caret
118 // Carets in other button sizes
122 // Upside down carets for .dropup
123 .dropup .btn-large .caret {
124 border-bottom-width: 5px;
128 // Vertical button groups
129 // ----------------------
131 .btn-group-vertical > .btn {
140 .btn-group-vertical .btn {
141 &:not(:first-child):not(:last-child) {
145 .border-bottom-radius(0);
148 .border-top-radius(0);
153 // Justified button groups
154 // ----------------------
156 .btn-group-justified {
167 // Checkbox and radio options
168 .btn-group[data-toggle="buttons"] > .btn > input[type="radio"],
169 .btn-group[data-toggle="buttons"] > .btn > input[type="checkbox"] {