Skip to content

Commit efed5c6

Browse files
committed
Add styles for Github's markdown alerts
1 parent b4afbde commit efed5c6

4 files changed

Lines changed: 25 additions & 1 deletion

File tree

pdoc/templates/content.css

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,41 @@ This makes sure that the pdoc styling doesn't leak to the rest of the page when
4545
}
4646

4747
/* Admonitions are currently not stylable via theme.css */
48-
.pdoc .alert.note {
48+
.pdoc .alert.note {
4949
color: #084298;
5050
background-color: #cfe2ff;
5151
border-color: #b6d4fe;
5252
background-image: url("data:image/svg+xml,{% filter urlencode %}{% include 'resources/info-circle-fill.svg' %}{% endfilter %}");
5353
}
5454

55+
.pdoc .alert.tip {
56+
color: #0a3622;
57+
background-color: #d1e7dd;
58+
border-color: #a3cfbb;
59+
background-image: url("data:image/svg+xml,{% filter urlencode %}{% include 'resources/lightbulb.svg' %}{% endfilter %}");
60+
}
61+
62+
.pdoc .alert.important {
63+
color: #055160;
64+
background-color: #cff4fc;
65+
border-color: #9eeaf9;
66+
background-image: url("data:image/svg+xml,{% filter urlencode %}{% include 'resources/exclamation-square-fill.svg' %}{% endfilter %}");
67+
}
68+
5569
.pdoc .alert.warning {
5670
color: #664d03;
5771
background-color: #fff3cd;
5872
border-color: #ffecb5;
5973
background-image: url("data:image/svg+xml,{% filter urlencode %}{% include 'resources/exclamation-triangle-fill.svg' %}{% endfilter %}");
6074
}
6175

76+
.pdoc .alert.caution {
77+
color: #842029;
78+
background-color: #f8d7da;
79+
border-color: #f5c2c7;
80+
background-image: url("data:image/svg+xml,{% filter urlencode %}{% include 'resources/exclamation-octagon-fill.svg' %}{% endfilter %}");
81+
}
82+
6283
.pdoc .alert.danger {
6384
color: #842029;
6485
background-color: #f8d7da;
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)