Last active
August 29, 2015 13:59
-
-
Save michaeldfallen/10685435 to your computer and use it in GitHub Desktop.
Kainos Globe in CSS3
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
.kcircle { | |
display: inline-block; | |
width: 0.71em; | |
height: 0.71em; | |
position: relative; | |
margin: 0 0px; | |
border-radius: 50%; | |
background: rgb(35,157,46); /* Old browsers */ | |
background: -moz-linear-gradient(top, rgba(35,157,46,1) 58%, rgba(168,200,19,1) 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(58%,rgba(35,157,46,1)), color-stop(100%,rgba(168,200,19,1))); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(top, rgba(35,157,46,1) 58%,rgba(168,200,19,1) 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(top, rgba(35,157,46,1) 58%,rgba(168,200,19,1) 100%); /* Opera 11.10+ */ | |
background: -ms-linear-gradient(top, rgba(35,157,46,1) 58%,rgba(168,200,19,1) 100%); /* IE10+ */ | |
background: linear-gradient(to bottom, rgba(35,157,46,1) 58%,rgba(168,200,19,1) 100%); /* W3C */ | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#239d2e', endColorstr='#a8c813',GradientType=0 ); /* IE6-9 */ | |
} | |
.kcircle:before { | |
content: ""; | |
position: absolute; | |
top: 2%; | |
left: 5%; | |
width: 90%; | |
height: 90%; | |
border-radius: 50%; | |
background: -webkit-gradient(radial, 50% 0px, 0, 50% 0px, 58, color-stop(0%, #ffffff), color-stop(58%, rgba(255, 255, 255, 0))); | |
background: -webkit-radial-gradient(50% 0px, circle cover, #ffffff, rgba(255, 255, 255, 0) 58%); | |
background: -moz-radial-gradient(50% 0px, circle cover, #ffffff, rgba(255, 255, 255, 0) 58%); | |
background: -o-radial-gradient(50% 0px, circle cover, #ffffff, rgba(255, 255, 255, 0) 58%); | |
background: radial-gradient(50% 0px, circle cover, #ffffff, rgba(255, 255, 255, 0) 58%); | |
-webkit-filter: blur(5px); | |
z-index: 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment