openSUSE / wiki

openSUSE Wiki
http://en.opensuse.org
25 stars 17 forks source link

Print styles #42

Closed guoyunhe closed 5 years ago

guoyunhe commented 5 years ago

Added noprint class to some elements so they will be removed from printed document. Page width was fixed in Chameleon skin repo. Also removed nodejs and npm from development script because we don't need them anymore. Here is an example printed PDF:

mozilla.pdf

cboltz commented 5 years ago

Deployed on en-test.opensuse.org - the print result looks much better :-)

However, there are two footer items I'd prefer not to hide:

Can you please make them printable?

Interestingly, when printing in Firefox the content still gets cut off after the first page (tested on the en.o.o main page) - any idea what could cause this?

guoyunhe commented 5 years ago

Did some searching in Stack Overflow. The cutting problem is caused by flex box we used for the main wrapper. I changed it to block in print mode and it seems work. Pushed to chameleon theme repo and it should take effects after an hour.

cboltz commented 5 years ago

Just tested again - the en-test.o.o. print output is no longer cut off :-)

Thanks!