Created
          October 22, 2012 21:11 
        
      - 
      
- 
        Save JohnCHarrington/3934355 to your computer and use it in GitHub Desktop. 
    customised Susy grid-settings mixin
  
        
  
    
      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
    
  
  
    
  | =grid-settings($cols: $total-columns,$width: $column-width,$gutter: $gutter-width,$padding: $grid-padding, $c-width: $container-width, $c-style: $container-style) | |
| // keep the defaults around | |
| $default-cols: $total-columns | |
| $default-width: $column-width | |
| $default-gutter: $gutter-width | |
| $default-padding: $grid-padding | |
| $default-container-width: $container-width | |
| $default-container-style: $container-style | |
| // use the new settings | |
| $total-columns: $cols | |
| $column-width: $width | |
| $gutter-width: $gutter | |
| $grid-padding: $padding | |
| $container-width: $c-width | |
| $container-style: $c-style | |
| // apply to contents | |
| @content | |
| // re-instate the defaults | |
| $total-columns: $default-cols | |
| $column-width: $default-width | |
| $gutter-width: $default-gutter | |
| $grid-padding: $default-padding | |
| $container-width: $default-container-width | |
| $container-style: $default-container-style | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment