[V4] Warning in build with :before #17059
Answered
by
wongjn
joffreypersia
asked this question in
Help
-
Hi, I have warnings that occures on a css file compilation. Here is the code that causes problem : .ql-editor.ql-blank:before {
color: var(--color-shade-600);
margin-top: calc(var(--spacing) * 5);
font-weight: 400; /* normal */
font-style: normal; /* override if you had "not-italic" */
font-size: var(--text-base);
@variant dark {
color: var(--color-shade-400);
}
} And here is the error : ▲ [WARNING] Unexpected ")" [css-syntax-error]
<stdin>:2:192111:
2 │ ...ql-editor.ql-blank:before:where(){color:var(--color-shade-400)}[...
╵ ^ What am I missing? P.S. I find the new syntax using @variant ( instead of simply using @apply dark:text-shade-400 ) rather annoying, but if it’s the recommended approach according to @adamwathan, I’ll try to stick with the new format. |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Mar 8, 2025
Replies: 1 comment 3 replies
-
Seems like this could be #16582 (comment) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'd need to do something like: