Created
December 16, 2011 18:31
-
-
Save rbarazi/1487277 to your computer and use it in GitHub Desktop.
Font Techniques
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Font Techniques */ | |
body { | |
background: white; | |
} | |
p { | |
text-align: center; | |
box-shadow: inset 0px 0px 5px rgba(0,0,0,0.3); | |
margin: 10px auto; | |
padding: 10px; | |
font-family: "HelveticaNeue-Bold"; | |
font-size: 45px; | |
} | |
p.black { | |
color: black; | |
} | |
p.red { | |
color: red; | |
} | |
p.text-shadow { | |
text-shadow: 0px 0px 10px rgba(0,0,0,0.8); | |
} | |
p.inset { | |
-webkit-text-stroke: 1px rgba(0,0,0, 0.1); | |
color: transparent; | |
text-shadow: 0px 3px 3px rgba(237, 237, 237, 0.6); | |
} | |
p.emboss { | |
color: rgba(255,255,255, 1); | |
text-shadow: 0px 0px 5px green; | |
} | |
p.emboss2 { | |
-webkit-text-stroke: 1px rgba(0,0,0,0.1); | |
color: #ededed; | |
text-shadow: rgba(0,0,0,0.5) -1px 0, rgba(0,0,0,0.3) 0 -1px, rgba(255,255,255,0.5) 0 1px, rgba(0,0,0,0.3) -1px -2px; | |
} | |
p.inner { | |
background-color: rgba(200, 200, 200, 7); | |
-webkit-background-clip: text; | |
color: transparent; | |
text-shadow: rgba(255, 255, 255, 0.8) 0 2px 6px; | |
} | |
p.header { | |
text-shadow: 0 -1px 2px rgba(0, 0, 0, 0.1); | |
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(rgba(0, 0, 0, 0.1))) left bottom no-repeat; | |
-webkit-text-stroke: 1px transparent; | |
height: 50px; | |
font-size: 42px; | |
} | |
p.header.selected { | |
color: white; | |
text-shadow: 0 -1px 2px rgba(0, 0, 0, 0.8); | |
background: #79af40; | |
box-shadow: inset 0 0 10px rgba(0,0,0,0.7); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- content to be placed inside <body>…</body> --> | |
<p class='black'>Lorem Ipsum</p> | |
<p class='red'>Lorem Ipsum</p> | |
<p class='text-shadow'>Lorem Ipsum</p> | |
<p class='inset'>Lorem Ipsum</p> | |
<p class='emboss'>Lorem Ipsum</p> | |
<p class='emboss2'>Lorem Ipsum</p> | |
<p class='inner'>Lorem Ipsum</p> | |
<p class='header'>Lorem Ipsum</p> | |
<p class='header selected'>Lorem Ipsum</p> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"page":"css","view":"split-vertical"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment