8000 Style: Fix colors and style for all admonitions by CAM-Gerlach · Pull Request #2691 · python/peps · GitHub
[go: up one dir, main page]

Skip to content

Style: Fix colors and style for all admonitions #2691

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 4 commits into from
Jul 6, 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
Use higher-contrast link color in admonitions & adjust BGs accordingly
  • Loading branch information
CAM-Gerlach committed Jun 30, 2022
commit 284ae32557fe86b642dc24042003c35f09e34cb5
14 changes: 9 additions & 5 deletions pep_sphinx_extensions/pep_theme/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@
--colour-background-accent: var(--light, #ccc) var(--dark, #333);
--colour-text: var(--light, #333) var(--dark, #ccc);
--colour-links: var(--light, #069) var(--dark, #8bf);
--colour-links-light: var(--light, #057) var(--dark, #acf);
--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-error: var(--light, #fcc) var(--dark, #800);
--colour-warning: var(--light, #fdb) var(--dark, #804000);
--colour-caution: var(--light, #ffa) var(--dark, #440);
--colour-attention: var(--light, #bdf) var(--dark, #034);
--colour-tip: var(--light, #bfc) var(--dark, #031);
--colour-error: var(--light, #faa) var(--dark, #800);
--colour-warning: var(--light, #fca) var(--dark, #840);
--colour-caution: var(--light, #ffa) var(--dark, #550);
--colour-attention: var(--light, #bdf) var(--dark, #045);
--colour-tip: var(--light, #bfc) var(--dark, #041);
}

img.invert-in-dark-mode {
Expand Down Expand Up @@ -297,6 +298,9 @@ div.admonition {
margin-top: 1rem;
padding: 0.5rem 0.75rem;
}
div.admonition a {
color: var(--colour-links-light);
}

div.danger,
div.error {
Expand Down
0