Skip to content

Commit a014f0e

Browse files
committed
Ensure content is not hidden behind fixed headers when using anchor links
1 parent 52a2e50 commit a014f0e

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## Unreleased
99
- [Core] Add markdown parser extension system via MarkdownExtensionRecipe. Sprinkles can now register custom markdown extensions through the new MarkdownRepositoryInterface.
10+
- [Pink-Cupcake] Add scroll-padding-top to prevent content from being hidden behind fixed headers when using anchor links
1011
- [Pink-Cupcake] Minor UI tweaks to sidebar components
1112
- [Pink-Cupcake] CSS: Add webkit-font-smoothing
1213
- [Core] MarkdownService now uses configuration from the config service to customize markdown parser behavior. New `markdown` config section added with `html_input`, `allow_unsafe_links`, and `max_nesting_level` options.

packages/theme-pink-cupcake/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

88
## [6.0.0-beta.7](https://github.com/userfrosting/theme-pink-cupcake/compare/6.0.0-beta.6...6.0.0-beta.7)
9+
- Add scroll-padding-top to prevent content from being hidden behind fixed headers when using anchor links
910
- Minor UI tweaks to sidebar components
1011
- CSS: Add webkit-font-smoothing
1112

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
@global-letter-spacing: -0.45px;
22

33
.hook-base-body() {
4+
/* Add letter spacing for better readability */
45
letter-spacing: @global-letter-spacing;
6+
7+
/* Improve font rendering on MacOS */
58
-webkit-font-smoothing: antialiased;
69
-moz-osx-font-smoothing: grayscale;
10+
11+
/* Ensure content is not hidden behind fixed headers when using anchor links */
12+
scroll-padding-top: @navbar-nav-item-height + @section-padding-vertical;
713
}

0 commit comments

Comments
 (0)