Created
October 15, 2013 18:55
-
-
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
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
@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