Created
November 29, 2012 11:03
-
-
Save robertklep/4168223 to your computer and use it in GitHub Desktop.
Pure CSS "dubstep forbidden" sign...
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
/** | |
* Pure CSS "dubstep forbidden" sign... | |
*/ | |
html, body { | |
margin : 0; | |
padding : 0; | |
width : 100%; | |
height : 100%; | |
font-family : sans-serif; | |
} | |
div.sign { | |
position : absolute; | |
width : 500px; | |
height : 500px; | |
top : 50%; | |
left : 50%; | |
margin : -250px 0 0 -250px; | |
background : red; | |
border-radius: 500px; | |
box-shadow : | |
inset 0 5px 20px white | |
,inset 0 -5px 20px black | |
,0px 0px 100px black | |
; | |
} | |
div.sign:before { | |
content : ''; | |
background : transparent; | |
z-index : 3; | |
} | |
div.sign:before, div.text { | |
position : absolute; | |
width : 400px; | |
height : 400px; | |
top : 50px; | |
left : 50px; | |
border-radius : 400px; | |
} | |
div.bar { | |
position : absolute; | |
width : 50px; | |
height : 420px; | |
top : 50px; | |
left : 50%; | |
margin : 0 0 0 -25px; | |
background : red; | |
z-index : 5; | |
transform : rotate(45deg); | |
} | |
div.text { | |
line-height : 400px; | |
font-size : 80px; | |
text-align : center; | |
color : black; | |
font-weight : bold; | |
background : white; | |
z-index : 4; | |
} | |
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 class='sign'> | |
<div class='bar'></div> | |
<div class='text'>DUBSTEP</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":"70","seethrough":"1","prefixfree":"1","page":"result"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment