Skip to content

Commit ade62ae

Browse files
committed
Use different colour for 'Return value: Borrowed reference'
1 parent 26ca6d7 commit ade62ae

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

Diff for: python_docs_theme/static/pydoctheme.css

+11-1
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,18 @@ div.footer a:hover {
323323
color: #0095c4;
324324
}
325325

326+
/* C API return value annotations */
327+
:root {
328+
--refcount: #060;
329+
--refcount-return-borrowed-ref: rgb(133 72 38);
330+
}
331+
326332
.refcount {
327-
color: #060;
333+
color: var(--refcount);
334+
}
335+
336+
.refcount.return_borrowed_ref {
337+
color: var(--refcount-return-borrowed-ref)
328338
}
329339

330340
.stableabi {

Diff for: python_docs_theme/static/pydoctheme_dark.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,11 @@ table.docutils th {
7979
background-color: #424242;
8080
}
8181

82-
.refcount {
83-
color: #afa;
82+
/* C API return value annotations */
83+
84+
:root {
85+
--refcount: #afa;
86+
--refcount-return-borrowed-ref: rgb(244, 227, 76);
8487
}
8588

8689
.stableabi {

0 commit comments

Comments
 (0)