select[class*="span"],
textarea[class*="span"],
.uneditable-input[class*="span"] {
- height: 30px;
+ height: 34px;
}
.controls-row:before,
margin-bottom: 0;
font-size: 14px;
line-height: 20px;
- color: #555555;
text-align: center;
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
vertical-align: middle;
cursor: pointer;
- background-color: #dadada;
- background-image: -moz-linear-gradient(top, #fafafa, #dadada);
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fafafa), to(#dadada));
- background-image: -webkit-linear-gradient(top, #fafafa, #dadada);
- background-image: -o-linear-gradient(top, #fafafa, #dadada);
- background-image: linear-gradient(to bottom, #fafafa, #dadada);
- background-repeat: repeat-x;
- border: 1px solid #c7c7c7;
+ border: 1px solid #ccc;
border-radius: 4px;
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa', endColorstr='#ffdadada', GradientType=0);
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn.active {
background-image: none;
outline: 0;
- -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.1);
- box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.1);
+ -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 1px 0 rgba(255, 255, 255, 0.1);
+ box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn.disabled,
width: 100%;
}
+.btn {
+ color: #555555;
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
+ background-color: #dadada;
+ background-image: -moz-linear-gradient(top, #fafafa, #dadada);
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fafafa), to(#dadada));
+ background-image: -webkit-linear-gradient(top, #fafafa, #dadada);
+ background-image: -o-linear-gradient(top, #fafafa, #dadada);
+ background-image: linear-gradient(to bottom, #fafafa, #dadada);
+ background-repeat: repeat-x;
+ border-color: #c7c7c7;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa', endColorstr='#ffdadada', GradientType=0);
+}
+
+.btn:hover,
+.btn:active,
+.btn.active {
+ color: #555555;
+ background-color: #dadada;
+ background-position: 0 -15px;
+}
+
+.btn:active,
+.btn.active,
+.btn[disabled],
+.btn.disabled,
+fieldset[disabled] .btn {
+ background-image: none;
+}
+
.btn-primary {
color: #ffffff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
- background-color: #0044cc;
- background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
- background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
- background-image: -o-linear-gradient(top, #0088cc, #0044cc);
- background-image: linear-gradient(to bottom, #0088cc, #0044cc);
+ background-color: #006699;
+ background-image: -moz-linear-gradient(top, #0088cc, #006699);
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#006699));
+ background-image: -webkit-linear-gradient(top, #0088cc, #006699);
+ background-image: -o-linear-gradient(top, #0088cc, #006699);
+ background-image: linear-gradient(to bottom, #0088cc, #006699);
background-repeat: repeat-x;
- border-color: #003bb3;
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);
+ border-color: #004c73;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff006699', GradientType=0);
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active {
color: #ffffff;
- background-color: #0044cc;
+ background-color: #006699;
background-position: 0 -15px;
}
.btn-primary:active,
-.btn-primary.active {
+.btn-primary.active,
+.btn-primary[disabled],
+.btn-primary.disabled,
+fieldset[disabled] .btn-primary {
background-image: none;
}
background-image: -o-linear-gradient(top, #fbb450, #f89406);
background-image: linear-gradient(to bottom, #fbb450, #f89406);
background-repeat: repeat-x;
- border-color: #df8505;
+ border-color: #d37e05;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);
}
}
.btn-warning:active,
-.btn-warning.active {
+.btn-warning.active,
+.btn-warning[disabled],
+.btn-warning.disabled,
+fieldset[disabled] .btn-warning {
background-image: none;
}
background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);
background-repeat: repeat-x;
- border-color: #a9302a;
+ border-color: #9e2d27;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0);
}
}
.btn-danger:active,
-.btn-danger.active {
+.btn-danger.active,
+.btn-danger[disabled],
+.btn-danger.disabled,
+fieldset[disabled] .btn-danger {
background-image: none;
}
background-image: -o-linear-gradient(top, #62c462, #51a351);
background-image: linear-gradient(to bottom, #62c462, #51a351);
background-repeat: repeat-x;
- border-color: #499249;
+ border-color: #448944;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0);
}
}
.btn-success:active,
-.btn-success.active {
+.btn-success.active,
+.btn-success[disabled],
+.btn-success.disabled,
+fieldset[disabled] .btn-success {
background-image: none;
}
}
.btn-group.open .btn-primary.dropdown-toggle {
- background-color: #0044cc;
+ background-color: #006699;
}
.btn-group.open .btn-warning.dropdown-toggle {
background-image: -o-linear-gradient(top, #f2f2f2, #e5e5e5);
background-image: linear-gradient(to bottom, #f2f2f2, #e5e5e5);
background-repeat: repeat-x;
- border-color: #d9d9d9;
+ border-color: #d2d2d2;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2f2f2', endColorstr='#ffe5e5e5', GradientType=0);
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075);
}
.navbar .btn-navbar:active,
-.navbar .btn-navbar.active {
+.navbar .btn-navbar.active,
+.navbar .btn-navbar[disabled],
+.navbar .btn-navbar.disabled,
+fieldset[disabled] .navbar .btn-navbar {
background-image: none;
}
}
.navbar-inverse .btn-navbar:active,
-.navbar-inverse .btn-navbar.active {
+.navbar-inverse .btn-navbar.active,
+.navbar-inverse .btn-navbar[disabled],
+.navbar-inverse .btn-navbar.disabled,
+fieldset[disabled] .navbar-inverse .btn-navbar {
background-image: none;
}
</pre>
<h3>Disabled fieldsets</h3>
- <p>Add the <code>disabled</code> attribute on a <code>fieldset</code> to disable all the controls within the fieldset at once.</p>
+ <p>Add the <code>disabled</code> attribute to a <code><fieldset></code> to disable all the controls within the <code><fieldset></code> at once. Link buttons (with the <code><a></code> element) will be aesthetically disabled, but you will need custom JavaScript to disable their behavior.</p>
<form class="bs-docs-example form-inline">
<fieldset disabled>
- <input type="text" class="span4" placeholder="These controls are all disabled just">
- <select class="span4">
- <option>by being under a disabled fieldset</option>
- </select>
+ <div>
+ <input type="text" class="span4" placeholder="Disabled input">
+ </div>
+ <div>
+ <select class="span4">
+ <option>Disabled select</option>
+ </select>
+ </div>
<div class="checkbox">
<label>
<input type="checkbox"> Can't check this
<pre class="prettyprint linenums">
<form class="form-inline">
<fieldset disabled>
- <input type="text" class="span4" placeholder="These controls are all disabled just">
+ <input type="text" class="span4" placeholder="Disabled input">
<select class="span4">
- <option>by being under a disabled fieldset</option>
+ <option>Disabled select</option>
</select>
<div class="checkbox">
<label>
</fieldset>
</form>
</pre>
- <p>
- <span class="label label-info">Heads up!</span>
- Contrary to the HTML5 spec, form controls within a <code>fieldset</code>'s <code>legend</code> will also be disabled.<br>
- Also, <code><a></code> buttons within a <code>fieldset[disabled]</code> will be styled like they each had the <code>.disabled</code> class, but this only affects aesthetics; you must use custom JavaScript to actually make such links non-functional.
- </p>
<h3>Validation states</h3>
<p>Bootstrap includes validation styles for error, warning, info, and success messages. To use, add the appropriate class to the surrounding <code>.control-group</code>.</p>
</pre>
<h3>Disabled fieldsets</h3>
- <p>Add the <code>disabled</code> attribute on a <code>fieldset</code> to disable all the controls within the fieldset at once.</p>
+ <p>Add the <code>disabled</code> attribute to a <code><fieldset></code> to disable all the controls within the <code><fieldset></code> at once. Link buttons (with the <code><a></code> element) will be aesthetically disabled, but you will need custom JavaScript to disable their behavior.</p>
<form class="bs-docs-example form-inline">
<fieldset disabled>
- <input type="text" class="span4" placeholder="These controls are all disabled just">
- <select class="span4">
- <option>by being under a disabled fieldset</option>
- </select>
+ <div>
+ <input type="text" class="span4" placeholder="Disabled input">
+ </div>
+ <div>
+ <select class="span4">
+ <option>Disabled select</option>
+ </select>
+ </div>
<div class="checkbox">
<label>
<input type="checkbox"> Can't check this
<pre class="prettyprint linenums">
<form class="form-inline">
<fieldset disabled>
- <input type="text" class="span4" placeholder="These controls are all disabled just">
+ <input type="text" class="span4" placeholder="Disabled input">
<select class="span4">
- <option>by being under a disabled fieldset</option>
+ <option>Disabled select</option>
</select>
<div class="checkbox">
<label>
</fieldset>
</form>
</pre>
- <p>
- <span class="label label-info">Heads up!</span>
- Contrary to the HTML5 spec, form controls within a <code>fieldset</code>'s <code>legend</code> will also be disabled.<br>
- Also, <code><a></code> buttons within a <code>fieldset[disabled]</code> will be styled like they each had the <code>.disabled</code> class, but this only affects aesthetics; you must use custom JavaScript to actually make such links non-functional.
- </p>
<h3>Validation states</h3>
<p>Bootstrap includes validation styles for error, warning, info, and success messages. To use, add the appropriate class to the surrounding <code>.control-group</code>.</p>