halfmoonui / halfmoon

Halfmoon is a highly customizable, drop-in Bootstrap replacement. It comes with three built-in core themes, with dark mode support for all themes and components.
https://www.gethalfmoon.com
MIT License
3.01k stars 118 forks source link

Cannot print a page using a web browser #95

Open clifflui opened 3 years ago

clifflui commented 3 years ago

When printing a page from a web browser, the print preview and subsequent print yields only a blank page on Safari (or viewport only if Chrome).

Try printing: https://www.gethalfmoon.com or https://www.gethalfmoon.com/docs/download/. @halfmoonui

richardoey commented 3 years ago

Interesting.. I want to know the reason for a while.

Honestly, I am not sure this is the issue but when I see other CSS web page like Tailwind CSS, Bulma and Chakra UI, it also doesn't print all of the components in the print preview, but they still print some components when it's not in the dark mode.

But if I could suggest, maybe you could use Firefox or Install Chrome extension to screenshot the page

clifflui commented 3 years ago

We could just print screen to screenshot the page, but it seems strange for Halfmoon to break a [File] > [Print] convention.

E.g. a data-intensive web app was made but the analysts can't print the document/tables for management review but have to screenshot/scroll/repeat and collate in an image editor to print the whole 10 page doc.

Maybe there is a hidden tag called AllowPrint = TRUE ?