Repository navigation
support custom above-everything navigation elements #3898
rriemann
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What version of
starlightare you using?0.38.4
What is your idea?
I would like to have support for a custom navigation bar on top of everything that is non-sticky. Sidebar and toc should be sticky.
Why is this feature necessary?
In order to add corporate branding, I want to add to my starlight layout a custom header and a custom footer.
This can be done today by overwriting the
PageFrame.astrowith some new body like this (extract):For context:
<ECLHeader/>and<ECLFooter/>are webcomponents that will be replaced by html using the middleware.If the extra header is small, then the variable
--sl-nav-heightcan be adjusted and everything is rather easy. This feature request concerns extra Headers that are huge and cannot be sticky. Example:In order to make this work, I would need to have support for non-sticky header elements. An option may also address the concern raised in #316.
How would this work in detail:
position:stickyfor sidebar and toc in a common container with content for desktop view and mobile viewDo you have examples of this feature in other projects?
Many website and mobile apps have navigation elements that are sticky:
https://ec.europa.eu/component-library/v5.0.0-RC4/ec/components/navigation/inpage-navigation/code/
Participation
All reactions