diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 859160603..456d12cd1 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -5,3 +5,24 @@ mjx-math { .mermaid { text-align: center; } + +:root { + --md-admonition-icon--important: url('data:image/svg+xml;charset=utf-8,') +} + +.md-typeset .admonition.important, +.md-typeset details.important { + border-color: rgb(43, 155, 70); +} + +.md-typeset .important>.admonition-title, +.md-typeset .important>summary { + background-color: rgba(43, 155, 70, 0.1); +} + +.md-typeset .important>.admonition-title::before, +.md-typeset .important>summary::before { + background-color: rgb(43, 155, 70); + -webkit-mask-image: var(--md-admonition-icon--important); + mask-image: var(--md-admonition-icon--important); +}