Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column Cycle in Stylus and gutter % values #530

Open
cliqer opened this issue Apr 4, 2017 · 7 comments
Open

Column Cycle in Stylus and gutter % values #530

cliqer opened this issue Apr 4, 2017 · 7 comments

Comments

@cliqer
Copy link

cliqer commented Apr 4, 2017

stylus@0.54.5 and jeet@7.1.0
Using Within webstorm with:
-u nib -u jeet -u rupture styles.styl

This doesn't cycle: column(1/4,cycle:4)
while this does: column(1/4,0,4)

Using gutter: column(1/4,0,4,2) gives a 2% value.
Is there any way of changing the percentage to px when compiled?

@corysimmons
Copy link
Contributor

$cycle

@cliqer
Copy link
Author

cliqer commented Apr 4, 2017

Thank you Cory.

Indeed this does work when compiled directly without the watcher. Webstorm is giving 'invalid argument' and stop stylus from executing unless specifically requested to compile with errors.

Anything I can do for the gutter to be compiled in different units (px)?

Many Thanks

@corysimmons
Copy link
Contributor

What error is WebStorm throwing exactly?

Jeet can't work with fixed units, but my other projects, Lost and postcss-ant, can.

@cliqer
Copy link
Author

cliqer commented Apr 4, 2017

$cycle:4 'invalid argument'.
screen shot 2017-04-04 at 18 52 33
Expects '=' and not ':' but of course if changed stylus doesn't compile.

Thank you for your work. I will check your other projects.

@corysimmons
Copy link
Contributor

corysimmons commented Apr 4, 2017

Hmm. It works with $gutter but not $cycle?

I suspect this is an import problem unless I'm forgetting my Stylus syntax. :X

@cliqer
Copy link
Author

cliqer commented Apr 4, 2017

No, the same happens to any $ variables inside a parenthesis in stylus/webstorm.
Anyway, as long as it works with column(1/4,0,4,1) and compiler is happy, not a real problem :)

@corysimmons
Copy link
Contributor

It works: https://codepen.io/corysimmons/pen/dvLPeY

Not sure what the problem is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants