Skip to content

Commit 1ba882c

Browse files
committed
Accessibility improvements to the left nav
1 parent 45949bf commit 1ba882c

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

docs/changelog.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
Changelog
44
*********
55

6+
Master
7+
======
8+
9+
Fixes
10+
-----
11+
12+
* Color accessibility improvements on the left navigation
13+
614
v0.3.1
715
======
816

sass/_theme_layout.sass

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
padding: 0 $base-font-size
2525

2626
.wy-menu-vertical
27+
color: $menu-medium
2728
width: $nav-desktop-width
29+
2830
header, p.caption
2931
height: $base-font-size * 2
3032
display: inline-block
@@ -35,7 +37,6 @@
3537
font-weight: bold
3638
text-transform: uppercase
3739
font-size: 80%
38-
color: $menu-dark
3940
white-space: nowrap
4041

4142
ul
@@ -97,6 +98,8 @@
9798
border-top: solid 1px darken($menu-vertical-background-color, 20%)
9899

99100
// This is the on state for pages beyond second level
101+
li.toctree-l2 a, li.toctree-l3 a, li.toctree-l4 a
102+
color: $menu-link-color
100103
li.toctree-l1.current li.toctree-l2, li.toctree-l2.current li.toctree-l3
101104
> ul
102105
display: none

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,30%) !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)