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,preset-wind): add global keywords #1170

Merged
merged 3 commits into from Jun 26, 2022
Merged

Conversation

chu121su12
Copy link
Collaborator

Basically, adding handler.global almost everywhere. For static rules, makeGlobalStaticRules were introduced to help with this.

@chu121su12 chu121su12 requested a review from antfu as a code owner June 26, 2022 09:46
@netlify
Copy link

netlify bot commented Jun 26, 2022

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit 23e7642
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/62b855e739531b00085e2f97
😎 Deploy Preview https://deploy-preview-1170--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.

['overscroll-y-contain', { 'overscroll-behavior-y': 'contain' }],
['overscroll-y-none', { 'overscroll-behavior-y': 'none' }],
[/^overscroll-([-\w]+)$/, ([, s]) => ['auto', 'contain', 'none', ...globalKeywords].includes(s) ? { 'overscroll-behavior': s } : undefined],
[/^overscroll-([xy])-([-\w]+)$/, ([, d, s]) => ['auto', 'contain', 'none', ...globalKeywords].includes(s) ? { [`overscroll-behavior-${d}`]: s } : undefined],
Copy link
Member

@antfu antfu Jun 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we expand them as static rules instead?

@antfu antfu merged commit ff94c82 into main Jun 26, 2022
@antfu antfu deleted the feat/global-1 branch June 26, 2022 19:15
@UltraCakeBakery
Copy link
Contributor

@chu121su12 Thank you for this!

MellowCo added a commit to MellowCo/unocss-preset-weapp that referenced this pull request Jul 11, 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.

Feature request: support for "special values" for all utilities
3 participants