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

Appearance settings

Commit 5d0ebd0

Browse filesBrowse files
hugovkAA-Turner
andauthored
Dark mode: Invert some images (#2409)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
1 parent 1a79345 commit 5d0ebd0
Copy full SHA for 5d0ebd0

File tree

10 files changed

+16
-0
lines changed
Filter options

10 files changed

+16
-0
lines changed

‎pep-0001.txt

Copy file name to clipboardExpand all lines: pep-0001.txt
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ an API can replace version 1.
439439
The possible paths of the status of PEPs are as follows:
440440

441441
.. image:: pep-0001-process_flow.png
442+
:class: invert-in-dark-mode
442443
:alt: PEP process flow diagram
443444

444445
While not shown in the diagram, "Accepted" PEPs may technically move to

‎pep-0458.txt

Copy file name to clipboardExpand all lines: pep-0458.txt
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ trusted to sign for files available on PyPI. The next two sections cover the
489489
details of signing repository files and the types of keys used for each role.
490490

491491
.. image:: pep-0458-1.png
492+
:class: invert-in-dark-mode
492493

493494
Figure 1: An overview of the role metadata available on PyPI.
494495

‎pep-0480.txt

Copy file name to clipboardExpand all lines: pep-0480.txt
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ packages in the minimum security model, but not in the maximum model, without
207207
also compromising a developer's key.
208208

209209
.. image:: pep-0480-1.png
210+
:class: invert-in-dark-mode
210211

211212
Figure 1: An overview of the metadata layout in the maximum security model.
212213
The maximum security model supports continuous delivery and survivable key

‎pep-0495.txt

Copy file name to clipboardExpand all lines: pep-0495.txt
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ the ``fold`` attribute depending on the kind of the transition.
387387
.. image:: pep-0495-fold-2.png
388388
:align: center
389389
:width: 60%
390+
:class: invert-in-dark-mode
390391

391392
The sketch above illustrates the relationship between the UTC and
392393
local time around a fall-back transition. The zig-zag line is a graph
@@ -412,6 +413,7 @@ effect after the transition should be used.
412413
.. image:: pep-0495-gap.png
413414
:align: center
414415
:width: 60%
416+
:class: invert-in-dark-mode
415417

416418
The sketch above illustrates the relationship between the UTC and
417419
local time around a spring-forward transition. At the transition, the

‎pep-0525.txt

Copy file name to clipboardExpand all lines: pep-0525.txt
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ iterated:
389389
.. image:: pep-0525-1.png
390390
:align: center
391391
:width: 80%
392+
:class: invert-in-dark-mode
392393

393394

394395
PyAsyncGenASend and PyAsyncGenAThrow

‎pep-0532.txt

Copy file name to clipboardExpand all lines: pep-0532.txt
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ breaking protocol (although it glosses over the technical detail of looking
681681
up the special methods via the type rather than the instance):
682682

683683
.. image:: pep-0532/circuit-breaking-protocol.svg
684+
:class: invert-in-dark-mode
684685
:alt: diagram of circuit breaking protocol applied to ternary expression
685686

686687
We will work through the following expression::

‎pep-0550.rst

Copy file name to clipboardExpand all lines: pep-0550.rst
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,6 +1568,7 @@ Appendix: HAMT Performance Analysis
15681568
.. figure:: pep-0550-hamt_vs_dict-v2.png
15691569
:align: center
15701570
:width: 100%
1571+
:class: invert-in-dark-mode
15711572

15721573
Figure 1. Benchmark code can be found here: [9]_.
15731574

@@ -1581,6 +1582,7 @@ The above chart demonstrates that:
15811582
.. figure:: pep-0550-lookup_hamt.png
15821583
:align: center
15831584
:width: 100%
1585+
:class: invert-in-dark-mode
15841586

15851587
Figure 2. Benchmark code can be found here: [10]_.
15861588

‎pep-0603.rst

Copy file name to clipboardExpand all lines: pep-0603.rst
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ Performance
298298
.. figure:: pep-0603-hamt_vs_dict.png
299299
:align: center
300300
:width: 100%
301+
:class: invert-in-dark-mode
301302

302303
Figure 1. Benchmark code can be found here: [3]_.
303304

@@ -312,6 +313,7 @@ The above chart demonstrates that:
312313
.. figure:: pep-0603-lookup_hamt.png
313314
:align: center
314315
:width: 100%
316+
:class: invert-in-dark-mode
315317

316318
Figure 2. Benchmark code can be found here: [4]_.
317319

‎pep-3147.txt

Copy file name to clipboardExpand all lines: pep-3147.txt
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ Here is a flow chart describing how modules are loaded:
318318

319319
.. image:: pep-3147-1.png
320320
:scale: 75
321+
:class: invert-in-dark-mode
321322

322323

323324
Alternative Python implementations

‎pep_sphinx_extensions/pep_theme/static/dark.css

Copy file name to clipboardExpand all lines: pep_sphinx_extensions/pep_theme/static/dark.css
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@
1616
--colour-inline-code: #333;
1717
--colour-warning: #900;
1818
}
19+
20+
img.invert-in-dark-mode {
21+
filter: invert(1);
22+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.