xrpl-dev-portal icon indicating copy to clipboard operation
xrpl-dev-portal copied to clipboard

Print style for code snippets are broken

Open gnurag opened this issue 3 years ago • 4 comments

When I print the code snippets from xrpl.org docs, I see blocks of black ink. It would be great to be able to print the docs, and read it away from the screen. Perhaps <pre> and <code> blocks could use a print friendly style.

xrpl-print

gnurag avatar Jan 13 '22 12:01 gnurag

Huh, I thought we fixed that, and when I try doing a print preview, it doesn't look like that for me...

2022-01-14_154151_621010421

(We can and should remove the copy button from the print view, but the rest looks pretty OK to me.)

What browser/OS are you using? Would like to reproduce and fix this.

mDuo13 avatar Jan 14 '22 23:01 mDuo13

@mDuo13 I'm on Firefox 95 for Linux (Fedora). I just double checked it on Chrome, and it previewed fine. So this issue is probably limited to Firefox. I don't have macOS or Windows nearby to test.

xrpl-print-chrome

gnurag avatar Jan 18 '22 18:01 gnurag

I'm on Firefox 94 on Arch Linux, so unless the issue is new to Firefox 95 specifically, it's not a Firefox issue. We'll have to dig deeper.

mDuo13 avatar Jan 21 '22 00:01 mDuo13

P.S. while we're fixing the print CSS, the top banner should not print either.

mDuo13 avatar Jan 21 '22 02:01 mDuo13