Created
September 5, 2012 16:38
-
-
Save kadamwhite/3639573 to your computer and use it in GitHub Desktop.
Pure-CSS Space Invader
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
/** | |
* Pure-CSS Space Invader, adapted to a 2px pixel size from | |
* the original example at CSS-Tricks "The Shapes of CSS" | |
* | |
* @link: http://css-tricks.com/examples/ShapesOfCSS/ | |
*/ | |
.invader { | |
box-shadow: | |
-4px -2px white, 4px -2px white, | |
-4px -2px 0 2px, 0 -2px 0 2px, 4px -2px 0 2px, | |
-4px 0 0 2px, 0 0 0 2px, 4px 0 0 2px, | |
-6px -8px, 6px -8px, | |
-4px -6px, 4px -6px, | |
-8px -2px, 8px -2px, | |
-10px 0, -8px 0, 8px 0, 10px 0, | |
-10px 2px, 10px 2px, | |
-10px 4px, -6px 4px, 6px 4px, 10px 4px, | |
-4px 6px, -2px 6px, 2px 6px, 4px 6px; | |
color: black; | |
background: black; | |
display: inline-block; | |
width: 2px; | |
height: 2px; | |
margin: 0 11px 3px; | |
overflow: hidden; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment