<p>For buttons that are not active or are disabled by the app for one reason or another, use the disabled state. That’s<code>.disabled</code> for links and <code>:disabled</code> for <code><button></code> elements.</p>
<p>For disabled buttons, use<code>.disabled</code> for links and <code>:disabled</code> for <code><button></code> elements.</p>
<p>
<ahref="#"class="btn large primary disabled">Primary action</a>
<ahref="#"class="btn large disabled">Action</a>
...
...
@@ -1290,6 +1292,11 @@
<buttonclass="btn large"disabled>Action</button>
</p>
</div>
<divclass="span4">
<h3>Cross browser compatibility</h3>
<p>In IE9, we drop the gradient on all buttons in favor of rounded corners as IE9 doesn't crop background gradients to the corners.</p>
<p>Related, IE9 jankifies disabled <code>button</code> elements, rendering text gray with a nasty text-shadow—unfortunately we can't fix this.</p>
<p>{{_i}}For buttons that are not active or are disabled by the app for one reason or another, use the disabled state. That’s<code>.disabled</code> for links and <code>:disabled</code> for <code><button></code> elements.{{/i}}</p>
<p>{{_i}}For disabled buttons, use<code>.disabled</code> for links and <code>:disabled</code> for <code><button></code> elements.{{/i}}</p>
<p>
<ahref="#"class="btn large primary disabled">{{_i}}Primary action{{/i}}</a>
<ahref="#"class="btn large disabled">{{_i}}Action{{/i}}</a>
<p>In IE9, we drop the gradient on all buttons in favor of rounded corners as IE9 doesn't crop background gradients to the corners.</p>
<p>Related, IE9 jankifies disabled <code>button</code> elements, rendering text gray with a nasty text-shadow—unfortunately we can't fix this.</p>
background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10
background-image: linear-gradient(left, @startColor, @endColor); // Le standard
background-repeat: repeat-x;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",@startColor,@endColor)); // IE9 and down
background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10
background-image: linear-gradient(top, @startColor, @endColor); // The standard
background-repeat: repeat-x;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down, gets no color-stop at all for proper fallback