I am currently trying to define "display: none" in...
# react
d
I am currently trying to define "display: none" in my CSS class. Is it possible that none is missing from the csstypes.display object? Or am I looking in the wrong place? @turansky
t
csstype.None.none
- is common
The same situation with
csstype.Global
and
csstype.Auto.auto
d
Thank you very much! I had not seen that.
t
For fast checks
d
How are numbers entered that do not have a unit such as pixel or percent?
Copy code
...
boxShadow = BoxShadow(
        inset = BoxShadowInset.inset,
        offsetX = 0.px,
        offsetY = (-1).px,
        color = NamedColor.transparent
    )
    fontSize = 0.8.rem

    // Fixme
    fontWeight = "300".unsafeCast<FontWeight>()
    transitionProperty = "box-shadow".unsafeCast<TransitionProperty>()
    content = "'\\00B7'".unsafeCast<Content>()
}
t
Copy code
fontWeight = integer(300)
For
content
more factories available
Copy code
image(..)
string(..)
url(..)
attr(..)
👍 1
No reasons for
unsafeCast
and
asDynamic
d
@turansky I am currently stuck. How can I create a transform block? Am I just missing a dependency here or can this not be created like this?
t
transform = array(rotate(...))
🙏 1
Copy code
import csstype.array