Skip to content

Commit 2fbd069

Browse files
committed
Add colors for thread safety annotations
1 parent 3434208 commit 2fbd069

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

python_docs_theme/static/pydoctheme.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,26 @@ div.footer a:hover {
444444
color: #229;
445445
}
446446

447+
/* C API thread safety annotations */
448+
:root {
449+
--threadsafety-incompatible: var(--bad-color);
450+
--threadsafety-compatible: var(--middle-color);
451+
--threadsafety-safe: var(--good-color);
452+
}
453+
454+
.threadsafety.threadsafety-incompatible {
455+
color: var(--threadsafety-incompatible);
456+
}
457+
458+
.threadsafety.threadsafety-compatible {
459+
color: var(--threadsafety-compatible);
460+
}
461+
462+
.threadsafety.threadsafety-safe {
463+
color: var(--threadsafety-safe);
464+
}
465+
466+
447467
dl > dt span ~ em,
448468
.sig {
449469
font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;

0 commit comments

Comments
 (0)