Skip to content

Refactor navbar vars, anchors, and cover styles; update blog & CL - #2509

Merged
chalin merged 6 commits into
docsy:mainfrom
chalin:chalin-m24-0.14.0-2026-0203
Feb 3, 2026
Merged

chalin merged 6 commits into
docsy:mainfrom
chalin:chalin-m24-0.14.0-2026-0203

Conversation

@chalin

@chalin chalin commented Feb 3, 2026 •

Copy link
Copy Markdown
Collaborator
  • Removed style overrides applied to .td-default and .td-main by mistake
  • Switched to making use of td-below-navbar opt in
  • Marked rename of td-offset-anchor to td-anchor-no-extra-offset (new name) as a breaking change
  • Updates docs, 0.14.0 blog, and CL
  • Added blocks/cover test pages

Preview:

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 chalin added this to the 0.14.0 milestone Feb 3, 2026
@chalin
chalin marked this pull request as draft February 3, 2026 15:30
@chalin
chalin marked this pull request as ready for review February 3, 2026 16:52
@chalin
chalin force-pushed the chalin-m24-0.14.0-2026-0203 branch from a6f7a27 to 1580443 Compare February 3, 2026 17:13
@chalin
chalin merged commit 88e96c7 into docsy:main Feb 3, 2026
11 checks passed
@chalin
chalin deleted the chalin-m24-0.14.0-2026-0203 branch February 3, 2026 21:39
@chalin chalin mentioned this pull request Mar 1, 2026
13 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant