Repository navigation
Refactor navbar vars, anchors, and cover styles; update blog & CL - #2509
Merged
Merged
Conversation
Move navbar variables to the central variables file and streamline height/anchor handling across styles, templates, and docs. - Removed style overrides applied to .td-default and .td-main by mistake - Switched to making use of `td-below-navbar` opt in Other details: - Marked rename of td-offset-anchor to td-anchor-no-extra-offset (new name) as a breaking change - Move $td-navbar-bg-color and $td-navbar-min-height from _nav.scss to _variables.scss. - Remove legacy td-main-height-auto usage and related auto-height handling from _main-container.scss and update td-box comments in _boxes.scss. - Add scroll/anchor tweaks in _scroll.scss: improved comments, scroll-padding-top notes, and a new .td-anchor-no-extra-offset utility to cancel the extra offset delta while preserving the navbar height. - Update blocks/cover styles to support a td-below-navbar helper: apply margin-top/padding-top on desktop for &--height-auto and &--height-full when .td-below-navbar is present. - Replace td-offset-anchor with td-anchor-no-extra-offset in shortcodes/layouts (blocks/lead, blocks/section, community list) to use the new scroll behavior. - Update documentation (release blog, navigation, shortcodes, changelog, style guide) to describe heading-alias changes, blocks/cover behavior, and the new helper class; add tests content and mount test assets in docsy.dev/hugo.yaml. - Update static refcache.json to track added/updated references. Purpose: fix in-page scrolling for heading aliases using CSS scroll-padding-top, provide a convenient helper to opt covers below a fixed navbar, and keep docs/tests in sync with the implementation changes.
chalin
marked this pull request as draft
February 3, 2026 15:30
chalin
marked this pull request as ready for review
February 3, 2026 16:52
chalin
force-pushed
the
chalin-m24-0.14.0-2026-0203
branch
from
February 3, 2026 17:13
a6f7a27 to
1580443
Compare
13 tasks done
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
td-below-navbaropt inPreview: