gerby-project / gerby-website

Tag-based webview of LaTeX documents
MIT License
28 stars 22 forks source link

Fix list items in preview #19

Closed pbelmans closed 6 years ago

pbelmans commented 7 years ago

Because jquery-bonsai changes the way all list items look, the preview of a search result is borked. I played around for a few minutes, but I couldn't figure out a good solution straightaway. Maybe we should decorate all list items on which Bonsai is supposed to act or something?

pbelmans commented 6 years ago

It suffices to add the class .bonsai-li to every li in jquery-bonsai/jquery.bonsai.css, and adding it to list items in the output. This will require forking jquery-bonsai though, so that we can add the fork (with this one line changed) as the submodule.

pbelmans commented 6 years ago

While we're at it, we should also decrease the vertical spacing of list items in the preview.

pbelmans commented 6 years ago

The alternative solution I tried implementing is by just reinstating the appropriate list-style-type on lists inside div.html in .bonsai. But weirdness ensues: no symbols appear, but the vertical margin is changed. I have no idea why...

pbelmans commented 6 years ago

Fixed in aexmachina/jquery-bonsai#37.

If there is an issue with this pull request, we can just apply these changes in a local stylesheet.