forked from simonwhitaker/github-fork-ribbon-css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gh-fork-ribbon.ie.css
49 lines (39 loc) · 1.27 KB
/
gh-fork-ribbon.ie.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*!
* "Fork me on GitHub" CSS ribbon v0.2.0 | MIT License
* https://github.com/simonwhitaker/github-fork-ribbon-css
*/
/* IE voodoo courtesy of http:https://stackoverflow.com/a/4617511/263871 and
* http:https://www.useragentman.com/IETransformsTranslator */
html {
overflow: auto;
}
body {
position: relative;
width: 100%;
height: auto;
overflow: hidden;
}
.github-fork-ribbon {
width: 15.38em;
height: 5.62em;
/* IE positioning hack (couldn't find a transform-origin alternative for IE) */
top: -3.92em;
right: -4.46em;
/* IE8+ */
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865474, M12=-0.7071067811865477, M21=0.7071067811865477, M22=0.7071067811865474, SizingMethod='auto expand')";
}
.github-fork-ribbon.left-top, .github-fork-ribbon.right-bottom {
/* IE8+ */
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865483, M12=0.7071067811865467, M21=-0.7071067811865467, M22=0.7071067811865483, SizingMethod='auto expand')";
}
.github-fork-ribbon:before, .github-fork-ribbon:after {
left: auto !important;
right: auto !important;
font-size: inherit;
}
.github-fork-ribbon.left-top, .github-fork-ribbon.left-bottom {
left: -3.92em;
}
.github-fork-ribbon.left-bottom, .github-fork-ribbon.right-bottom {
bottom: 4.77em;
}