Skip to content

Commit

Permalink
PEP 8: Add green and red sidbar for good and bad examples (#3567)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Dec 9, 2023
1 parent 0e298a1 commit d341072
Show file tree
Hide file tree
Showing 2 changed files with 574 additions and 395 deletions.
12 changes: 11 additions & 1 deletion pep_sphinx_extensions/pep_theme/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,16 @@ pre {
white-space: pre;
}

.good pre {
border-left: 3px solid rgba(74, 182, 93, 1);
}
.bad pre {
border-left: 3px solid rgb(244, 76, 78);
}
.maybe pre {
border-left: 3px solid rgb(244, 227, 76);
}

/* Contents rules */
details > summary {
cursor: pointer;
Expand Down Expand Up @@ -434,4 +444,4 @@ dl.footnote > dd {
background: transparent;
color: inherit;
margin-top: 0;
}
}
Loading

0 comments on commit d341072

Please sign in to comment.