Created
July 24, 2018 23:39
-
-
Save JJCLane/bc16dc57c643d6b3de580e4b959a4180 to your computer and use it in GitHub Desktop.
Calculate percentage column width for Masonry/Isotope
This file contains 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 gridWidth($gutter, $numColumns) { | |
$totalSpace: ( $numColumns - 1 ) * $gutter; | |
@return calc((100% - #{$totalSpace}) / #{$numColumns}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment