A Pen by Adam Henley on CodePen.
Created
February 13, 2014 22:21
-
-
Save adamazing/8985162 to your computer and use it in GitHub Desktop.
A Pen by Adam Henley.
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
#eureka |
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
@bg: rgb(255,255,255); | |
@r: rgb(215, 66, 66); | |
@stroke_width: 10px; | |
:after,:before {content:" "; position:absolute;} | |
@bulb_diam: 200px; | |
@base1_ratio: 1.88; | |
#eureka{ | |
position:absolute;top:0;left:0;right:0;bottom:0;margin:auto; | |
width: @bulb_diam; | |
height:@bulb_diam ; | |
border-radius:50%; | |
border: @stroke_width solid @r; | |
} | |
#eureka:before,#eureka:after{ | |
width:(@bulb_diam/@base1_ratio); | |
border: @stroke_width solid @r; | |
left:0; | |
right:0; | |
margin:auto; | |
} | |
@base1_height: 40px; | |
#eureka:after{ | |
height:@base1_height; | |
background-color:@bg; | |
top:@bulb_diam - (@stroke_width*2 - 4px); | |
border-top: none; | |
} | |
#eureka:before{ | |
top:@bulb_diam+@base1_height; | |
height:@base1_height/3; | |
border-left-color:transparent; | |
border-right-color:transparent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment