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

mixin for stylus #3

Open
eybarta opened this issue Oct 10, 2017 · 0 comments
Open

mixin for stylus #3

eybarta opened this issue Oct 10, 2017 · 0 comments

Comments

@eybarta
Copy link

eybarta commented Oct 10, 2017

Hi, thanks for this great plugin..

for anyone interested using a Stylus mixin, here's what I came up with:

style.styl

.selector
    +query(500)
        background red

mixin.styl

query($bp)
	&[{'min-width~="%d%s%s"' % ($bp \p \x)}]
		{block}

good luck!

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

1 participant