@themal/editor 0.18.1 → 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 +7 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -671,25 +671,21 @@ 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)
|
|
675
|
-
body {
|
|
676
|
-
font-family: ${r.bodyFamily};
|
|
677
|
-
font-size: ${r.baseFontSize}px;
|
|
674
|
+
s || (s = document.createElement("style"), s.id = io), document.head.appendChild(s), s.textContent = `
|
|
675
|
+
body, body * {
|
|
676
|
+
font-family: ${r.bodyFamily} !important;
|
|
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
|
-
font-family: ${r.headingFamily};
|
|
685
|
+
font-family: ${r.headingFamily} !important;
|
|
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