Skip to content

Instantly share code, notes, and snippets.

@gojimmypi
Last active May 3, 2017 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gojimmypi/241961628a536555812cdffe3066e61d to your computer and use it in GitHub Desktop.
Save gojimmypi/241961628a536555812cdffe3066e61d to your computer and use it in GitHub Desktop.
codeblock css style
pre {
overflow-x:scroll;
overflow-y:scroll;
background: black;
color:LawnGreen;
padding: 10px 16px;
border-radius: 2px;
border-top: 4px solid #00aeef;
-moz-box-shadow: inset 0 0 10px #000;
box-shadow: inset 0 0 10px #000;
 
}
pre span {
counter-increment: line;
display: block;
line-height: 1.5rem;
}
pre span:before {
counter-reset: line;
content: counter(line);
display: inline-block;
border-right: 1px solid #ddd;
padding: 0 .5em;
margin-right: .5em;
color: #888
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment