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

Use different colour for 'Return value: Borrowed reference'#188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hugovk merged 2 commits intopython:mainfromhugovk:refcount-return-borrowed-ref
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 27 additions & 7 deletionspython_docs_theme/static/pydoctheme.css
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
@import url('classic.css');

/* Common colours */
:root {
--good-color: rgb(41 100 51);
--good-border: rgb(79 196 100);
--middle-color: rgb(133 72 38);
--middle-border: rgb(244, 227, 76);
--bad-color: rgb(159 49 51);
--bad-border: rgb(244, 76, 78);
}

/* unset some styles from the classic stylesheet */
div.document,
div.body,
Expand DownExpand Up@@ -323,8 +333,18 @@ div.footer a:hover {
color: #0095c4;
}

/* C API return value annotations */
:root {
--refcount: var(--good-color);
--refcount-return-borrowed-ref: var(--middle-color);
}

.refcount {
color: #060;
color: var(--refcount);
}

.refcount.return_borrowed_ref {
color: var(--refcount-return-borrowed-ref)
}

.stableabi {
Expand DownExpand Up@@ -625,13 +645,13 @@ div.genindex-jumpbox a {

/* Version change directives */
:root {
--versionadded:rgb(41 100 51);
--versionchanged:rgb(133 72 38);
--deprecated:rgb(159 49 51);
--versionadded:var(--good-color);
--versionchanged:var(--middle-color);
--deprecated:var(--bad-color);

--versionadded-border:rgb(79 196 100);
--versionchanged-border:rgb(244, 227, 76);
--deprecated-border:rgb(244, 76, 78);
--versionadded-border:var(--good-border);
--versionchanged-border:var(--middle-border);
--deprecated-border:var(--bad-border);
}

div.versionadded,
Expand Down
20 changes: 13 additions & 7 deletionspython_docs_theme/static/pydoctheme_dark.css
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
/* Common colours */
:root {
--good-color: rgb(79 196 100);
--good-border: var(--good-color);
--middle-color: rgb(244, 227, 76);
--middle-border: var(--middle-color);
--bad-color: rgb(244, 76, 78);
--bad-border: var(--bad-color);
}


/* Browser elements */
:root {
Expand DownExpand Up@@ -79,10 +89,6 @@ table.docutils th {
background-color: #424242;
}

.refcount {
color: #afa;
}

.stableabi {
color: #bbf;
}
Expand DownExpand Up@@ -143,7 +149,7 @@ img.invert-in-dark-mode {

/* Version change directives */
:root {
--versionadded:rgb(79 196 100);
--versionchanged:rgb(244, 227, 76);
--deprecated:rgb(244, 76, 78);
--versionadded:var(--good-color);
--versionchanged:var(--middle-color);
--deprecated:var(--bad-color);
}
Loading

[8]ページ先頭

©2009-2025 Movatter.jp