Skip to content

Instantly share code, notes, and snippets.

@davidmerrique
Created January 27, 2012 04:54
Show Gist options
  • Save davidmerrique/1687064 to your computer and use it in GitHub Desktop.
Save davidmerrique/1687064 to your computer and use it in GitHub Desktop.
Radial Gradients - David Merrique
/**
* Radial Gradients - David Merrique
*/
body {
background: #fff;
min-height:100%;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
padding-top: 140px;
text-align: center;
background-color: #235c77;
background-image: radial-gradient(50% 0%, #235c77, #1b1b1b);
background-attachment: fixed;
}
a:link, a:visited {
text-decoration: none;
color: #fff;
border: none;
}
.menuButton {
display: inline-block;
padding: 10px 20px;
margin: 5px;
color: white;
line-height: 1;
text-shadow: 0px -1px 0px black;
box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.4), inset 0px 1px 0px rgba(255,255,255,0.3);
background-color: #333333;
background-image: radial-gradient(50% 0%, #363636, #212121);
transition: transform .2s ease-in-out;
}
.menuButton:hover {
background-color: #525252;
background-image: radial-gradient(50% 0%, #525252, #212121);
box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.4), inset 0px 1px 0px rgba(255,255,255,0.3);
}
.menuButton:active {
color: gray;
background-color: #1b1b1b;
background-image: radial-gradient(50% 50%, #1b1b1b, #313131);
box-shadow: inset 0px 3px 5px 2px rgba(0,0,0,0.3), 0px 1px 2px 0px rgba(0,0,0,0.2);
transform: translate(0, 2px);
}
<!-- content to be placed inside <body>…</body> -->
<a class="menuButton" href="">Blog</a>
<a class="menuButton" href="">Work</a>
<a class="menuButton" href="">Twitter</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