@themal/editor 0.18.2 → 0.18.3
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -671,9 +671,9 @@ function Kt(r) {
|
|
|
671
671
|
const n = document.documentElement;
|
|
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
|
-
s || (s = document.createElement("style"), s.id = io, document.head.appendChild(s)
|
|
674
|
+
s || (s = document.createElement("style"), s.id = io), document.head.appendChild(s), s.textContent = `
|
|
675
675
|
body, body * {
|
|
676
|
-
font-family: ${r.bodyFamily};
|
|
676
|
+
font-family: ${r.bodyFamily} !important;
|
|
677
677
|
font-weight: ${r.bodyWeight};
|
|
678
678
|
line-height: ${r.lineHeight};
|
|
679
679
|
letter-spacing: ${r.letterSpacing}em;
|
|
@@ -682,7 +682,7 @@ function Kt(r) {
|
|
|
682
682
|
font-size: ${r.baseFontSize}px;
|
|
683
683
|
}
|
|
684
684
|
h1, h2, h3, h4, h5, h6 {
|
|
685
|
-
font-family: ${r.headingFamily};
|
|
685
|
+
font-family: ${r.headingFamily} !important;
|
|
686
686
|
font-weight: ${r.headingWeight};
|
|
687
687
|
letter-spacing: ${r.headingLetterSpacing}em;
|
|
688
688
|
}
|
package/package.json
CHANGED