Skip to content

Instantly share code, notes, and snippets.

@csssecrets
Last active September 19, 2021 16:42
Show Gist options
  • Save csssecrets/cf30f5d442533b32600d to your computer and use it in GitHub Desktop.
Save csssecrets/cf30f5d442533b32600d 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