GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Improve how whitespace & line height is handled in the stylesheets · Issue #289 · python/python-docs-theme

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

New issue
Copy link
New issue
Copy link
Open
#303
Open
Improve how whitespace & line height is handled in the stylesheets#289
#303
Copy link
Labels
bughelp wanted

Description

@hugovk
hugovk
opened on Dec 14, 2025
Issue body actions

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

Image

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

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

Reacted by Stan Ulbrych and Maciej Olko

Activity

  1. hugovk
    added
    bug
    on Dec 14, 2025
  2. StanFromIreland commented on Dec 15, 2025

    @StanFromIreland
    StanFromIreland
    on Dec 15, 2025
    Member
    More actions

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

    Image
  3. pradyunsg commented on Dec 15, 2025

    @pradyunsg
    pradyunsg
    on Dec 15, 2025
    Member
    More actions

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

  4. hugovk commented on Dec 15, 2025

    @hugovk
    hugovk
    on Dec 15, 2025
    MemberAuthor
    More actions

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

  5. StanFromIreland commented on Dec 15, 2025

    @StanFromIreland
    StanFromIreland
    on Dec 15, 2025
    Member
    More actions

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

  6. StanFromIreland
    self-assigned this
    on Dec 16, 2025
  7. hugovk
    added
    help wanted
    on Feb 6, 2026
  8. StanFromIreland
    removed their assignment
    on Feb 28, 2026
  9. pradyunsg commented on Apr 14, 2026

    @pradyunsg
    pradyunsg
    on Apr 14, 2026
    Member
    More actions

    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.

  10. hugovk commented on Apr 14, 2026

    @hugovk
    hugovk
    on Apr 14, 2026
    MemberAuthor
    More actions

    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?

  11. pradyunsg
    closed this as completedin #303on Apr 14, 2026
  12. pradyunsg
    reopened this on Apr 14, 2026
  13. pradyunsg commented on Apr 14, 2026

    @pradyunsg
    pradyunsg
    on Apr 14, 2026
    Member
    More actions

    Let's keep this open.

    Reacted by Hugo van Kemenade
  14. pradyunsg
    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

    Labels

    bughelp wanted

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.