Created
September 19, 2012 08:11
-
-
Save maxhoffmann/3748337 to your computer and use it in GitHub Desktop.
Gradient Box Shadow
This file contains hidden or 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
| /* Gradient Box Shadow */ | |
| body { | |
| font: 16px/24px Helvetica Neue, Helvetica, sans-serif; | |
| color: hsl(210, 8%, 55%); | |
| background-color: hsl(210,10%,95%); | |
| text-shadow: 0 1px 0 white; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| h1 { | |
| margin: 47px 0 0 0; | |
| text-align: center; | |
| } | |
| .box { | |
| position: relative; | |
| margin: 50px auto; | |
| padding-bottom: 48px; | |
| width: 800px; | |
| } | |
| .box:after { | |
| position: absolute; | |
| left: -10%; | |
| bottom: -15px; | |
| display: block; | |
| content: " "; | |
| width: 120%; | |
| height: 16px; | |
| background-image: radial-gradient(top, hsl(210,10%,87%), rgba(255,255,255,0)); | |
| } |
This file contains hidden or 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
| <h1>Subtle Gradient Shadow with CSS3</h1> | |
| <p class="box"> | |
| Mcsweeney's you probably haven't heard of them consequat, farm-to-table ullamco pinterest ad typewriter echo park banksy. Letterpress whatever umami, reprehenderit tofu excepteur ennui. Shoreditch labore put a bird on it, bicycle rights deserunt delectus authentic. Gentrify irure wolf bespoke +1. Sint etsy esse officia. Delectus 3 wolf moon food truck, vice gentrify brooklyn leggings small batch bespoke dolore. Hella nihil farm-to-table four loko, aesthetic ex banh mi iphone biodiesel keffiyeh brunch typewriter butcher bespoke. | |
| </p> | |
This file contains hidden or 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
| {"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment