ncase / nutshell

Make expandable explanations!
https://ncase.me/nutshell/
Creative Commons Zero v1.0 Universal
504 stars 30 forks source link

Visibility of URL-related information in displayed Nutshell content #26

Open howardm opened 1 year ago

howardm commented 1 year ago

Hi,

I haven't seen this previously: the display of URL-related information in the Red Box in the screenshot below:

Is that something new ? Will it display like this in the published web page ?

Screen Shot 2023-02-01 at 11 01 02 AM

Can one turn that off ?

Cheers.

Howard

ncase commented 1 year ago

That was always there! It only shows up if you're embedding from a different page.

To remove it, you can add an extra line of CSS (like in this comment https://github.com/ncase/nutshell/issues/25#issuecomment-1412473980 ). The extra CSS to add is this one line:

.nutshell-bubble-from{ display:none; }

Cheers!

ncase commented 1 year ago

P.S: To clarify, that means the total CSS you'd need to add is these two lines, to remove the share-link & from-link:

.nutshell-heading-embed{ display:none; }
.nutshell-bubble-from{ display:none; }

It's important they're on TWO different lines, otherwise the CSS won't work.

howardm commented 1 year ago

That works!

I'm going to enjoy using Nutshell.

Thanks again.