3 // --------------------------------------------------
7 // Match the button text color to the arrow/caret for indicating dropdown-ness.
11 border-top-color: @btn-default-color;
18 border-top-color: #fff;
23 border-bottom-color: @btn-default-color;
31 border-bottom-color: #fff;
36 // Make the div behave like a button
40 display: inline-block;
41 vertical-align: middle; // match .btn alignment given font-size hack above
45 // Bring the "active" button to the front
53 // Remove focus outline when dropdown JS adds it after closing the menu
59 // Prevent double borders when buttons are next to each other
64 .btn-group + .btn-group {
69 // Optional: Group multiple button groups together for a toolbar
76 // Space out series of button groups
86 .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
90 // 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
91 .btn-group > .btn:first-child {
93 &:not(:last-child):not(.dropdown-toggle) {
94 .border-right-radius(0);
97 // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
98 .btn-group > .btn:last-child:not(:first-child),
99 .btn-group > .dropdown-toggle:not(:first-child) {
100 .border-left-radius(0);
103 // Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
104 .btn-group > .btn-group {
107 .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
110 .btn-group > .btn-group:first-child {
113 .border-right-radius(0);
116 .btn-group > .btn-group:last-child > .btn:first-child {
117 .border-left-radius(0);
120 // On active and open, don't show outline
121 .btn-group .dropdown-toggle:active,
122 .btn-group.open .dropdown-toggle {
129 // Remix the default button sizing classes into new ones for easier manipulation.
131 .btn-group-xs > .btn { .btn-xs(); }
132 .btn-group-sm > .btn { .btn-sm(); }
133 .btn-group-lg > .btn { .btn-lg(); }
136 // Split button dropdowns
137 // ----------------------
139 // Give the line between buttons some depth
140 .btn-group > .btn + .dropdown-toggle {
144 .btn-group > .btn-lg + .dropdown-toggle {
149 // The clickable button for toggling the menu
150 // Remove the gradient and set the same inset shadow as the :active state
151 .btn-group.open .dropdown-toggle {
152 .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
154 // Show no shadow for `.btn-link` since it has no other button styles.
161 // Reposition the caret
165 // Carets in other button sizes
167 border-width: @caret-width-large @caret-width-large 0;
168 border-bottom-width: 0;
170 // Upside down carets for .dropup
171 .dropup .btn-lg .caret {
172 border-width: 0 @caret-width-large @caret-width-large;
176 // Vertical button groups
177 // ----------------------
179 .btn-group-vertical {
188 // Clear floats so dropdown menus can be properly placed
199 > .btn-group + .btn-group {
205 .btn-group-vertical > .btn {
206 &:not(:first-child):not(:last-child) {
209 &:first-child:not(:last-child) {
210 border-top-right-radius: @border-radius-base;
211 .border-bottom-radius(0);
213 &:last-child:not(:first-child) {
214 border-bottom-left-radius: @border-radius-base;
215 .border-top-radius(0);
218 .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
221 .btn-group-vertical > .btn-group:first-child {
224 .border-bottom-radius(0);
227 .btn-group-vertical > .btn-group:last-child > .btn:first-child {
228 .border-top-radius(0);
233 // Justified button groups
234 // ----------------------
236 .btn-group-justified {
240 border-collapse: separate;
249 // Checkbox and radio options
250 [data-toggle="buttons"] > .btn > input[type="radio"],
251 [data-toggle="buttons"] > .btn > input[type="checkbox"] {