@blockbite/tailwind 3.5.2 → 3.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import plugin from 'tailwindcss/plugin';
|
|
2
2
|
export default plugin(function ({ addVariant }) {
|
|
3
3
|
// all direct children
|
|
4
|
-
|
|
4
|
+
// NOTE: Avoid `:where(&)` here: `:where()` has zero specificity, which can make
|
|
5
|
+
// `children:*` utilities lose against scoped editor styles like
|
|
6
|
+
// `.editor-styles-wrapper p { ... }` in the WP backend.
|
|
7
|
+
addVariant('children', '& > *');
|
|
5
8
|
// element-specific direct children
|
|
6
9
|
const elements = [
|
|
7
10
|
'p',
|
|
@@ -15,6 +18,6 @@ export default plugin(function ({ addVariant }) {
|
|
|
15
18
|
'blockquote',
|
|
16
19
|
];
|
|
17
20
|
elements.forEach((el) => {
|
|
18
|
-
addVariant(`children-${el}`,
|
|
21
|
+
addVariant(`children-${el}`, `& > ${el}`);
|
|
19
22
|
});
|
|
20
23
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockbite/tailwind",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.4",
|
|
4
4
|
"description": "helper for blockbite plugin and blockbite theme",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"npm": "^11.3.0",
|
|
27
27
|
"tailwind-scrollbar": "^4.0.2",
|
|
28
28
|
"user": "^0.0.0",
|
|
29
|
-
"@blockbite/libraries": "0.12.
|
|
29
|
+
"@blockbite/libraries": "0.12.4"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|