pradyunsg / furo

A clean customizable documentation theme for Sphinx
https://pradyunsg.me/furo/quickstart
MIT License
2.69k stars 309 forks source link

Print CSS: avoid page break in some relevant cases #519

Closed rjoly closed 1 year ago

rjoly commented 2 years ago

While printing a Sphinx documentation page as PDF, I noticed a simple list (<ul>) was separated on two successive pages. I think simple CSS print rules could improve that kind of issues.

Inspiration source: https://www.alsacreations.com/astuce/lire/1160-une-feuille-de-styles-de-base-pour-le-media-print.html

Please note that I'm not fluent with the indented Sass syntax.

pradyunsg commented 1 year ago

Seems reasonable to me! Thanks @rjoly!