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

Provide unaryMinus operator for CSSSizeValue #936

Closed
LouisCAD opened this issue Jul 26, 2021 · 2 comments
Closed

Provide unaryMinus operator for CSSSizeValue #936

LouisCAD opened this issue Jul 26, 2021 · 2 comments
Labels
enhancement New feature or request web

Comments

@LouisCAD
Copy link
Contributor

Hello!
I think it'd be great to be able to negate any CSSSizeValue.

Example use case where I try to negate the margin of the :before pseudo element to have a special border effect (using gradients on background):

val borderSize = 2.px
"$self:before" {
    margin(-borderSize)
    // other code
}
@akurasov akurasov added enhancement New feature or request web labels Jul 26, 2021
@Schahen
Copy link
Collaborator

Schahen commented Jul 27, 2021

Hey @LouisCAD! It looks like this was shipped with https://github.com/JetBrains/compose-jb/releases/v0.5.0-build270 (check out this issue - #921)

@Schahen Schahen closed this as completed Jul 27, 2021
@LouisCAD
Copy link
Contributor Author

True, thank you!
I updated and removed my extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request web
Projects
None yet
Development

No branches or pull requests

3 participants