mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Extend toc in sidebar indentation (#852)
* added vscode config to .gitignore * implemented indentation for sidebar nav up to navigation_depth of 10 * removed .vscode from .gitignore Co-authored-by: Aaron Carlisle <carlisle.b3d@gmail.com>
This commit is contained in:
committed by
GitHub
parent
b3aa66d657
commit
ca015a5704
@@ -46,7 +46,8 @@ intersphinx_mapping = {
|
||||
|
||||
html_theme = 'sphinx_rtd_theme'
|
||||
html_theme_options = {
|
||||
'logo_only': True
|
||||
'logo_only': True,
|
||||
'navigation_depth': 5,
|
||||
}
|
||||
html_theme_path = ["../.."]
|
||||
html_logo = "demo/static/logo-wordmark-light.svg"
|
||||
@@ -54,6 +55,7 @@ html_show_sourcelink = True
|
||||
|
||||
htmlhelp_basename = slug
|
||||
|
||||
|
||||
latex_documents = [
|
||||
('index', '{0}.tex'.format(slug), project, author, 'manual'),
|
||||
]
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -101,42 +101,62 @@ html
|
||||
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
|
||||
|
||||
%hide_show_toctree_ul
|
||||
> ul
|
||||
display: none
|
||||
&.current > ul
|
||||
display: block
|
||||
|
||||
%shrink_toctree_element
|
||||
font-size: .9em
|
||||
|
||||
%toctree_link_color
|
||||
color: $menu-link-color
|
||||
|
||||
%toctree_hover_link_color
|
||||
color: $menu-link-medium
|
||||
|
||||
%display_current_toctree_element
|
||||
display: block
|
||||
|
||||
@for $toc_level from 1 through 10
|
||||
.toctree-l#{$toc_level}.current .toctree-l#{$toc_level + 1}
|
||||
@extend %hide_show_toctree_ul
|
||||
|
||||
@if $toc_level > 1
|
||||
li.toctree-l#{$toc_level}
|
||||
a
|
||||
@extend %toctree_link_color
|
||||
&.current
|
||||
> a
|
||||
padding: $gutter / 4 $gutter * ($toc_level - 1 + .5)
|
||||
|
||||
li.toctree-l#{$toc_level + 1} > a
|
||||
@extend %display_current_toctree_element
|
||||
padding: $gutter / 4 $gutter * ($toc_level + .5)
|
||||
a:hover span.toctree-expand
|
||||
@extend %toctree_hover_link_color
|
||||
@if $toc_level > 2 and $toc_level < 5
|
||||
li.toctree-l#{$toc_level}
|
||||
@extend %shrink_toctree_element
|
||||
|
||||
li.toctree-l2
|
||||
&.current
|
||||
> a
|
||||
background: darken($menu-vertical-background-color, 20%)
|
||||
padding: $gutter / 4 $gutter * 1.5
|
||||
li.toctree-l3 > a
|
||||
display: block
|
||||
background: darken($menu-vertical-background-color, 20%)
|
||||
padding: $gutter / 4 $gutter * 2.5
|
||||
a:hover span.toctree-expand
|
||||
color: $menu-link-medium
|
||||
span.toctree-expand
|
||||
color: darken($menu-vertical-background-color, 35%)
|
||||
li.toctree-l3
|
||||
font-size: .9em
|
||||
&.current
|
||||
> a
|
||||
background: darken($menu-vertical-background-color, 25%)
|
||||
padding: $gutter / 4 $gutter * 2.5
|
||||
li.toctree-l4 > a
|
||||
display: block
|
||||
background: darken($menu-vertical-background-color, 25%)
|
||||
padding: $gutter / 4 $gutter * 3.5
|
||||
a:hover span.toctree-expand
|
||||
color: $menu-link-medium
|
||||
span.toctree-expand
|
||||
color: darken($menu-vertical-background-color, 40%)
|
||||
li.toctree-l4
|
||||
font-size: .9em
|
||||
|
||||
li.current ul
|
||||
display: block
|
||||
@@ -215,7 +235,6 @@ html
|
||||
font-weight: normal
|
||||
color: rgba(255,255,255,.3)
|
||||
|
||||
|
||||
.wy-nav .wy-menu-vertical
|
||||
header
|
||||
color: $link-color
|
||||
@@ -244,7 +263,6 @@ html
|
||||
left: auto
|
||||
opacity: 0
|
||||
|
||||
|
||||
.wy-body-for-nav
|
||||
background: $section-background-color
|
||||
|
||||
@@ -359,7 +377,7 @@ footer
|
||||
font-size: 90%
|
||||
|
||||
.genindextable li > ul
|
||||
margin-left: $base-line-height
|
||||
margin-left: $base-line-height
|
||||
|
||||
+media($tablet)
|
||||
.wy-body-for-nav
|
||||
|
||||
Reference in New Issue
Block a user