Created
June 26, 2013 22:29
-
-
Save jeef3/5872325 to your computer and use it in GitHub Desktop.
Decision Button
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
/** | |
* Decision Button | |
*/ | |
body { | |
background: #162427; | |
} | |
.button { | |
overflow: hidden; | |
position: relative; | |
width: 57px; | |
height: 57px; | |
padding: 11px; | |
cursor: pointer; | |
background: linear-gradient(to bottom, #006600 2%,#008800 45%,#00cc00 81%,#00ff00 97%); | |
border-radius: 10px; | |
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6), | |
inset 0 6px 6px 0 rgba(255, 255, 255, 0.2), | |
inset 6px 6px 6px 0 rgba(255, 255, 255, 0.2), | |
inset -6px -6px 6px rgba(0, 0, 0, 0.2), | |
inset 0 -6px 6px 0px rgba(0, 0, 0, 0.2); | |
} | |
.button:before { | |
content: ''; | |
position: absolute; | |
background: linear-gradient(to bottom, | |
rgba(255,255,255,0.498) 50%, | |
rgba(255,255,255,0.024) 100%); | |
/*background: linear-gradient(to bottom, red 50%, blue 100%);*/ | |
height: 100%; | |
width: 140%; | |
left: -20%; | |
top: -50%; | |
border-radius: 50%; | |
} | |
.button:hover:after { | |
content: ''; | |
position: absolute; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
opacity: 0.15; | |
background: #00FF00; | |
border-radius: 10px; | |
} |
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
<div class="button"></div> |
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
// alert('Hello world!'); |
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
{"view":"split-vertical","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