FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Improve how whitespace & line height is handled in the stylesheets · Issue #289 · python/python-docs-theme · GitHub

Repository navigation

Improve how whitespace & line height is handled in the stylesheets #289

Description

The vertical alignment of "Editors" inside its box is a bit off, it's too high up: https://docs.python.org/3/whatsnew/3.14.html

This is a <dl><dt>Editors</dt><dd>...</dd> structure.

We should also check other uses of this HTML in the docs.

Activity

  1. StanFromIreland commented on Dec 15, 2025

    Member

    I recall seeing this some time ago, yet today I cannot reproduce:

  2. pradyunsg commented on Dec 15, 2025

    Member

    I can reproduce this on Firefox on Android. The misalignment might be OS/browser specific.

  3. hugovk commented on Dec 15, 2025

    MemberAuthor

    I can repro on Chrome/Safari/Firefox/Opera on macOS and Chrome on Android.

  4. StanFromIreland commented on Dec 15, 2025

    Member

    Yes I can reproduce with Safari on iOS but not with Firefox on Linux.

  5. removed their assignment
    on Feb 28, 2026
  6. pradyunsg commented on Apr 14, 2026

    Member

    The reason this is happening is #160 changed the line-height for p tags, but not dt. I'm guessing the classic theme has the same problem.

    I've filed #303 with a targeted fix for this.

    Separately, I do feel like it would be better to have a consistent line-height across the page, instead of only in specific elements -- by overriding what is being set by classic.css, and tweaking how we're placing whitespace (padding/margin) around various elements.

  7. hugovk commented on Apr 14, 2026

    MemberAuthor

    I think #303 is good, thanks for that!

    A more general fix, here or in Sphinx's classic theme, also welcome later. Can keep this issue open for that? Or a new one?

  8. pradyunsg commented on Apr 14, 2026

    Member

    Let's keep this open.

  9. changed the title [-]Fix vertical alignment of definition terms[/-] [+]Improve how whitespace & line height is handled in the stylesheets[/+] on Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL