Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sticky header backgrounds #1068

Closed
h1nk opened this issue Feb 20, 2020 · 9 comments
Closed

Sticky header backgrounds #1068

h1nk opened this issue Feb 20, 2020 · 9 comments
Labels
bug 🐛 Something isn't working

Comments

@h1nk
Copy link

h1nk commented Feb 20, 2020

Sticky header backgrounds are transparent instead of opaque, such as in PRs.

  • Browser: Firefox
  • Operating System: Linux
  • Link to page with the issue: Codemirror tabs #959
  • Screenshot:
    image
@h1nk h1nk added the bug 🐛 Something isn't working label Feb 20, 2020
@silverwind
Copy link
Member

Can not reproduce. Try to update/reinstall.

@h1nk
Copy link
Author

h1nk commented Feb 20, 2020

The issue was actually caused by GitHub-FixedHeader being used with this style (see related StylishThemes/GitHub-FixedHeader#16). Should I close this issue and reopen on there?

@xt0rted
Copy link
Member

xt0rted commented Feb 20, 2020

I just noticed this myself when the sticky header disappeared behind the sticky notification banner. Looks like github pushed a change out earlier that broke this. I'm not using the fixed header style, but I do have a custom one that functions similarly.

Not sure how similar the issues are between the styles but my fix was to add:

body:not(.min-width-lg) .notification-shelf + .application-main .gh-header-sticky.is-stuck,
body:not(.min-width-lg) .notification-shelf + .application-main .gh-header-sticky.is-stuck + .gh-header-shadow {
  margin-top: var(--offset) !important;
}

I think that css can be simplified, but I haven't looked into it too much since it fixed my issue.

@xt0rted
Copy link
Member

xt0rted commented Feb 24, 2020

@h1nk can you give this a try now? It looks like GitHub just pushed a fix out for the issue page sticky header so this might not be an issue anymore.

@the-j0k3r
Copy link
Member

ping @h1nk

@h1nk
Copy link
Author

h1nk commented Mar 5, 2020

@xt0rted & @the-j0k3r

That CSS rule along with the GitHub-Dark theme does not do the sticky header behavior like GitHub-FixedHeader for me. Not sure if I'm applying it wrong.

@xt0rted
Copy link
Member

xt0rted commented Mar 5, 2020

The fix I posted isn't needed now with GitHub's latest update. At least for my style.

@the-j0k3r
Copy link
Member

the-j0k3r commented Mar 18, 2020

Is it safe to close this?

@silverwind
Copy link
Member

Guess so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants