Skip to content

Instantly share code, notes, and snippets.

@waako
Created March 29, 2013 21:37
Show Gist options
  • Save waako/5273844 to your computer and use it in GitHub Desktop.
Save waako/5273844 to your computer and use it in GitHub Desktop.
Icon buttons by Hugo Giraudel on October 25, 2012 via http://codepen.io/HugoGiraudel/details/kmFsE // via http://sw4tch.com/swatches/24
.swatch {
display: block;
.foreground {
display: block;
border: 0 none;
cursor: pointer;
font-size: 50px;
line-height: 100px;
text-align: center;
-webkit-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
-ms-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
-webkit-border-radius: 50%;
border-radius: 50%;
text-shadow: 0 -2px 1px rgba(0, 0, 0, 0.25);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fefefe), color-stop(1, #ebebeb));
background: -webkit-linear-gradient(top, #fefefe 0%, #ebebeb 100%);
background: -moz-linear-gradient(top, #fefefe 0%, #ebebeb 100%);
background: -o-linear-gradient(top, #fefefe 0%, #ebebeb 100%);
background: -ms-linear-gradient(top, #fefefe 0%, #ebebeb 100%);
background: linear-gradient(top, #fefefe 0%, #ebebeb 100%);
-webkit-box-shadow: 0 15px 15px rgba(0, 0, 0, 0.08), 0 5px 5px rgba(0, 0, 0, 0.075), 0 0 5px rgba(0, 0, 0, 0.2), inset 0 2px 2px white, inset 0 -2px 2px rgba(0, 0, 0, 0.1);
box-shadow: 0 15px 15px rgba(0, 0, 0, 0.08), 0 5px 5px rgba(0, 0, 0, 0.075), 0 0 5px rgba(0, 0, 0, 0.2), inset 0 2px 2px white, inset 0 -2px 2px rgba(0, 0, 0, 0.1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment