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;
22 & .btn-default .caret {
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));
156 // Reposition the caret
160 // Carets in other button sizes
162 border-width: @caret-width-large;
164 // Upside down carets for .dropup
165 .dropup .btn-lg .caret {
166 border-bottom-width: @caret-width-large;
170 // Vertical button groups
171 // ----------------------
173 .btn-group-vertical {
182 // Clear floats so dropdown menus can be properly placed
193 > .btn-group + .btn-group {
199 .btn-group-vertical > .btn {
200 &:not(:first-child):not(:last-child) {
203 &:first-child:not(:last-child) {
204 border-top-right-radius: @border-radius-base;
205 .border-bottom-radius(0);
207 &:last-child:not(:first-child) {
208 border-bottom-left-radius: @border-radius-base;
209 .border-top-radius(0);
212 .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
215 .btn-group-vertical > .btn-group:first-child {
218 .border-bottom-radius(0);
221 .btn-group-vertical > .btn-group:last-child > .btn:first-child {
222 .border-top-radius(0);
227 // Justified button groups
228 // ----------------------
230 .btn-group-justified {
234 border-collapse: separate;
243 // Checkbox and radio options
244 [data-toggle="buttons"] > .btn > input[type="radio"],
245 [data-toggle="buttons"] > .btn > input[type="checkbox"] {