Skip to content

Commit 90419d4

Browse files
committed
Add green, red and yellow side borders for code examples
1 parent 498d07f commit 90419d4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

python_docs_theme/static/pydoctheme.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,18 @@ div.body pre {
235235
border: 1px solid #ac9;
236236
}
237237

238+
div.body {
239+
.good pre {
240+
border-left: 3px solid var(--good-border);
241+
}
242+
.bad pre {
243+
border-left: 3px solid var(--bad-border);
244+
}
245+
.maybe pre {
246+
border-left: 3px solid var(--middle-border);
247+
}
248+
}
249+
238250
/* Admonitions */
239251
:root {
240252
--admonition-background: #eee;

0 commit comments

Comments
 (0)