Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from BillyNate/gh-pages
The ribbon's HTML is now single element and resizing the ribbon is easier
- Loading branch information
Showing
3 changed files
with
106 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,49 @@ | ||
/*! | ||
* "Fork me on GitHub" CSS ribbon v0.1.1 | MIT License | ||
* "Fork me on GitHub" CSS ribbon v0.2.0 | MIT License | ||
* https://github.com/simonwhitaker/github-fork-ribbon-css | ||
*/ | ||
|
||
/* IE voodoo courtesy of http://stackoverflow.com/a/4617511/263871 and | ||
* http://www.useragentman.com/IETransformsTranslator */ | ||
|
||
.github-fork-ribbon { | ||
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#000000', EndColorStr='#000000'); | ||
html { | ||
overflow: auto; | ||
} | ||
|
||
.github-fork-ribbon-wrapper.right .github-fork-ribbon { | ||
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: -22px; | ||
right: -62px; | ||
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')"; | ||
/* 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.left .github-fork-ribbon { | ||
top: -22px; | ||
left: -22px; | ||
|
||
.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')"; | ||
/* IE6 and 7 */ | ||
filter: progid:DXImageTransform.Microsoft.Matrix( | ||
M11=0.7071067811865483, | ||
M12=0.7071067811865467, | ||
M21=-0.7071067811865467, | ||
M22=0.7071067811865483, | ||
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:before, .github-fork-ribbon:after { | ||
left: auto !important; | ||
right: auto !important; | ||
font-size: inherit; | ||
} | ||
|
||
.github-fork-ribbon-wrapper.right-bottom .github-fork-ribbon { | ||
top: 12px; | ||
right: -62px; | ||
.github-fork-ribbon.left-top, .github-fork-ribbon.left-bottom { | ||
left: -3.92em; | ||
} | ||
|
||
/* 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' | ||
); | ||
.github-fork-ribbon.left-bottom, .github-fork-ribbon.right-bottom { | ||
bottom: 4.77em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters