From a05e4bdb24081c8dfc16a7fb7e404f05967f1dfd Mon Sep 17 00:00:00 2001 From: Daniel P H Fox Date: Wed, 28 Aug 2024 10:14:11 +0100 Subject: [PATCH] Tint admonitions with colour --- docs/assets/theme/admonition.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/assets/theme/admonition.css b/docs/assets/theme/admonition.css index 62440a572..319c8fa4c 100644 --- a/docs/assets/theme/admonition.css +++ b/docs/assets/theme/admonition.css @@ -10,6 +10,8 @@ 0 0.25em 1.5em -0.75em var(--admonition-color), inset 0 1em 2em -2.25em var(--admonition-color) !important; + + background: linear-gradient(var(--admonition-color) -99999%, transparent 5000%), var(--fusiondoc-bg-2); } .md-typeset :is(.admonition, details) > :is(.admonition-title, summary)::before { @@ -54,5 +56,5 @@ } [data-md-color-scheme="fusiondoc-dark"] .md-typeset .admonition.details { - --md-code-bg-color: var(--fusiondoc-grey-1); + --md-code-bg-color: var(--fusiondoc-grey-1); } \ No newline at end of file