Skip to content

Instantly share code, notes, and snippets.

@iso100
Created October 15, 2013 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iso100/6996800 to your computer and use it in GitHub Desktop.
Save iso100/6996800 to your computer and use it in GitHub Desktop.
A function for use with Gumby framework that helps calculate the % width of a column in global columns when nested inside another column
@function global-columns($desired_cols, $container_cols, $hybrid-grid: false){
@if ($hybrid-grid == true) {
@return (100% * (columns($desired_cols, true) / columns($container_cols, true)));
}
@else {
@return (100% * (columns($desired_cols) / columns($container_cols)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment