Forked from erikflowers/fixed-screen-layered-background.less
          
        
    
          Created
          January 9, 2014 07:35 
        
      - 
      
- 
        Save eduardomart/8330710 to your computer and use it in GitHub Desktop. 
    Translucent grid over background image
  
        
  
    
      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
    
  
  
    
  | .background-layers(@top, @bottom) { | |
| background: url(@top), url(@bottom); | |
| background-position: top center, top center; | |
| background-attachment: fixed, fixed; | |
| background-repeat: repeat, repeat; | |
| -webkit-background-size: auto, cover; | |
| -moz-background-size: auto, cover; | |
| -o-background-size: auto, cover; | |
| background-size: auto, cover; | |
| } | |
| /////// Use it like this. don't forget the single quotes /////// | |
| .background-layers('the-top-image.png', 'the-bottom-image.jpg'); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment