Skip to content

Commit 2f4c84b

Browse files
committed
remove rounded corners on buttons from IE9 so gradients don't bleed out
1 parent cb244d5 commit 2f4c84b

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

bootstrap-1.2.0.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* http://www.apache.org/licenses/LICENSE-2.0
77
*
88
* Designed and built with all the love in the world @twitter by @mdo and @fat.
9-
* Date: Fri Sep 2 12:30:58 PDT 2011
9+
* Date: Fri Sep 2 12:35:18 PDT 2011
1010
*/
1111
/* Reset.less
1212
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
@@ -1618,6 +1618,9 @@ footer {
16181618
padding: 7px 9px 7px;
16191619
font-size: 11px;
16201620
}
1621+
:root .alert-message, :root .btn {
1622+
border-radius: 0 \0;
1623+
}
16211624
button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
16221625
padding: 0;
16231626
border: 0;

bootstrap-1.2.0.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/patterns.less

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ footer {
429429
// Button Base
430430
cursor: pointer;
431431
display: inline-block;
432-
#gradient > .vertical-three-colors(#ffffff, #ffffff, 0.25, darken(#ffffff, 10%));
432+
#gradient > .vertical-three-colors(#ffffff, #ffffff, 0.25, darken(#ffffff, 10%)); // Don't use .gradientbar() here since it does a three-color gradient
433433
padding: 5px 14px 6px;
434434
text-shadow: 0 1px 1px rgba(255,255,255,.75);
435435
color: #333;
@@ -490,6 +490,11 @@ footer {
490490
font-size: 11px;
491491
}
492492
}
493+
// Super jank hack for removing border-radius from IE9 so we can keep filter gradients on alerts and buttons
494+
:root .alert-message,
495+
:root .btn {
496+
border-radius: 0 \0;
497+
}
493498

494499
// Help Firefox not be a jerk about adding extra padding to buttons
495500
button.btn,

0 commit comments

Comments
 (0)