Skip to content

Commit

Permalink
Merge pull request #638 from rtfd/increase-color-accessibility
Browse files Browse the repository at this point in the history
Accessibility improvements to the left nav
  • Loading branch information
davidfischer committed May 18, 2018
2 parents 77f003e + ece4866 commit 17ecdc6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
Changelog
*********

master
Master
======

New Features
-------------

Fixes
-----
* Color accessibility improvements on the left navigation

Other Changes
--------------
Expand Down
5 changes: 4 additions & 1 deletion sass/_theme_layout.sass
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

.wy-menu-vertical
width: $nav-desktop-width

header, p.caption
height: $base-font-size * 2
display: inline-block
Expand All @@ -35,7 +36,6 @@
font-weight: bold
text-transform: uppercase
font-size: 80%
color: $menu-dark
white-space: nowrap

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

// This is the on state for pages beyond second level
li.toctree-l2 a, li.toctree-l3 a, li.toctree-l4 a
color: $menu-link-color
li.toctree-l1.current li.toctree-l2, li.toctree-l2.current li.toctree-l3
> ul
display: none
Expand Down Expand Up @@ -261,6 +263,7 @@
overflow-x: hidden
overflow-y: hidden
min-height: 100%
color: $menu-medium
background: $nav-background-color
z-index: $z-index-popover

Expand Down
4 changes: 2 additions & 2 deletions sass/_theme_variables.sass
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ $menu-vertical-background-color: $section-background-color
// Menu text colors
$menu-color: $gray
$menu-dark: lighten($menu-color,10%) !default
$menu-medium: lighten($menu-color,25%) !default
$menu-medium: lighten($menu-color,27.5%) !default
$menu-light: lighten($menu-color,45%) !default
$menu-lighter: lighten($menu-color,60%) !default

// Menu link colors
$menu-link-color: $text-color
$menu-link-dark: $text-dark
$menu-link-medium: $text-medium
$menu-link-light: $text-light
$menu-link-light: $text-lighter
$menu-link-active: $white

// Navigation colors
Expand Down

0 comments on commit 17ecdc6

Please sign in to comment.