3 // --------------------------------------------------
7 // --------------------------------------------------
10 display: inline-block;
11 margin-bottom: 0; // For input.btn
12 font-weight: @btn-font-weight;
14 vertical-align: middle;
15 touch-action: manipulation;
17 background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
18 border: 1px solid transparent;
20 .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
35 color: @btn-default-color;
36 text-decoration: none;
42 background-image: none;
43 .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
48 fieldset[disabled] & {
49 cursor: @cursor-disabled;
50 pointer-events: none; // Future-proof disabling of clicks
58 // --------------------------------------------------
61 .button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
64 .button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
66 // Success appears as green
68 .button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);
70 // Info appears as blue-green
72 .button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);
74 // Warning appears as orange
76 .button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);
78 // Danger and error appear as red
80 .button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);
85 // -------------------------
87 // Make a button look and behave like a link
97 fieldset[disabled] & {
98 background-color: transparent;
105 border-color: transparent;
109 color: @link-hover-color;
110 text-decoration: @link-hover-decoration;
111 background-color: transparent;
114 fieldset[disabled] & {
117 color: @btn-link-disabled-color;
118 text-decoration: none;
125 // --------------------------------------------------
128 // line-height: ensure even-numbered height of button next to large input
129 .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
132 // line-height: ensure proper height of button next to small input
133 .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
136 .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
141 // --------------------------------------------------
148 // Vertically space out multiple block buttons
149 .btn-block + .btn-block {
153 // Specificity overrides
154 input[type="submit"],
156 input[type="button"] {