Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Style: Reduce space consumed by headers and improve alignment#2533

Merged
hugovk merged 2 commits into
python:mainpython/peps:mainfrom
CAM-Gerlach:style-reduce-header-spaceCAM-Gerlach/peps:style-reduce-header-spaceCopy head branch name to clipboard
Apr 19, 2022
Merged

Style: Reduce space consumed by headers and improve alignment#2533
hugovk merged 2 commits into
python:mainpython/peps:mainfrom
CAM-Gerlach:style-reduce-header-spaceCAM-Gerlach/peps:style-reduce-header-spaceCopy head branch name to clipboard

Conversation

@CAM-Gerlach

Copy link
Copy Markdown
Member

As discussed on #2514 , the headers at the top consume excessive vertical space, particularly on mobile which some style tweaks could dramatically improve with no loss of information. Furthermore, there are some odd gaps and spacing between the various elements that could be fixed, and the title and PEP number is redundant and can be removed, as it is present no less than four other places (the main title, the breadcrumbs, the sidebar [as addressed by #2532], and the tab title).

To note, while it is included in the comparisons below, this PR defers the implementation of removing or abbr-ing the email address to a followup PR, as it may require a bit more discussion and is better done after #2484 is merged.

Desktop (Before/After)

image

Mobile (Before/Previous/Latest)

image

Fixes #2514

@CAM-Gerlach CAM-Gerlach added the infra Core infrastructure for building and rendering PEPs label Apr 16, 2022
@CAM-Gerlach CAM-Gerlach requested review from a team and hugovk April 16, 2022 11:55
@CAM-Gerlach CAM-Gerlach self-assigned this Apr 16, 2022
@CAM-Gerlach CAM-Gerlach requested a review from AA-Turner as a code owner April 16, 2022 11:55

@hugovk hugovk 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.

Checked on desktop (Mac, Chrome) and mobile (Samsung S10, Chrome) and looks good.

I'm mindful we shouldn't be squashing things too tightly together, but this is fine.

Thanks!

@hugovk

hugovk commented Apr 19, 2022

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra Core infrastructure for building and rendering PEPs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Waste less vertical space at top of rendered PEP

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.