Skip to content

Commit

Permalink
Add support for Important and Tip in docstrings (#1170)
Browse files Browse the repository at this point in the history
* Add support for Important and Tip in docstrings

* Revert "Add support for Important and Tip in docstrings"

This reverts commit b972fcd.

* Add support for Important in docstrings

* Add support for Tip in docstrings
  • Loading branch information
sfc-gh-dmatthews authored Oct 9, 2024
1 parent 456e033 commit 1e9638f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions styles/admonition.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,24 @@ div.admonition {
}
}

// Tip
&.tip {
@apply bg-indigo-10 dark:bg-indigo-100;

p.first.admonition-title {
@apply text-indigo-70;
}
}

// Important
&.important {
@apply bg-orange-10 dark:bg-orange-100/30;

p.first.admonition-title {
@apply text-orange-70;
}
}

// Warning
&.warning {
@apply bg-orange-10 dark:bg-orange-100/30;
Expand Down

0 comments on commit 1e9638f

Please sign in to comment.