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

Support for Stylus variables in @container queries just like in @media queries #2849

Open
konieckropka opened this issue Dec 22, 2023 · 2 comments

Comments

@konieckropka
Copy link

Please add support for using variables should be possible in @container queries.

bar = 1200px
@container nameOfTheContainer (min-width: bar) {
   color: red;
}

As for now variables work in @media queries:

https://stylus-lang.com/docs/media.html#interpolations-and-variables

bar = 1200px
@media (min-width: bar) {
   color: red;
}
@TokugawaTakeshi
Copy link

TokugawaTakeshi commented Jan 3, 2024

@konieckropka

Thank you for the issue.
In addition to your issue, I have opened the similar discussion Sep 19, 2022.

#2727

The maintainer has acknowledged about this issue, however looks like it is not enough resources to fix this.

@konieckropka
Copy link
Author

@container at-rules currently work in Stylus when using standard, direct values like 700px.

My feature request is strictly about using Stylus variables inside container-conditions which don't work at all.

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