Skip to content

Instantly share code, notes, and snippets.

@aarongarciah
Forked from csssecrets/dabblet.css
Created August 26, 2015 16:09
Show Gist options
  • Save aarongarciah/b818b9a914f77f3625e6 to your computer and use it in GitHub Desktop.
Save aarongarciah/b818b9a914f77f3625e6 to your computer and use it in GitHub Desktop.
Zebra striped text lines
/**
* Zebra striped text lines
*/
pre {
padding: .5em;
line-height: 1.5;
background: hsl(20, 50%, 95%);
background-image: linear-gradient(
rgba(120,0,0,.1) 50%, transparent 0);
background-size: auto 3em;
background-origin: content-box;
font-family: Consolas, Monaco, monospace;
}
code { font: inherit }
<pre><code>while (true) {
var d = new Date();
if (d.getDate()==1 &amp;&amp;
d.getMonth()==3) {
alert("TROLOLOL");
}
}</code></pre>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment