Skip to content

Commit

Permalink
Tint admonitions with colour
Browse files Browse the repository at this point in the history
  • Loading branch information
dphfox committed Aug 28, 2024
1 parent 7f35e70 commit a05e4bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/assets/theme/admonition.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
}

0 comments on commit a05e4bd

Please sign in to comment.