Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitade62ae

Browse files
committed
Use different colour for 'Return value: Borrowed reference'
1 parent26ca6d7 commitade62ae

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

‎python_docs_theme/static/pydoctheme.css

Lines changed: 11 additions & 1 deletion
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(1337238);
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 {

‎python_docs_theme/static/pydoctheme_dark.css

Lines changed: 5 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp