Skip to content

Instantly share code, notes, and snippets.

@tlongren
Created March 1, 2013 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlongren/5066629 to your computer and use it in GitHub Desktop.
Save tlongren/5066629 to your computer and use it in GitHub Desktop.
Google+ style CSS buttons.
input.button, a.button, span.button {
color: #6e6e6e;
text-decoration: none;
padding: 2px 12px;
position: relative;
display: inline-block;
text-shadow: 0 1px 0 #fff;
-webkit-transition: border-color .218s;
-moz-transition: border .218s;
-o-transition: border-color .218s;
transition: border-color .218s;
background: #f3f3f3;
background: -webkit-gradient(linear,0% 40%,0% 70%,from(#F5F5F5),to(#F1F1F1));
background: -moz-linear-gradient(linear,0% 40%,0% 70%,from(#F5F5F5),to(#F1F1F1));
border: solid 1px #dcdcdc;
border-radius: 2px;
margin-right: 10px;
}
input.button:hover, a.button:hover, span.button:hover {
color: #333;
border-color: #999;
-moz-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2) -webkit-box-shadow:0 2px 5px rgba(0, 0, 0, 0.2);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
input.button:active, a.button:active, span.button:active {
color: #000;
border-color: #444;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment