mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Add support for Sphinx 1.3 toctree captions
Reuses styling for wy-nav-vertical headers, which seem to be unused, with some color changes to the header elements. Also fixes caption headerlink styling.
This commit is contained in:
parent
8f6e95007d
commit
4dfd2fe6ef
|
@ -18,6 +18,11 @@ Contents:
|
||||||
|
|
||||||
demo
|
demo
|
||||||
list
|
list
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
|
:caption: This is an incredibly long caption for a long menu
|
||||||
|
|
||||||
long
|
long
|
||||||
|
|
||||||
Maaaaath!
|
Maaaaath!
|
||||||
|
|
|
@ -24,16 +24,17 @@
|
||||||
padding: 0 $base-font-size
|
padding: 0 $base-font-size
|
||||||
|
|
||||||
.wy-menu-vertical
|
.wy-menu-vertical
|
||||||
header
|
header, p.caption
|
||||||
height: $base-font-size * 2
|
height: $base-font-size * 2
|
||||||
display: inline-block
|
display: inline-block
|
||||||
line-height: $base-font-size * 2
|
line-height: $base-font-size * 2
|
||||||
padding: 0 $gutter
|
padding: 0 $gutter
|
||||||
|
margin-bottom: 0
|
||||||
display: block
|
display: block
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
text-transform: uppercase
|
text-transform: uppercase
|
||||||
font-size: 80%
|
font-size: 80%
|
||||||
color: $menu-logo-color
|
color: $gray
|
||||||
white-space: nowrap
|
white-space: nowrap
|
||||||
|
|
||||||
ul
|
ul
|
||||||
|
|
|
@ -99,7 +99,7 @@
|
||||||
display: block
|
display: block
|
||||||
|
|
||||||
// This is the #href that shows up on hover. Sphinx's is terrible so I hack it away.
|
// This is the #href that shows up on hover. Sphinx's is terrible so I hack it away.
|
||||||
h1, h2, h3, h4, h5, h6, dl dt
|
h1, h2, h3, h4, h5, h6, dl dt, p.caption
|
||||||
.headerlink
|
.headerlink
|
||||||
display: none
|
display: none
|
||||||
visibility: hidden
|
visibility: hidden
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user