Skip to content

Commit

Permalink
styles: Add styles for Sphinx admonitions
Browse files Browse the repository at this point in the history
  • Loading branch information
tillywoodfield committed May 15, 2024
1 parent 90e0fc4 commit 7fa6fa8
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions styles/_admonitions.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
@use "pkg:iati-design-system" as ds;

.admonition,
.topic,
.versionadded,
.versionchanged,
div.deprecated {
@extend .iati-callout;
}

.admonition-title,
.topic-title {
@extend .iati-callout__title;
}

.attention,
.caution,
.warning,
.versionchanged {
@extend .iati-callout--orange;
}

.danger,
.error,
div.deprecated {
@extend .iati-callout--red;
}

.versionadded {
@extend .iati-callout--green;
}

.tip {
@extend .iati-callout--purple;
}

.versionmodified {
font-weight: bold;
}
1 change: 1 addition & 0 deletions styles/main.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@use "pkg:iati-design-system";
@use "typography";
@use "admonitions";

0 comments on commit 7fa6fa8

Please sign in to comment.