Skip to content

Commit 0c78f30

Browse files
committed
Merge pull request activeadmin#208 from emzeq/master
Small IE CSS Fix
2 parents 323e7eb + 1a16239 commit 0c78f30

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/assets/stylesheets/active_admin/_base.css.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ table.dashboard {
329329
}
330330
th {
331331
@include no-shadow;
332-
background: none;
332+
@include no-gradient;
333333
width: 150px;
334334
font-size: 0.9em;
335335
padding-left: 0;

app/assets/stylesheets/active_admin/mixins/_gradients.css.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ $secondary-gradient-stop: #dfe1e2;
1919
@mixin secondary-gradient {
2020
@include gradient($secondary-gradient-start, $secondary-gradient-stop);
2121
}
22+
23+
@mixin no-gradient {
24+
background: none;
25+
// IE 6 & 7
26+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
27+
// IE 8
28+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(enabled=false)";
29+
}

0 commit comments

Comments
 (0)