Skip to content

Instantly share code, notes, and snippets.

@Ricardo-Diaz
Created October 23, 2012 18:55
Show Gist options
  • Save Ricardo-Diaz/3940800 to your computer and use it in GitHub Desktop.
Save Ricardo-Diaz/3940800 to your computer and use it in GitHub Desktop.
CSS: Metro Style buttons
//Metro Styles
//Boxes will have a 3d effet that looks like windows metro. There is a 3d version and plain button.
.metro {
display: inline-block;
padding: 10px;
margin: 10px;
background: #08C;
/* Font styles */
color: white;
font-weight: bold;
text-decoration: none;
}
.metro:hover { background: #0AF; }
.metro.three-d {
position: relative;
box-shadow:
1px 1px #53A7EA,
2px 2px #53A7EA,
3px 3px #53A7EA;
transition: all 0.1s ease-in;
}
.metro.three-d:active {
box-shadow: none;
top: 3px;
left: 3px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment