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: Remove zebra striping from tables
  • Loading branch information
CAM-Gerlach committed Sep 28, 2022
commit 86acba25aa1ee8f09524fa1aa6bfb20658ac610c
12 changes: 2 additions & 10 deletions pep_sphinx_extensions/pep_theme/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
--colour-rule-light: var(--light, #ddd) var(--dark, #222);
--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-admonition: var(--light, #ddd) var(--dark, #333);
--colour-error: var(--light, #faa) var(--dark, #800);
--colour-warning: var(--light, #fca) var(--dark, #840);
Expand Down Expand Up @@ -239,19 +237,12 @@ table caption {
margin: 1rem 0 .75rem;
}
table thead tr {
background-color: var(--colour-background-accent-strong);
background-color: var(--colour-admonition);
color: var(--colour-text-strong);
}
table tbody tr {
border-top: 1px solid var(--colour-background-accent-strong);
}
table tbody tr:nth-of-type(even) {
background-color: var(--colour-background-accent-light);
}
table tbody tr:nth-of-type(even) 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 All @@ -260,6 +251,7 @@ table td {
table.pep-zero-table tr td:nth-child(2) {
white-space: nowrap;
}
table th + th,
table td + td {
border-left: 1px solid var(--colour-background-accent-strong);
}
Expand Down
0