8000 Style: Fix zebra stripes and improve table & code presentation by CAM-Gerlach · Pull Request #2805 · python/peps · GitHub
[go: up one dir, main page]

Skip to content
8000

Style: Fix zebra stripes and improve table & code presentation #2805

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 2, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Style: Ensure consistant contrast for code blocks in zebra tables
  • Loading branch information
CAM-Gerlach committed Sep 28, 2022
commit 6fb32b19630d175bf4bdd79b4dd6eecf985b1a54
12 changes: 10 additions & 2 deletions pep_sphinx_extensions/pep_theme/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
--colour-scrollbar: var(--light, #ccc) var(--dark, #333);
--colour-rule-strong: var(--light, #888) var(--dark, #777);
--colour-rule-light: var(--light, #ddd) var(--dark, #222);
--colour-inline-code: var(--light, #f8f8f8) var(--dark, #333);
--colour-inline-code-bg: var(--light, #eee) var(--dark, #333);
--colour-inline-code-text: var(--light, #222) var(--dark, #ccc);
--colour-inline-code-accent-bg: var(--light, #ddd) var(--dark, #444);
--colour-inline-code-accent-text: var(--light, #111) var(--dark, #ccc);
--colour-error: var(--light, #faa) var(--dark, #800);
--colour-warning: var(--light, #fca) var(--dark, #840);
--colour-caution: var(--light, #ffa) var(--dark, #550);
Expand Down Expand Up @@ -152,8 +155,9 @@ code {
overflow-wrap: anywhere;
}
code.literal {
background-color: var(--colour-inline-code-bg);
color: var(--colour-inline-code-text);
font-size: .8em;
background-color: var(--colour-inline-code);
}
pre {
overflow-x: auto;
Expand Down Expand Up @@ -235,6 +239,10 @@ table caption {
table tbody tr:nth-of-type(odd) {
background-color: var(--colour-background-accent-light);
}
table tbody tr:nth-of-type(odd) code.literal {
background-color: var(--colour-inline-code-accent-bg);
color: var(--colour-inline-code-accent-text);
}
table th,
table td {
text-align: left;
Expand Down
3819
0