@themal/editor 0.18.1 → 0.18.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/dist/index.js +4 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -672,24 +672,20 @@ function Kt(r) {
|
|
|
672
672
|
n.style.setProperty("--font-heading", r.headingFamily), n.style.setProperty("--font-body", r.bodyFamily), n.style.setProperty("--font-size-base", `${r.baseFontSize}px`), n.style.setProperty("--font-weight-heading", String(r.headingWeight)), n.style.setProperty("--font-weight-body", String(r.bodyWeight)), n.style.setProperty("--line-height", String(r.lineHeight)), n.style.setProperty("--letter-spacing", `${r.letterSpacing}em`), n.style.setProperty("--letter-spacing-heading", `${r.headingLetterSpacing}em`);
|
|
673
673
|
let s = document.getElementById(io);
|
|
674
674
|
s || (s = document.createElement("style"), s.id = io, document.head.appendChild(s)), s.textContent = `
|
|
675
|
-
body {
|
|
675
|
+
body, body * {
|
|
676
676
|
font-family: ${r.bodyFamily};
|
|
677
|
-
font-size: ${r.baseFontSize}px;
|
|
678
677
|
font-weight: ${r.bodyWeight};
|
|
679
678
|
line-height: ${r.lineHeight};
|
|
680
679
|
letter-spacing: ${r.letterSpacing}em;
|
|
681
680
|
}
|
|
681
|
+
body {
|
|
682
|
+
font-size: ${r.baseFontSize}px;
|
|
683
|
+
}
|
|
682
684
|
h1, h2, h3, h4, h5, h6 {
|
|
683
685
|
font-family: ${r.headingFamily};
|
|
684
686
|
font-weight: ${r.headingWeight};
|
|
685
687
|
letter-spacing: ${r.headingLetterSpacing}em;
|
|
686
688
|
}
|
|
687
|
-
p, ul, ol, li, a, button, input, select, textarea, label, span {
|
|
688
|
-
font-family: ${r.bodyFamily};
|
|
689
|
-
font-size: ${r.baseFontSize}px;
|
|
690
|
-
font-weight: ${r.bodyWeight};
|
|
691
|
-
line-height: ${r.lineHeight};
|
|
692
|
-
}
|
|
693
689
|
.ds-editor {
|
|
694
690
|
font-family: ${r.bodyFamily};
|
|
695
691
|
font-size: ${r.baseFontSize}px;
|
package/package.json
CHANGED