Unify all font customizations

This commit is contained in:
2026-07-29 12:38:17 -04:00
parent 7cb48ee528
commit 84bed0b4f9
4 changed files with 146 additions and 9 deletions

View File

@@ -58,3 +58,54 @@ code, pre, .cm-line, .metadata-property-value {
text-rendering: optimizeSpeed;
}
/* Footnotes */
/* Reference marker, both views */
a.footnote-link,
.cm-s-obsidian span.cm-footref.cm-hmd-barelink,
.cm-s-obsidian span.cm-footref.cm-hmd-barelink.cm-formatting {
font-family: var(--my-mono) !important;
font-size: inherit !important;
letter-spacing: 0 !important;
}
/* The <sup> wrapper does the raising, not the <a> */
.markdown-rendered sup {
vertical-align: baseline !important;
font-size: inherit !important;
line-height: inherit !important;
}
/* Footnote text, both views */
.footnotes,
.footnotes p,
.footnotes li,
.cm-s-obsidian .cm-line.HyperMD-footnote {
font-family: var(--my-mono) !important;
font-size: var(--font-text-size) !important;
line-height: var(--line-height-normal);
letter-spacing: 0 !important;
}
/* List numbers -- ::marker accepts font properties */
.footnotes ol > li::marker {
font-family: var(--my-mono);
font-size: var(--font-text-size);
}
/* catch-all: normalize every descendant span,
without touching size (which would flatten headings) */
.markdown-source-view.mod-cm6 .cm-line,
.markdown-source-view.mod-cm6 .cm-line *,
.markdown-rendered,
.markdown-rendered * {
font-family: var(--my-mono) !important;
letter-spacing: 0 !important;
word-spacing: 0 !important;
font-kerning: none !important;
font-variant-ligatures: none !important;
font-feature-settings: "liga" 0, "clig" 0, "calt" 0, "kern" 0 !important;
font-synthesis: none !important;
}