Skip to content

Instantly share code, notes, and snippets.

@adamyanalunas
Created February 4, 2012 02:04
Show Gist options
  • Save adamyanalunas/1734431 to your computer and use it in GitHub Desktop.
Save adamyanalunas/1734431 to your computer and use it in GitHub Desktop.
A sublte button
/**
* A sublte button
*/
.btn:hover .inner {
background-position: 0 15px;
-webkit-transition: background-position .1s linear;
}
html {
min-height: 100%;
}
body {
text-align: center;
background: #caccd3;
padding: 15% 35px;
}
p {
text-shadow: 0 1px 0 rgb(245, 245, 246);
color: rgba(77, 86, 108, .9);
font: 11pt/normal "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: 0 0 1.8em;
}
a { text-decoration: none; }
a:hover { text-decoration: none; }
.subdued {
display: inline-block;
font: bold 8.5pt/normal Helvetica, Arial, sans-serif;
text-decoration: none;
color: #fff;
text-shadow: 0 -1px rgba(76, 82, 89, 1);
-webkit-border-radius: 5px;
border-radius: 5px;
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6f7074), color-stop(49%,#808188), color-stop(50%,#7f8187), color-stop(100%,#757980));
background: -webkit-linear-gradient(top, #6f7074 0%,#808188 49%,#7f8187 50%,#757980 100%);
background: linear-gradient(top, #6f7074 0%,#808188 49%,#7f8187 50%,#757980 100%);
}
.subdued:hover {
color: #fff;
}
.subdued .inner {
display: inline-block;
margin: 1px;
padding: 7px 16px 7px;
-webkit-border-radius: 4px;
border-radius: 4px;
/* All this for the top 1px color */
-webkit-box-shadow: inset 0px 1px 0px 0px rgba(159, 167, 175, 1);
-moz-box-shadow: inset 0px 1px 0px 0px rgba(159, 167, 175, 1);
box-shadow: inset 0px 1px 0px 0px rgba(159, 167, 175, 1);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b0b9c2), color-stop(49%,#95a0ac), color-stop(50%,#8c97a1), color-stop(100%,#7e8a94));
background: -webkit-linear-gradient(top, #b0b9c2 0%,#95a0ac 49%,#8c97a1 50%,#7e8a94 100%);
background: linear-gradient(top, #b0b9c2 0%,#95a0ac 49%,#8c97a1 50%,#7e8a94 100%);
}
<!-- content to be placed inside <body>…</body> -->
<a href="#" class="btn subdued"><span class="inner">Take Pre Test</span></a>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment