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

Commit97952b5

Browse files
authored
Merge pull request#188 from hugovk/refcount-return-borrowed-ref
2 parents9cda3a5 +8b3ec0b commit97952b5

File tree

2 files changed

+40
-14
lines changed

2 files changed

+40
-14
lines changed

‎python_docs_theme/static/pydoctheme.css

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
@importurl('classic.css');
22

3+
/* Common colours */
4+
:root {
5+
--good-color:rgb(4110051);
6+
--good-border:rgb(79196100);
7+
--middle-color:rgb(1337238);
8+
--middle-border:rgb(244,227,76);
9+
--bad-color:rgb(1594951);
10+
--bad-border:rgb(244,76,78);
11+
}
12+
313
/* unset some styles from the classic stylesheet */
414
div.document,
515
div.body,
@@ -323,8 +333,18 @@ div.footer a:hover {
323333
color:#0095c4;
324334
}
325335

336+
/* C API return value annotations */
337+
:root {
338+
--refcount:var(--good-color);
339+
--refcount-return-borrowed-ref:var(--middle-color);
340+
}
341+
326342
.refcount {
327-
color:#060;
343+
color:var(--refcount);
344+
}
345+
346+
.refcount.return_borrowed_ref {
347+
color:var(--refcount-return-borrowed-ref)
328348
}
329349

330350
.stableabi {
@@ -625,13 +645,13 @@ div.genindex-jumpbox a {
625645

626646
/* Version change directives */
627647
:root {
628-
--versionadded:rgb(4110051);
629-
--versionchanged:rgb(1337238);
630-
--deprecated:rgb(1594951);
648+
--versionadded:var(--good-color);
649+
--versionchanged:var(--middle-color);
650+
--deprecated:var(--bad-color);
631651

632-
--versionadded-border:rgb(79196100);
633-
--versionchanged-border:rgb(244,227,76);
634-
--deprecated-border:rgb(244,76,78);
652+
--versionadded-border:var(--good-border);
653+
--versionchanged-border:var(--middle-border);
654+
--deprecated-border:var(--bad-border);
635655
}
636656

637657
div.versionadded,

‎python_docs_theme/static/pydoctheme_dark.css

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/* Common colours */
2+
:root {
3+
--good-color:rgb(79196100);
4+
--good-border:var(--good-color);
5+
--middle-color:rgb(244,227,76);
6+
--middle-border:var(--middle-color);
7+
--bad-color:rgb(244,76,78);
8+
--bad-border:var(--bad-color);
9+
}
10+
111

212
/* Browser elements */
313
:root {
@@ -79,10 +89,6 @@ table.docutils th {
7989
background-color:#424242;
8090
}
8191

82-
.refcount {
83-
color:#afa;
84-
}
85-
8692
.stableabi {
8793
color:#bbf;
8894
}
@@ -143,7 +149,7 @@ img.invert-in-dark-mode {
143149

144150
/* Version change directives */
145151
:root {
146-
--versionadded:rgb(79196100);
147-
--versionchanged:rgb(244,227,76);
148-
--deprecated:rgb(244,76,78);
152+
--versionadded:var(--good-color);
153+
--versionchanged:var(--middle-color);
154+
--deprecated:var(--bad-color);
149155
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp