Created
June 11, 2015 08:44
-
-
Save fpigerre/cd87a1b3e70b35e264ec to your computer and use it in GitHub Desktop.
SASS styling of metro-like interface
This file contains 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
#metro { | |
color: white; | |
display: table; | |
float: right; | |
height: 30%; | |
margin-top: 20px; | |
width: 75%; | |
@for $i from 1 through length($colors) { | |
.metro-box:nth-of-type(#{$i}) { | |
background: nth($colors, $i); | |
} | |
} | |
.metro-box { | |
cursor: pointer; | |
display: inline-block; | |
height: 100px; | |
margin: 15px; | |
text-align: center; | |
width: 100px; | |
&:hover { | |
box-shadow: 3px 4px 3px #DDDDDD; | |
} | |
* { | |
padding-top: 30%; | |
} | |
i { | |
font-size: 40px; | |
margin-top: 30%; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment