diff --git a/obsidian.css b/obsidian.css index 4ddfd91..aa9834c 100644 --- a/obsidian.css +++ b/obsidian.css @@ -1419,6 +1419,10 @@ settings: - label: Lavender value: anp-h1-lavender + - + id: anp-inline-color-match-h1 + title: Apply H1 Color to Inline Title + type: class-toggle - id: anp-h1-divider title: H1 Divider @@ -5262,6 +5266,10 @@ sup[data-footnote-id] { --h6-font: var(--anp-editor-font); } +.anp-inline-color-match-h1 .inline-title { + color: var(--h1-color); +} + /*-Custom hr margins-*/ hr { margin-block-start: 5px; diff --git a/src/modules/Core/style-settings.scss b/src/modules/Core/style-settings.scss index 352ee00..04364e5 100644 --- a/src/modules/Core/style-settings.scss +++ b/src/modules/Core/style-settings.scss @@ -1411,6 +1411,10 @@ settings: - label: Lavender value: anp-h1-lavender + - + id: anp-inline-color-match-h1 + title: Apply H1 Color to Inline Title + type: class-toggle - id: anp-h1-divider title: H1 Divider diff --git a/src/modules/Markdown-Elements/headers.scss b/src/modules/Markdown-Elements/headers.scss index 59304c2..16c2dae 100644 --- a/src/modules/Markdown-Elements/headers.scss +++ b/src/modules/Markdown-Elements/headers.scss @@ -64,3 +64,9 @@ $accents: "rosewater", "flamingo", "pink", "mauve", "red", "maroon", "peach", --h5-font: var(--anp-editor-font); --h6-font: var(--anp-editor-font); } + +.anp-inline-color-match-h1 { + .inline-title { + color: var(--h1-color); + } +} diff --git a/theme.css b/theme.css index 4ddfd91..aa9834c 100644 --- a/theme.css +++ b/theme.css @@ -1419,6 +1419,10 @@ settings: - label: Lavender value: anp-h1-lavender + - + id: anp-inline-color-match-h1 + title: Apply H1 Color to Inline Title + type: class-toggle - id: anp-h1-divider title: H1 Divider @@ -5262,6 +5266,10 @@ sup[data-footnote-id] { --h6-font: var(--anp-editor-font); } +.anp-inline-color-match-h1 .inline-title { + color: var(--h1-color); +} + /*-Custom hr margins-*/ hr { margin-block-start: 5px;