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

feat(preset-mini): add container query syntax #1821

Merged
merged 5 commits into from Nov 7, 2022

Conversation

chu121su12
Copy link
Collaborator

This PR adds container query variant using @<size>/<label> or @[<bracket>]/<label> syntax. The size syntax looks up size in theme.containers while bracket syntax use h.bracket to resolve the required @ value.

@netlify
Copy link

netlify bot commented Oct 29, 2022

Deploy Preview for unocss ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ffa5b83
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/636122059cb28000087a40fd
😎 Deploy Preview https://deploy-preview-1821--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@chu121su12 chu121su12 marked this pull request as ready for review October 29, 2022 16:33
@antfu
Copy link
Member

antfu commented Nov 1, 2022

@chu121su12
Copy link
Collaborator Author

I was reading that but then I was thinking of fully dynamic bracket rule.

@chu121su12 chu121su12 marked this pull request as draft November 1, 2022 13:31
@chu121su12 chu121su12 marked this pull request as ready for review November 3, 2022 08:48
@antfu antfu merged commit ce59126 into unocss:main Nov 7, 2022
@chu121su12 chu121su12 deleted the feat/container-query branch November 8, 2022 02:03
MellowCo added a commit to MellowCo/unocss-preset-weapp that referenced this pull request Nov 12, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants