Skip to content

Add repo-contained-header feature - #3250

Closed
adamlacombe wants to merge 9 commits into
refined-github:masterfrom
adamlacombe:add-repo-contained-header
Closed

adamlacombe wants to merge 9 commits into
refined-github:masterfrom
adamlacombe:add-repo-contained-header

Conversation

@adamlacombe

@adamlacombe adamlacombe commented Jun 18, 2020 •

Copy link
Copy Markdown
Contributor

This feature only applies to those that have enabled the repository refresh feature preview.

  1. LINKED ISSUES:

    Great until you’re on a big screen and then there’s just weird black spaces and loads of mouse travel to the left hand nav bar and back to the central content. -@kurucu83

  2. TEST URLS:
    https://github.com/sindresorhus/refined-github
    https://github.com/sindresorhus/Gifski

  3. SCREENSHOT:

  • Before
    before

  • After
    after

@adamlacombe
adamlacombe force-pushed the add-repo-contained-header branch from 28f655b to 0cd5d8c Compare June 18, 2020 09:37
@adamlacombe
adamlacombe marked this pull request as ready for review June 18, 2020 09:54
@fregante

Copy link
Copy Markdown
Member

I feel this too, but let's way for this new style to go live first before trying to fix it. Also this is likely targetable with CSS alone, without any JS.

Let's review this later

@fregante fregante closed this Jun 18, 2020
@fregante fregante reopened this Jun 23, 2020
@fregante

Copy link
Copy Markdown
Member

How come all that code is required? Is it possible to contain the nav without affecting the border? Ideally the CSS should just be one rule with “max with” and “margin auto”

@adamlacombe

Copy link
Copy Markdown
Contributor Author

I was able to reduce it down to two declarations. I had to add box-shadow: inset 0 -1px 0 #e1e4e8; to .pagehead so the gray rule wasn't lost.

@fregante

fregante commented Jul 1, 2020

Copy link
Copy Markdown
Member

Lets wait for the discussion to resolve in #3280

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Properly align tab navigation

3 participants