Published Pages for documentation?

The print view loads discourse/app/assets/stylesheets/common/base/crawler_layout.scss at main · discourse/discourse · GitHub. I’m not sure if there is other print-specific CSS.

You can target with the body class crawler. Or suggest changes in Contribute > Feature if you think it could benefit the whole community :slight_smile:

edit: there’s discourse/app/assets/stylesheets/common/printer-friendly.scss at main · discourse/discourse · GitHub

From what I understand, crawler_layout.scss is specifically applied to crawler’s layout. Pages without crawler’s layout still load printer-friendly.scss when we open the print window.

For customizations, use the @media print { media query.

Please correct me if I’m wrong.

1 Like