mirror of
https://github.com/jackyzha0/quartz
synced 2026-11-27 22:14:40 +01:00
fix(styles): style callout titles on .callout-title-inner (obsidian-flavored-markdown renders no <p> there, as in Obsidian)
This commit is contained in:
2 files changed
+10
No files matched your search
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@jackyzha0/quartz": patch
|
||||
---
|
||||
|
||||
Callout titles are styled on `.callout-title-inner` itself (colour, margin, line height), as obsidian-flavored-markdown now renders the title there without a `<p>`, as in Obsidian. The `> p` rule stays for sites on an older obsidian-flavored-markdown.
|
||||
@@ -161,6 +161,9 @@
|
||||
--callout-icon: var(--callout-icon-fold);
|
||||
}
|
||||
|
||||
// The title's text sits in .callout-title-inner, as in Obsidian; obsidian-flavored-markdown
|
||||
// before 2.3.1 wrapped it in a <p>
|
||||
& > .callout-title-inner,
|
||||
& > .callout-title-inner > p {
|
||||
color: var(--color);
|
||||
margin: 0;
|
||||
@@ -185,5 +188,7 @@
|
||||
|
||||
.callout-title-inner {
|
||||
font-weight: $semiBoldWeight;
|
||||
// the line height the title had as a <p>
|
||||
line-height: 1.6rem;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user