erikw / jekyll-glossary_tooltip

Jekyll plugin providing a glossary liquid tag that will show a tooltip of a term definition.
https://erikw.github.io/jekyll-glossary_tooltip/
MIT License
26 stars 1 forks source link

Improve CSS inclusion #1

Open erikw opened 3 years ago

erikw commented 3 years ago

Status quo

It would be desirable to improve the way CSS for the tooltip is used with this plugin. Currently the user have to copy the CSS file and include it themselves in the page. I'm creating this issue here to maybe get some input from other's on how we could do this.

Pros:

Cons:

Desired state

Solution ideas

badosu commented 1 year ago

We are using this plugin to host a fork of Spring called Recoil (site).

Currently we vendor the css into a custom sass file included by just-the-docs.

Of course it would be optimal to automatically compile the css asset on the build process for serving and include the tag automatically when a glossary term is used inside a page, although unclear if jekyll is able to support this.

Thanks for creating this plugin!