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

Add detail tooltips/pop-up/links on how to secure a NAS #1

Open
asalimian opened this issue May 15, 2024 · 3 comments
Open

Add detail tooltips/pop-up/links on how to secure a NAS #1

asalimian opened this issue May 15, 2024 · 3 comments

Comments

@asalimian
Copy link

asalimian commented May 15, 2024

Using Nutshell can allow the reader to see things at a high-level, but get more information if needed.

Could also be done with <dialog>

@lennon101
Copy link
Owner

That's awesome! thanks for the tip! Is it easy to integrate into the hugo .md pages?

@lennon101
Copy link
Owner

@asalimian I just tried adding it to my hugo .md post using a shortcodes and it's "mostly" working but it looks like nutshell is putting a large amount of white space above each of the headings. Any advice on what I could be doing wrong or how to fix?

image

@asalimian
Copy link
Author

asalimian commented May 18, 2024

the nutshell icon that gets added to each heading is an image, but images in .prose classes get 2em margin added.

.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)) {
    margin-top: 2em;
    margin-bottom: 2em;
}

Add this option after the script load

<script src="https://cdn.jsdelivr.net/gh/ncase/nutshell/nutshell.js"> </script>
<script>
  Nutshell.setOptions({
      dontEmbedHeadings: true, // If 'true', removes the "embed this as a nutshell" option on headings
  });
</script>

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

No branches or pull requests

2 participants