Skip to content

Instantly share code, notes, and snippets.

@csssecrets
Created February 5, 2015 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 11 You must be signed in to fork a gist
  • Save csssecrets/80eafefae35d26979972 to your computer and use it in GitHub Desktop.
Save csssecrets/80eafefae35d26979972 to your computer and use it in GitHub Desktop.
Letterpress
/**
* Letterpress
*/
body {
font: 250%/1.6 Baskerville, Palatino, serif;
}
p {
padding: .8em 1em;
background: hsl(210, 13%, 60%);
color: hsl(210, 13%, 30%);
text-shadow: 0 1px 1px hsla(0,0%,100%,.8);
}
p + p {
background: hsl(210, 13%, 30%);
color: hsl(210, 13%, 60%);
text-shadow: 0 -1px 1px black;
}
<p>“The only way to get rid of a temp­ta­tion is to yield to it.”</p>
<p>“The only way to get rid of a temp­ta­tion is to yield to it.”</p>
// 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