peterdesmet / petridish

Jekyll theme for research project websites 🧫
https://peterdesmet.github.io/petridish
MIT License
52 stars 44 forks source link

Allow scrolling in long TOC #71

Open peterdesmet opened 1 year ago

peterdesmet commented 1 year ago

Cf. https://www.tdwg.org/conferences/2022/session-list/ and https://aloftdata.eu/radars/

peterdesmet commented 1 year ago

This should be possible by adding max-height: 100vh; and overflow-y: auto; (already there) to the toc element

https://github.com/peterdesmet/petridish/blob/a5f5e977a0319b4b667ce4714f2f1122912e6b4e/_sass/_toc.scss#L12

See https://stackoverflow.com/questions/66876410/how-to-make-sticky-element-scrollable. Ideally this does not add a scrollbar where not necessary.

peterdesmet commented 1 year ago

This should be disabled on small screens.