Skip to content
Discussion options

You must be logged in to vote

Hey 👋

The styling rules accept all valid CSS properties plus simple pseudos, such as ::before or :hover etc. For anything more complex, like combinations of pseudos, you can use the selectors key.

Keep in mind that all selectors must target the applied element so take care to include the & character in the rule.

Also the supported syntax for vendor prefixes is to use the pascal case — omitting the hyphens (see below):

export const gradientUnderline = style({
  ":before": {
    content: "",
    display: "block",
    width: "100%",
    height: "3px",
    bottom: 0,
    left: 0,
-    "-webkit-transform": "scaleX(0)",
+    WebkitTransform: "scaleX(0)",
-    "-webkit-transition": "transform 0.…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@0xPetra
Comment options

Answer selected by 0xPetra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants