mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Accessibility improvements to the left nav
This commit is contained in:
parent
45949bf339
commit
1ba882cf87
@ -3,6 +3,14 @@
|
||||
Changelog
|
||||
*********
|
||||
|
||||
Master
|
||||
======
|
||||
|
||||
Fixes
|
||||
-----
|
||||
|
||||
* Color accessibility improvements on the left navigation
|
||||
|
||||
v0.3.1
|
||||
======
|
||||
|
||||
|
@ -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
|
||||
@ -35,7 +37,6 @@
|
||||
font-weight: bold
|
||||
text-transform: uppercase
|
||||
font-size: 80%
|
||||
color: $menu-dark
|
||||
white-space: nowrap
|
||||
|
||||
ul
|
||||
@ -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
|
||||
|
@ -32,7 +32,7 @@ $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
|
||||
|
||||
@ -40,7 +40,7 @@ $menu-lighter: lighten($menu-color,60%) !default
|
||||
$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
|
||||
|
Loading…
Reference in New Issue
Block a user