@unocss/preset-typography 66.5.2 → 66.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.
- package/dist/index.mjs +3 -10
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1306,7 +1306,8 @@ function getCSS(preflights, options) {
|
|
|
1306
1306
|
if (typeof cssObjectOrValue !== "object") {
|
|
1307
1307
|
css += `${selectorOrKey}:${cssObjectOrValue}${important ? " !important" : ""};`;
|
|
1308
1308
|
} else {
|
|
1309
|
-
const
|
|
1309
|
+
const [selectorOrGroup, pseudo] = selectorOrKey.split("::");
|
|
1310
|
+
const _selector = `:where(${selectorOrGroup})${notProseSelector}${pseudo ? `::${pseudo}` : ""}`;
|
|
1310
1311
|
css += `${_selector} {`;
|
|
1311
1312
|
for (const [key, value] of Object.entries(cssObjectOrValue)) {
|
|
1312
1313
|
css += `${key}:${value}${important ? " !important" : ""};`;
|
|
@@ -1412,15 +1413,7 @@ const presetTypography = definePreset((options) => {
|
|
|
1412
1413
|
const css = getCSS(extended(resolvedSizeScheme[size], theme), options ?? {});
|
|
1413
1414
|
return {
|
|
1414
1415
|
[symbols2.body]: css,
|
|
1415
|
-
[symbols2.selector]:
|
|
1416
|
-
if (typeof options?.important === "string") {
|
|
1417
|
-
selector = `${options.important} ${selector}`;
|
|
1418
|
-
}
|
|
1419
|
-
if (!options?.compatibility?.noColonIs) {
|
|
1420
|
-
selector = `:is(${selector})`;
|
|
1421
|
-
}
|
|
1422
|
-
return selector;
|
|
1423
|
-
}
|
|
1416
|
+
[symbols2.selector]: normalizeSelector
|
|
1424
1417
|
};
|
|
1425
1418
|
},
|
|
1426
1419
|
{ layer: "typography", autocomplete: `${selectorName}-(${Object.keys(resolvedSizeScheme).join("|")})` }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-typography",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.5.
|
|
4
|
+
"version": "66.5.4",
|
|
5
5
|
"description": "Typography preset for UnoCSS",
|
|
6
6
|
"author": "Jeff Yang",
|
|
7
7
|
"license": "MIT",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"dist"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@unocss/core": "66.5.
|
|
36
|
-
"@unocss/rule-utils": "66.5.
|
|
35
|
+
"@unocss/core": "66.5.4",
|
|
36
|
+
"@unocss/rule-utils": "66.5.4"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "unbuild",
|