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): negate math function values #1688

Merged
merged 1 commit into from Oct 18, 2022

Conversation

chu121su12
Copy link
Collaborator

Globally negate value if within calc, clamp, min, or max functions. There are var and env too but for now the code follows the handler code:

.replace(/(?:calc|clamp|max|min)\((.*)/g, (v) => {

To hint var/env to be able to be negated, for now use calc(var()) as in tests.

@netlify
Copy link

netlify bot commented Oct 6, 2022

Deploy Preview for unocss ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 3a1a51f
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/633f0e03dc80c700078aa8ae
😎 Deploy Preview https://deploy-preview-1688--unocss.netlify.app/play
📱 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 6, 2022 17:25
@chu121su12 chu121su12 requested a review from antfu as a code owner October 6, 2022 17:25
@antfu antfu merged commit ff9a008 into unocss:main Oct 18, 2022
@chu121su12 chu121su12 deleted the feat/negate branch October 25, 2022 09:56
MellowCo added a commit to MellowCo/unocss-preset-weapp that referenced this pull request Oct 29, 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