Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.