Sha256: e5e33dfffc4637c19fe55759e0bb8c963938ec454a785494bdf0787ba8534ca5
Contents?: true
Size: 680 Bytes
Versions: 9
Compression:
Stored size: 680 Bytes
Contents
// Generic function to calculate a percentage based on pixel values (independent of any specific grid system) @function calc-percent($target, $container) @return ($target / $container) * 100% @function calc-em($target, $container) @return ($target / $container) * 1em // shortcut name @function cp($target, $container) @return calc-percent($target, $container) @function ce($target, $container) @return calc-em($target, $container) // return the width of an arbitrary number of columns in a css grid system @function calc-col-width($number-of-cols) $calc-width: ($kit-col-width * $number-of-cols) + ($kit-gutter-width * ($number-of-cols - 1)) @return $calc-width
Version data entries
9 entries across 9 versions & 1 rubygems