3 // --------------------------------------------------
7 // --------------------------------------------------
11 display: inline-block;
14 margin-bottom: 0; // For input.btn
15 font-size: @baseFontSize;
16 line-height: @baseLineHeight;
17 *line-height: @baseLineHeight;
19 vertical-align: middle;
21 .buttonBackground(@btnBackground, @btnBackgroundHighlight, @grayDark, 0 1px 1px rgba(255,255,255,.75));
22 border: 1px solid @btnBorder;
23 *border: 0; // Remove the border to prevent IE7's black border on input:focus
24 border-bottom-color: darken(@btnBorder, 10%);
26 .ie7-restore-left-whitespace(); // Give IE7 some love
27 .box-shadow(inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05));
32 text-decoration: none;
33 background-color: darken(@white, 10%);
34 *background-color: darken(@white, 15%); /* Buttons in IE7 don't get borders, so darken on hover */
35 background-position: 0 -15px;
37 // transition is only when going to hover, otherwise the background
38 // behind the gradient (there for IE<=9 fallback) gets mismatched
39 .transition(background-position .1s linear);
42 // Focus state for keyboard and accessibility
50 background-color: darken(@white, 10%);
51 background-color: darken(@white, 15%) e("\9");
52 background-image: none;
54 .box-shadow(inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05));
61 background-color: darken(@white, 10%);
62 background-image: none;
72 // --------------------------------------------------
77 font-size: @baseFontSize + 2px;
81 .btn-large [class^="icon-"] {
88 font-size: @baseFontSize - 2px;
89 line-height: @baseLineHeight - 2px;
91 .btn-small [class^="icon-"] {
98 font-size: @baseFontSize - 3px;
99 line-height: @baseLineHeight - 3px;
104 // -------------------------
111 .box-sizing(border-box);
114 // Vertically space out multiple block buttons
115 .btn-block + .btn-block {
119 // Specificity overrides
120 input[type="submit"],
122 input[type="button"] {
131 // --------------------------------------------------
133 // Provide *some* extra contrast for those who can get it
139 .btn-inverse.active {
140 color: rgba(255,255,255,.75);
143 // Set the backgrounds
144 // -------------------------
146 // reset here as of 2.0.3 due to Recess property order
147 border-color: #c5c5c5;
148 border-color: rgba(0,0,0,.15) rgba(0,0,0,.15) rgba(0,0,0,.25);
151 .buttonBackground(@btnPrimaryBackground, @btnPrimaryBackgroundHighlight);
153 // Warning appears are orange
155 .buttonBackground(@btnWarningBackground, @btnWarningBackgroundHighlight);
157 // Danger and error appear as red
159 .buttonBackground(@btnDangerBackground, @btnDangerBackgroundHighlight);
161 // Success appears as green
163 .buttonBackground(@btnSuccessBackground, @btnSuccessBackgroundHighlight);
165 // Info appears as a neutral blue
167 .buttonBackground(@btnInfoBackground, @btnInfoBackgroundHighlight);
169 // Inverse appears as dark gray
171 .buttonBackground(@btnInverseBackground, @btnInverseBackgroundHighlight);
175 // Cross-browser Jank
176 // --------------------------------------------------
179 input[type="submit"].btn {
181 // Firefox 3.6 only I believe
182 &::-moz-focus-inner {
187 // IE7 has some default padding on button controls
189 *padding-bottom: 3px;
193 *padding-bottom: 7px;
197 *padding-bottom: 3px;
201 *padding-bottom: 1px;
207 // --------------------------------------------------
209 // Make a button look and behave like a link
212 .btn-link[disabled] {
213 background-color: transparent;
214 background-image: none;
218 border-color: transparent;
224 color: @linkColorHover;
225 text-decoration: underline;
226 background-color: transparent;
228 .btn-link[disabled]:hover {
230 text-decoration: none;