carpentries / styles

Styles for The Carpentries lessons. No README to avoid merge conflicts with lessons. Demo 👇
https://carpentries.github.io/lesson-example
Other
84 stars 96 forks source link

Optional dropdown section #595

Open bkmgit opened 3 years ago

bkmgit commented 3 years ago

It would be helpful to have a collapsible dropdown section for optional items to be included at instructor discretion. The styling for {: .solution} can be used as a starting point for this, modifying the title to optional and the color.

maxim-belkin commented 3 years ago

It's definitely doable but what are use cases for such a collapsible section?

josephmje commented 3 years ago

I think this feature would be really useful as well! Jupyter Book has a nice implementation where the title of the dropdown can also be customized.

I think it would help with focusing attention. You could add a hidden "Find out more" section that may go beyond the scope of the lesson but curious learners are welcome to try it out on their own time. Or if you had some code or functions being used to download data or for visualizations (any bits that act as a helper for the lesson but aren't integral to the core objectives), they could also be added here.