Skip to content

Instantly share code, notes, and snippets.

@christophemarois
Last active August 29, 2015 14:03
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 christophemarois/5a6f9b6155c5d29b16ac to your computer and use it in GitHub Desktop.
Save christophemarois/5a6f9b6155c5d29b16ac to your computer and use it in GitHub Desktop.
Smart underlines for good typography - http://jsbin.com/rafoko
html
head
meta( charset = 'utf-8' )
link( href = 'http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic', rel = 'stylesheet', type = 'text/css')
body
#container.
What I would really like <u>to see on the web is beautiful typography</u> mixed in with simple, responsive content and <strong>beautiful images</strong>.
u {
text-decoration: none;
text-shadow:
-2px -2px 0 white,
2px -2px 0 white,
-2px 2px 0 white,
2px 2px 0 white;
background-image: linear-gradient(
to top,
transparent,
transparent .12em, // Bottom from bottom
#333333 0, // Space between the two
#333333 .19em, // Top from bottom,
transparent 0);
}
#container {
padding: 1rem;
background: white;
font-family: Lora;
font-style: italic;
font-size: 1.8rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment