Skip to content

Commit 36c148d

Browse files
committed
Add green, red and yellow side border for good, bad and maybe code examples
1 parent 498d07f commit 36c148d

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

python_docs_theme/static/pydoctheme.css

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,20 @@ div.body hr {
230230
height: 1px;
231231
}
232232

233-
div.body pre {
234-
border-radius: 3px;
235-
border: 1px solid #ac9;
233+
div.body {
234+
pre {
235+
border-radius: 3px;
236+
border: 1px solid #ac9;
237+
}
238+
.good pre {
239+
border-left: 3px solid var(--good-border);
240+
}
241+
.bad pre {
242+
border-left: 3px solid var(--bad-border);
243+
}
244+
.maybe pre {
245+
border-left: 3px solid var(--middle-border);
246+
}
236247
}
237248

238249
/* Admonitions */

0 commit comments

Comments
 (0)