readthedocs/sphinx_rtd_theme

Reduce bottom-margin for code blocks within lists

Open

#706 ouverte le 17 déc. 2018

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)CSS (1 413 forks)batch import
BugGood First Issue

Métriques du dépôt

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

Description

Problem

Like for <p>, also 50% bottom margin for code blocks within lists:

image

Margin after <p>Code sample:</p> there is 12px, but margin after code block is 24px.

Other

I don't think there's need to support case with bottom margin of 0 because code blocks probably always exist within "open" lists - never in compact lists (would be weird).

Also check if there are any other elements that should be tuned for half the margin when they exist within lists (e.g. tables)?

Environment Info

  • Python Version: 2.7
  • Sphinx Version: 1.8.2
  • RTD Theme Version: 0.4.2

Guide contributeur