Created
February 23, 2012 22:24
-
-
Save colin-haber/1895373 to your computer and use it in GitHub Desktop.
Metro UI-inspired CSS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @charset "UTF-8"; | |
| @import url(http://fonts.googleapis.com/css?family=Lato:400); | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body { | |
| background-color: black; | |
| } | |
| div.tile { | |
| display: inline-block; | |
| height: 100px; | |
| width: 100px; | |
| } | |
| a.tile-content { | |
| position: relative; | |
| display: block; | |
| -webkit-animation-timing-function: linear; | |
| -webkit-transition-duration: 200ms; | |
| -webkit-transition-property: width, height, z-index, padding, top, left, margin, background-size; | |
| background-size: 80px; | |
| background-color: #00AEEF; | |
| color: white; | |
| font-family: "Segoe UI", "Lato", "Verdana", sans-serif; | |
| font-weight: 400; | |
| z-index: auto; | |
| height: 20px; | |
| width: 80px; | |
| margin: 0; | |
| padding: 60px 0 0 0; | |
| text-indent: 5px; | |
| text-align: left; | |
| line-height: 20px; | |
| font-size: 13px; | |
| text-decoration: none; | |
| top: 10px; | |
| left: 10px; | |
| overflow: hidden; | |
| white-space: nowrap; | |
| cursor: pointer; | |
| } | |
| a.tile-content:hover { | |
| background-size: 100px; | |
| z-index: 100; | |
| width: 100px; | |
| padding: 80px 0 0 0; | |
| margin: -20px 0 0 0; | |
| height: 20px; | |
| top: 20px; | |
| left: 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Metro CSS</title> | |
| <link rel="stylesheet" type="text/css" href="metro.css" /> | |
| </head> | |
| <body> | |
| <div> | |
| <div class="tile"> | |
| <a class="tile-content">Square</a> | |
| </div> | |
| <div class="tile"> | |
| <a class="tile-content">Square Overflow</a> | |
| </div> | |
| <div class="tile"> | |
| <a class="tile-content">Hover Over Me!</a> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment