SlRvb / Obsidian--ITS-Theme

Theme designed with readability and customizability in mind. Change it easily to your liking with the Style Settings plugin installed.
https://publish.obsidian.md/slrvb-docs/ITS+Theme/ITS+Theme
GNU General Public License v2.0
523 stars 112 forks source link

[FR] Specific Naked Embeds in Infobox #161

Closed Yilmas closed 1 year ago

Yilmas commented 1 year ago

Naked Embeds

The current solution with Naked Embeds is for everything, however I feel that it would make a lot of sense if we had an option to make embeds within infoboxes naked. Mostly because the embeds I find people using in the infobox, messes with centering of the content and adds annoying padding/margins.

Do note that there is an issue with naked embeds in infobox in general, as any header lines are shown through the infobox. (This issue doesn't seem to be caused by naked embed, but rather something else after ITS went to 1.0.0)

I suggest that the user can add a mod to the embed link that will tell ITS whether it should be naked or not.

Without Naked Embed, the box-shadow messes with positioning. image

With Naked Embed - for everything, the background is visible through the infobox, making the headers come through. image

PS: The actual styling within the embedded note, is of course not an issue of ITS, that is purely on the plugin that has generated the graphic seen in the images above.

Yilmas commented 1 year ago

Received help from @SlRvb on discord. In case someone else wanders past here:

You can achieve a naked embed look by using |clean as part of the link.