Skip to content

Commit 17ecdc6

Browse files
authored
Merge pull request readthedocs#638 from rtfd/increase-color-accessibility
Accessibility improvements to the left nav
2 parents 77f003e + ece4866 commit 17ecdc6

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

docs/changelog.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
Changelog
44
*********
55

6-
master
6+
Master
77
======
88

99
New Features
1010
-------------
1111

1212
Fixes
1313
-----
14+
* Color accessibility improvements on the left navigation
1415

1516
Other Changes
1617
--------------

sass/_theme_layout.sass

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
.wy-menu-vertical
2727
width: $nav-desktop-width
28+
2829
header, p.caption
2930
height: $base-font-size * 2
3031
display: inline-block
@@ -35,7 +36,6 @@
3536
font-weight: bold
3637
text-transform: uppercase
3738
font-size: 80%
38-
color: $menu-dark
3939
white-space: nowrap
4040

4141
ul
@@ -97,6 +97,8 @@
9797
border-top: solid 1px darken($menu-vertical-background-color, 20%)
9898

9999
// This is the on state for pages beyond second level
100+
li.toctree-l2 a, li.toctree-l3 a, li.toctree-l4 a
101+
color: $menu-link-color
100102
li.toctree-l1.current li.toctree-l2, li.toctree-l2.current li.toctree-l3
101103
> ul
102104
display: none
@@ -261,6 +263,7 @@
261263
overflow-x: hidden
262264
overflow-y: hidden
263265
min-height: 100%
266+
color: $menu-medium
264267
background: $nav-background-color
265268
z-index: $z-index-popover
266269

sass/_theme_variables.sass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ $menu-vertical-background-color: $section-background-color
3232
// Menu text colors
3333
$menu-color: $gray
3434
$menu-dark: lighten($menu-color,10%) !default
35-
$menu-medium: lighten($menu-color,25%) !default
35+
$menu-medium: lighten($menu-color,27.5%) !default
3636
$menu-light: lighten($menu-color,45%) !default
3737
$menu-lighter: lighten($menu-color,60%) !default
3838

3939
// Menu link colors
4040
$menu-link-color: $text-color
4141
$menu-link-dark: $text-dark
4242
$menu-link-medium: $text-medium
43-
$menu-link-light: $text-light
43+
$menu-link-light: $text-lighter
4444
$menu-link-active: $white
4545

4646
// Navigation colors

0 commit comments

Comments
 (0)