Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility improvements to the left nav #638

Merged
merged 3 commits into from May 18, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/changelog.rst
Expand Up @@ -3,6 +3,14 @@
Changelog
*********

Master
======

Fixes
-----

* Color accessibility improvements on the left navigation

v0.3.1
======

Expand Down
5 changes: 4 additions & 1 deletion sass/_theme_layout.sass
Expand Up @@ -24,7 +24,9 @@
padding: 0 $base-font-size

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

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

ul
Expand Down Expand Up @@ -97,6 +98,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
4 changes: 2 additions & 2 deletions sass/_theme_variables.sass
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,30%) !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