rubygems - Zurb Foundation 3 - how to remove dependency on modular-scale Ruby gem -
i'm trying remove dependency modular-scale ruby gem foundation v3 project.
i've pulled foundation sass files , compass sass files project, can't figure out how modular-scale sass, don't have have ruby gem installed.
i pulled sassy-math modular-scale.scss file project.
then, had back-fill it's depdencies adding:
@import "math"; @import "../common/ratios"; @function power($base, $exponent) { @return exponent($base, $exponent); } @function golden-ratio($value, $increment) { @return modular-scale($value, $increment, $golden) } @function golden() { @return 1/2 + sqrt(5) / 2; } // defaults $ratio: golden_ratio() !default; but then, i'm getting error:
line 20 of sass/foundation/functions/_modular-scale.scss: function golden-ratio missing argument $value. if change //defaults this:
// defaults $ratio: golden() !default; i error:
line 165 of sass/foundation/functions/_modular-scale.scss: undefined operation: "1.61803 times sort_list(14px 44px)". i'm stuck. how around this?
thanks, scott
many modular-scale functions written in ruby increase performance , impossible version of modular-scale working pure sass , not supporting ruby code. need install via gem although there other more complicated ways of doing it.
2.0 support pure sass install has few breaking changes.
Comments
Post a Comment