Created
April 26, 2014 02:08
-
-
Save scooooooooby/11309911 to your computer and use it in GitHub Desktop.
Full size background images
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
@mixin full-size-images($background) { | |
min-height: 700px; // Customize as you wish | |
width: 100%; | |
display: block; | |
background: url($background) no-repeat center center fixed; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
@media only screen and (max-width: 960px) { | |
min-height: 320px; // Customize | |
width: 100%; | |
background: url($background) no-repeat center; | |
-webkit-background-size: none; | |
-moz-background-size: none; | |
-o-background-size: none; | |
background-size: none; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment