readthedocs/sphinx_rtd_theme

Inconsistent vertical spacing in nested lists

Open

#996 ouverte le 6 sept. 2020

Voir sur GitHub
 (1 commentaire) (5 réactions) (0 assignés)CSS (1 413 forks)batch import
Good First IssueImprovement

Métriques du dépôt

Stars
 (3 473 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Problem

The vertical spacing is inconsistent in nested lists. A blank line is left at the beginning of the second level, but no blank line when we return to the first level.

Reproducible Project

From the RTD theme documentation itself:


- I kept saying that, "deeper down the rabbit hole". `yahoo <http://www.yahoo.com>`_

  - I cackle at night `yahoo <http://www.yahoo.com>`_.
- I'm so lonely here in GZ ``guangzhou``

Note: Adding additional blank lines doesn't help

Error Logs/Results

image

Expected Results

Either

  • No space before "I cackle at night yahoo"
  • Also space after "I cackle at night yahoo"

Sepculation

The relevant CSS code is

.rst-content .section ul p {
    margin-bottom: 12px;
}


.rst-content .section ul li p:last-child {
    margin-bottom: 0;
}

Guide contributeur