fix(md-embed): proper font size/weight inheritence
This commit is contained in:
@@ -42,7 +42,7 @@ customElement("md-embed", { headingBase: 0 }, (props, { element }) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class="md-embed not-prose">
|
<div class="md-embed">
|
||||||
<Show when={content.loading}>
|
<Show when={content.loading}>
|
||||||
<div class="text-gray-400 italic">加载中...</div>
|
<div class="text-gray-400 italic">加载中...</div>
|
||||||
</Show>
|
</Show>
|
||||||
|
|||||||
@@ -84,6 +84,11 @@ icon.big .icon-label-stroke {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* md-embed — inherit parent font size (e.g. card layer font-size) */
|
||||||
|
.md-embed .prose {
|
||||||
|
font-size: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
/*alert*/
|
/*alert*/
|
||||||
|
|
||||||
.markdown-alert-title {
|
.markdown-alert-title {
|
||||||
|
|||||||
Reference in New Issue
Block a user