Skip to content

Line space between items in toctree list too wideΒ #1029

@idnsunset

Description

@idnsunset

Problem

Line space between items in toctree list is too wide. It seems that .rst-content .section ul li > ul overrides .rst-content .toctree-wrapper ul li ul producing the 12px bottom margin and .rst-content .section ul li>* produces 12px top margin.

I have to set both margin-top and margin-bottom to 0 on nested <ul> elements in .toctree-wrapper to fix this.

Error Logs/Results

sphinx-rtd-theme_toctree-line-space

Expected Results

2020-12-30-165016_209x106_scrot

Environment Info

  • Python Version: 3.9.1
  • Sphinx Version: 3.3.1
  • RTD Theme Version: 0.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions