-
Notifications
You must be signed in to change notification settings - Fork 7
Maybe Fix GitHub Pages #140
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR addresses a GitHub Pages issue where the sticky header was malfunctioning. As a stop-gap solution, it completely hides the header and removes the scroll-margin-top CSS rules that were previously needed to prevent content from being hidden under the sticky header.
Changes:
- Hides the header element entirely using CSS
- Removes scroll-margin-top rules for headings across desktop, tablet, and mobile breakpoints
- Updates comment to clarify the header is being hidden rather than just having borders removed
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| assets/css/theme.css | Removes scroll-margin-top properties and related comments for headings across different media queries (tablet, mobile, and general section headings) |
| assets/css/style.scss | Changes header styling from removing borders to completely hiding it using display: none and other hiding properties |
Comments suppressed due to low confidence (1)
assets/css/style.scss:69
- These CSS rules for header child elements (header ul, header li, header p, header h1, header a) are now ineffective since the header itself is hidden with display: none. Consider removing these rules as they serve no purpose when the header is not displayed.
header ul {
border: none !important;
background: transparent !important;
box-shadow: none !important;
}
header li {
border: none !important;
border-right: none !important;
}
header p,
header h1,
header a {
border: none !important;
| margin-top: 1.5em !important; | ||
| margin-bottom: 0.5em !important; | ||
| scroll-margin-top: 100px; | ||
| } |
Copilot
AI
Jan 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scroll-margin-top properties have been removed for headings, but the sticky header CSS rules still remain in theme.css (lines 696-710) that make the header sticky. Additionally, comments referencing Issue #127 for sticky header support remain at lines 453 and 696. Since the header is now completely hidden, these sticky positioning rules and related comments should also be removed for consistency and to avoid confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot open a new pull request to apply changes based on this feedback
| display: none !important; | ||
| visibility: hidden !important; | ||
| height: 0 !important; | ||
| margin: 0 !important; | ||
| padding: 0 !important; |
Copilot
AI
Jan 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using both display: none and visibility: hidden is redundant. The display: none property alone is sufficient to completely hide an element and remove it from the document flow. The additional visibility: hidden, height: 0, margin: 0, and padding: 0 properties have no effect when display: none is applied.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot open a new pull request to apply changes based on this feedback
Description
GitHub Pages header is broken (too sticky). I need to set up a local flow to test/preview before pushing. Removing the header is a stop-gap.
Related Issue
Fixes #
Checklist