Created
January 29, 2012 11:59
-
-
Save GaryJones/1698485 to your computer and use it in GitHub Desktop.
Add CSS line numbers to embedded gists.
This file contains hidden or 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
.gist-highlight { | |
border-left: 4ex solid #eaeaea; | |
position: relative; | |
} | |
.gist-highlight pre { | |
counter-reset: linenumbers; | |
} | |
.gist-highlight pre div:before { | |
color: #aaa; | |
content: counter(linenumbers); | |
counter-increment: linenumbers; | |
left: -3ex; | |
position: absolute; | |
text-align: right; | |
width: 2.5ex; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment