Skip to content

Commit

Permalink
remove background color from radios and checkboxes for IEs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Apr 23, 2012
1 parent 192cb57 commit 99a916d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/assets/css/bootstrap.css
Expand Up @@ -800,6 +800,7 @@ input[type="radio"] {

line-height: normal;
cursor: pointer;
background-color: transparent;
border: 0 \9;
/* IE9 and down */

Expand Down Expand Up @@ -1061,6 +1062,13 @@ textarea[readonly] {
border-color: #ddd;
}

input[type="radio"][disabled],
input[type="checkbox"][disabled],
input[type="radio"][readonly],
input[type="checkbox"][readonly] {
background-color: transparent;
}

.control-group.warning > label,
.control-group.warning .help-block,
.control-group.warning .help-inline {
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/css/docs.css
Expand Up @@ -11,7 +11,7 @@
body {
position: relative;
padding-top: 90px;
background-color: #fff;
background-color: red;
background-image: url(../img/grid-18px-masked.png);
background-repeat: repeat-x;
background-position: 0 40px;
Expand Down
8 changes: 8 additions & 0 deletions less/forms.less
Expand Up @@ -98,6 +98,7 @@ input[type="radio"] {
*margin-top: 0; /* IE7 */
line-height: normal;
cursor: pointer;
background-color: transparent;
border: 0 \9; /* IE9 and down */
.border-radius(0);
}
Expand Down Expand Up @@ -278,6 +279,13 @@ textarea[readonly] {
background-color: @inputDisabledBackground;
border-color: #ddd;
}
// Explicitly reset the colors here
input[type="radio"][disabled],
input[type="checkbox"][disabled],
input[type="radio"][readonly],
input[type="checkbox"][readonly] {
background-color: transparent;
}



Expand Down

0 comments on commit 99a916d

Please sign in to comment.