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 @caret-width-large 0;
163 border-bottom-width: 0;
165 // Upside down carets for .dropup
166 .dropup .btn-lg .caret {
167 border-width: 0 @caret-width-large @caret-width-large;
171 // Vertical button groups
172 // ----------------------
174 .btn-group-vertical {
183 // Clear floats so dropdown menus can be properly placed
194 > .btn-group + .btn-group {
200 .btn-group-vertical > .btn {
201 &:not(:first-child):not(:last-child) {
204 &:first-child:not(:last-child) {
205 border-top-right-radius: @border-radius-base;
206 .border-bottom-radius(0);
208 &:last-child:not(:first-child) {
209 border-bottom-left-radius: @border-radius-base;
210 .border-top-radius(0);
213 .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
216 .btn-group-vertical > .btn-group:first-child {
219 .border-bottom-radius(0);
222 .btn-group-vertical > .btn-group:last-child > .btn:first-child {
223 .border-top-radius(0);
228 // Justified button groups
229 // ----------------------
231 .btn-group-justified {
235 border-collapse: separate;
244 // Checkbox and radio options
245 [data-toggle="buttons"] > .btn > input[type="radio"],
246 [data-toggle="buttons"] > .btn > input[type="checkbox"] {