Skip to content

Instantly share code, notes, and snippets.

@ivikash
Forked from tnylea/GitHub Gists CSS
Created January 15, 2013 06:14
Show Gist options
  • Save ivikash/4536607 to your computer and use it in GitHub Desktop.
Save ivikash/4536607 to your computer and use it in GitHub Desktop.
.gist {
border-left: 3ex solid #eee;
position: relative;
}
.gist pre {
counter-reset: linenumbers;
}
.gist pre div:before {
color: #aaa;
content: counter(linenumbers);
counter-increment: linenumbers;
left: -3ex;
position: absolute;
text-align: right;
width: 2.5ex;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment