mirror of
https://github.com/gapmiss/inline-callouts.git
synced 2026-07-22 05:45:12 +00:00
feat: add custom font CSS variable
Added --inline-callout-font-family variable (default: inherit). Configurable via Style Settings plugin. Closes #6 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
750716057c
commit
b0835b9889
2 changed files with 8 additions and 0 deletions
|
|
@ -151,6 +151,7 @@ See [CSS snippets - Obsidian Help](https://help.obsidian.md/Extending+Obsidian/C
|
|||
|
||||
```css
|
||||
body {
|
||||
--inline-callout-font-family: inherit;
|
||||
--inline-callout-font-size: .85em;
|
||||
--inline-callout-font-weight: 400;
|
||||
--inline-callout-border-radius: 4px;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
body {
|
||||
--inline-callout-font-family: inherit;
|
||||
--inline-callout-font-size: .85em;
|
||||
--inline-callout-font-weight: 400;
|
||||
--inline-callout-border-radius: 4px;
|
||||
|
|
@ -45,6 +46,7 @@ body {
|
|||
}
|
||||
|
||||
.inline-callout-label {
|
||||
font-family: var(--inline-callout-font-family);
|
||||
font-size: var(--inline-callout-font-size);
|
||||
margin-top: var(--inline-callout-label-margin-top);
|
||||
margin-right: var(--inline-callout-label-margin-right);
|
||||
|
|
@ -157,6 +159,11 @@ settings:
|
|||
type: heading
|
||||
level: 4
|
||||
collapsed: true
|
||||
-
|
||||
id: inline-callout-font-family
|
||||
title: Font family
|
||||
type: variable-text
|
||||
default: inherit
|
||||
-
|
||||
id: inline-callout-font-size
|
||||
title: Font size
|
||||
|
|
|
|||
Loading…
Reference in a new issue