Comments (3)
You need to write it like this:
<article prose class="before:[&_code]:content-none after:[&_code]:content-none text-green-300">
<code>no backticks</code>
</article>
from unocss.
Thanks!
And another issue is, if you open the custom css
panel in the playground example I provided, I wrote
.prose code {
@apply before:!content-none after:!content-none;
}
And I added transformerDirectives
in config, but this don't work too. I wonder why this transformer doesn't work
from unocss.
Thanks!
And another issue is, if you open the
custom css
panel in the playground example I provided, I wrote.prose code { @apply before:!content-none after:!content-none; }And I added
transformerDirectives
in config, but this don't work too. I wonder why this transformer doesn't work
This is because of attributify, you can't really target .prose because the class doesn't exist on the element, it's an attribute.
[prose] code {
@apply before:content-none after:content-none;
}
or class="prose"
.
from unocss.
Related Issues (20)
- Vite plugin can not work on bun runtime HOT 1
- [eslint-plugin]: Bump to `typescript-eslint@v8` HOT 1
- unocss styles override each other in vite http module HOT 4
- Spread syntax requires ...iterable[Symbol.iterator] to be a function
- preset-uno `px-toString` will generate javascript code to css HOT 1
- [@unocss/postcss] "Unknown word" error for className binding HOT 4
- UnoCSS causes Vite CJS warning in Tutorialkit project HOT 5
- unocss style repeated loading HOT 5
- Inconsistent Styles Between Development and Production in UnoCSS with Nuxt
- Rule with regex does not properly replace built in rule HOT 2
- VSCode: Unresponsive extension host HOT 2
- bug(presetIcons): custom SVG icon loads invalid `width` and `height` HOT 2
- transition-colors is inconsistent with tainwindcss HOT 2
- 建议考虑内置 autoprefixer 插件 HOT 2
- transformer-variant-group broken in 0.62 HOT 1
- Support scale the duration to animated icons.
- Error when using `cssFileTransformers` HOT 2
- `unocss/postcss` does not recognise the contents of the `packages/**` in next monorepo HOT 10
- When I use CDN to introduce it directly into HTML for development, the unocss plug-in of vscode does not work. HOT 1
- 自定义背景颜色、字体颜色、边框颜色没有代码提示 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unocss.