Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix layout for IE 8 and IE 9

Partial fix for issue #14
  • Loading branch information...
commit 29f9f245a6a657d9861c047bfb2842b77dfec53e 1 parent 6dc32b6
Simon Whitaker authored
Showing with 39 additions and 14 deletions.
  1. +4 −13 gh-fork-ribbon.css
  2. +35 −1 gh-fork-ribbon.ie.css
View
17 gh-fork-ribbon.css
@@ -93,7 +93,6 @@
}
.github-fork-ribbon-wrapper.left .github-fork-ribbon {
- /* Attach to the left of the page */
top: 42px;
left: -43px;
@@ -106,9 +105,8 @@
.github-fork-ribbon-wrapper.left-bottom .github-fork-ribbon {
- /* Attach to the left of the page */
- top: 75px;
- left: -64px;
+ top: 80px;
+ left: -43px;
/* Rotate the banner -45 degrees */
-webkit-transform: rotate(45deg);
@@ -116,14 +114,10 @@
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
-.github-fork-ribbon-wrapper.left-bottom .github-fork-ribbon a {
- padding-left: 18px;
-}
.github-fork-ribbon-wrapper.right-bottom .github-fork-ribbon {
- /* Attach to the left of the page */
- top: 89px;
- left: -10px;
+ top: 80px;
+ right: -43px;
/* Rotate the banner -45 degrees */
-webkit-transform: rotate(-45deg);
@@ -131,6 +125,3 @@
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
}
-.github-fork-ribbon-wrapper.right-bottom .github-fork-ribbon a {
- padding-left: 15px;
-}
View
36 gh-fork-ribbon.ie.css
@@ -3,7 +3,7 @@
.github-fork-ribbon-wrapper.right .github-fork-ribbon {
/* IE positioning hack (couldn't find a transform-origin alternative for IE) */
top: -22px;
- right: -22px;
+ right: -62px;
/* IE8+ */
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865474, M12=-0.7071067811865477, M21=0.7071067811865477, M22=0.7071067811865474, SizingMethod='auto expand')";
@@ -32,3 +32,37 @@
SizingMethod='auto expand'
);
}
+
+.github-fork-ribbon-wrapper.left-bottom .github-fork-ribbon {
+ /* IE positioning hack (couldn't find a transform-origin alternative for IE) */
+ top: 12px;
+ left: -22px;
+
+
+ /* IE8+ */
+ -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865474, M12=-0.7071067811865477, M21=0.7071067811865477, M22=0.7071067811865474, SizingMethod='auto expand')";
+ /* IE6 and 7 */
+/* filter: progid:DXImageTransform.Microsoft.Matrix(
+ M11=0.7071067811865474,
+ M12=-0.7071067811865477,
+ M21=0.7071067811865477,
+ M22=0.7071067811865474,
+ SizingMethod='auto expand'
+ );
+*/}
+
+.github-fork-ribbon-wrapper.right-bottom .github-fork-ribbon {
+ top: 12px;
+ right: -62px;
+
+ /* IE8+ */
+ -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865483, M12=0.7071067811865467, M21=-0.7071067811865467, M22=0.7071067811865483, SizingMethod='auto expand')";
+ /* IE6 and 7 */
+ filter: progid:DXImageTransform.Microsoft.Matrix(
+ M11=0.7071067811865483,
+ M12=0.7071067811865467,
+ M21=-0.7071067811865467,
+ M22=0.7071067811865483,
+ SizingMethod='auto expand'
+ );
+}
Please sign in to comment.
Something went wrong with that request. Please try again.