@zazz-ui/core 0.5.1 → 0.5.2
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/AUTHORING.md +2 -2
- package/CHANGELOG.md +11 -0
- package/README.md +2 -2
- package/dist/sri.json +2 -2
- package/dist/zazz.css +1 -1
- package/editor/zazz.css-data.json +0 -4
- package/editor/zazz.html-data.json +3 -0
- package/editor/zazz.language-data.json +10 -4
- package/editor/zazz.lint-data.json +1 -0
- package/package.json +1 -1
- package/src/base/_typography.css +7 -15
- package/src/primitives/prose/prose.html +1 -0
|
@@ -115978,10 +115978,6 @@
|
|
|
115978
115978
|
"name": "--ui-prose-img-radius",
|
|
115979
115979
|
"description": "Primitive hook: the public override surface."
|
|
115980
115980
|
},
|
|
115981
|
-
{
|
|
115982
|
-
"name": "--ui-prose-link-text",
|
|
115983
|
-
"description": "Primitive hook: the public override surface."
|
|
115984
|
-
},
|
|
115985
115981
|
{
|
|
115986
115982
|
"name": "--ui-radio-bg",
|
|
115987
115983
|
"description": "Primitive hook: the public override surface."
|
|
@@ -232,6 +232,10 @@
|
|
|
232
232
|
"primitive": null,
|
|
233
233
|
"file": "base/_typography.css"
|
|
234
234
|
},
|
|
235
|
+
"text-link": {
|
|
236
|
+
"primitive": null,
|
|
237
|
+
"file": "base/_typography.css"
|
|
238
|
+
},
|
|
235
239
|
"text-md": {
|
|
236
240
|
"primitive": null,
|
|
237
241
|
"file": "base/_typography.css"
|
|
@@ -2671,10 +2675,6 @@
|
|
|
2671
2675
|
"value": "var(--radius-md)",
|
|
2672
2676
|
"file": "base/_typography.css"
|
|
2673
2677
|
},
|
|
2674
|
-
"--ui-prose-link-text": {
|
|
2675
|
-
"value": "inherit",
|
|
2676
|
-
"file": "base/_typography.css"
|
|
2677
|
-
},
|
|
2678
2678
|
"--ui-radio-bg": {
|
|
2679
2679
|
"value": "var(--ui-field-bg)",
|
|
2680
2680
|
"file": "primitives/radio/radio.css"
|
|
@@ -4157,6 +4157,12 @@
|
|
|
4157
4157
|
"light": "underline",
|
|
4158
4158
|
"dark": "underline"
|
|
4159
4159
|
},
|
|
4160
|
+
"--decoration-offset": {
|
|
4161
|
+
"value": "1px",
|
|
4162
|
+
"file": "base/_variables.css",
|
|
4163
|
+
"light": "1px",
|
|
4164
|
+
"dark": "1px"
|
|
4165
|
+
},
|
|
4160
4166
|
"--decoration-style": {
|
|
4161
4167
|
"value": "solid",
|
|
4162
4168
|
"file": "base/_variables.css",
|
package/package.json
CHANGED
package/src/base/_typography.css
CHANGED
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
--ui-prose-figcaption-gap: 0px;
|
|
21
21
|
--ui-prose-img-radius: var(--radius-md);
|
|
22
22
|
--ui-prose-img-border: none;
|
|
23
|
-
--ui-prose-link-text: inherit;
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
25
|
|
|
@@ -559,22 +558,15 @@
|
|
|
559
558
|
font-variation-settings: var(--font-settings-body);
|
|
560
559
|
}
|
|
561
560
|
|
|
562
|
-
:where(
|
|
563
|
-
|
|
564
|
-
text-decoration-line: var(--decoration-line);
|
|
565
|
-
text-decoration-style: var(--decoration-style);
|
|
566
|
-
text-decoration-color: var(--decoration-color);
|
|
567
|
-
text-underline-offset: var(--decoration-offset);
|
|
561
|
+
:where([data-ui~="text-link"]) {
|
|
562
|
+
text-decoration: underline;
|
|
568
563
|
text-decoration-thickness: var(--decoration-thickness);
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
:where(p a[href]:not([data-ui~="button"]):hover) {
|
|
573
|
-
--decoration-offset: calc(var(--decoration-thickness) * 2);
|
|
564
|
+
text-underline-offset: var(--decoration-offset);
|
|
565
|
+
transition: text-decoration-color var(--default-transition-duration)
|
|
566
|
+
var(--default-transition-timing-function);
|
|
574
567
|
}
|
|
575
568
|
|
|
576
|
-
:where(
|
|
577
|
-
|
|
578
|
-
/* back to the base offset while pressed */
|
|
569
|
+
:where([data-ui~="text-link"]:hover) {
|
|
570
|
+
text-decoration-color: oklch(from currentColor l c h / 0.3);
|
|
579
571
|
}
|
|
580
572
|
}
|