Skip to content
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

✨feat(quick-navigation): add Table of Contents button to quick navigation buttons #115

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

welpo
Copy link
Owner

@welpo welpo commented Aug 25, 2023

Description

This PR introduces a new Table of Contents (ToC) button to the quick navigation section. When clicked, it shows a floating ToC, facilitating navigation.

Features

  • Quick navigation integration: The ToC button is integrated into the existing quick navigation buttons section.
  • ToC visibility: The ToC button will only appear for articles containing headers, ensuring a clean UI for content without a ToC.
  • Overlay handling: An overlay functionality is implemented, allowing users to interact with the ToC intuitively. Clicking on the overlay will close the ToC.

Files Changed

  • Modified the Tera template to add the ToC button.
  • Moved quick navigation buttons styling from _misc.scss to _quick_navigation_buttons.scss.
  • Updated SCSS files for styling the ToC button and overlay.

Example

light

@welpo welpo added the enhancement New feature or request label Aug 25, 2023
@welpo welpo merged commit ac41bb1 into main Aug 25, 2023
1 check passed
@welpo welpo deleted the feat/quick-navigation-toc branch August 25, 2023 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant