Closed VinSpee closed 10 years ago
actually many of the files in the repo can't be converted
thanks @VinSpee we will take a look. There is a possibility that a 1:1 conversion will be impossible
see https://github.com/mojotech/sass2stylus/blob/master/functions.yml#L1
but we will see what we can do.
is there an alternative to nth?
-- Vince Speelman Sent with Airmail
On April 23, 2014 at 5:09:00 PM, Sam Saccone (notifications@github.com) wrote:
thanks @VinSpee we will take a look. There is a possibility that a 1:1 conversion will be impossible
see https://github.com/mojotech/sass2stylus/blob/master/functions.yml#L1
but we will see what we can do.
— Reply to this email directly or view it on GitHub.
Not that I know of. You can always file an issue asking here https://github.com/LearnBoost/stylus/issues
is there an alternative to nth?
I'd say nth($list, $n)
from Sass could be converted to $list[$n - 1]
in Stylus if $list
is a list. If $list
is a map, it becomes a little more complicated, but still possible.
However, for such cases it would be nice to write Stylus functions that would polyfill absent functions from Sass, so code like this: nth((width: 10px, length: 20px), 2)
would be replaced with nth({width: 10px, length: 20px}, 2)
plus a Stylus' nth
function definition at the start.
thanks for the insight @kizu hopefully someone will pick this up and we can get it in.
I'd like to do a direct conversion of team-sass/modular-scale. The following code will not convert: