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

Only apply underline offset to code formatting for underline visibility by hugovk · Pull Request #171 · python/python-docs-theme · GitHub

Repository navigation

Only apply underline offset to code formatting for underline visibility - #171

Merged
hugovk merged 6 commits into
python:mainfrom
hugovk:text-underline-offset
Feb 4, 2024
Merged

hugovk merged 6 commits into
python:mainfrom
hugovk:text-underline-offset

Conversation

hugovk commented Feb 3, 2024

Copy link
Copy Markdown
Member

Helps #168.

In #160 we added underlines to links, with an extra offset to help make sure underscores (_) are not obscured by the underlines.

(In #166 we reduced the amount of offset.)

We only really need the offset for code formatting, where underscores often show up, so we can use the default offset for normal links and only apply an extra offset for code.

ezio-melotti left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I would add a comment explaining what these two rules do, otherwise LGTM.

hugovk merged commit 69039fb into python:main Feb 4, 2024
hugovk deleted the text-underline-offset branch February 4, 2024 19:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL