Created
January 3, 2014 20:48
-
-
Save LeaVerou/8246293 to your computer and use it in GitHub Desktop.
Lego studs
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
/** | |
* Lego studs | |
*/ | |
body { | |
background: yellowgreen; | |
} | |
div:before, | |
div:after { | |
width: 100px; | |
height: 88px; | |
border-radius: 50% / 29px; | |
box-shadow: 0 -30px 0 rgba(0,0,0,.5) inset; | |
} | |
div:before, | |
div:after { | |
content: ''; | |
display: block; | |
margin-left: 100px; | |
} |
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
<div></div> |
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
// alert('Hello world!'); |
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
{"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