Skip to content

Commit 4beb746

Browse files
committed
Pygments has poor code block contrast outout using sphinx style.
Change to borland theme. This eliminated 68 poor contrast (< AA) examples on upgrading.html. Even more on other pages. axe DevTools is now happier. Borland theme/style doesn't color the bacground of the code blocks, so set to lightyellow in style.css. This still allows good contrast.
1 parent 0b5b7f0 commit 4beb746

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

website/www/_static/style.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,5 @@ ul.simple li a { min-height: 48px;
159159
/* make examples with long lines scrollable */
160160
div.highlight pre { overflow: auto;}
161161
}
162+
/* set background when using borland pygments style */
163+
div.highlight pre { background: lightyellow;}

website/www/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
#show_authors = False
9393

9494
# The name of the Pygments (syntax highlighting) style to use.
95-
pygments_style = 'sphinx'
95+
pygments_style = 'borland'
9696

9797

9898
# Options for HTML output

0 commit comments

Comments
 (0)