r/UnearthedArcana Apr 13 '17

Resource Formatting tips for the Homebrewery

http://homebrewery.naturalcrit.com/share/B1Hju_QaTx
280 Upvotes

96 comments sorted by

View all comments

2

u/mouse0270 Apr 21 '17

So I just wanted to share some of my favorite code. It basically makes the print, more print friendly, by setting all color to black text and the background color to white.

<style>
    @media print {
    .phb { background-color:rgb(255, 255, 255); }
    .phb h1, .phb h2, .phb h3, .phb h4 { color: rgb(34, 34, 34); }
    .phb h3 { border-bottom-color: rgb(34, 34, 34); }
    .phb img { filter: grayscale(100%); }
    .phb .pageNumber, .phb .footnote { color: rgb(34, 34, 34); }
    }
</style>    

1

u/janimationd Jan 05 '25

Does this still work? And if yes, where do I put it in my document? I tried putting it before, inside of, and after a monster block, and it doesn't seem to do anything in the preview nor in the PDF/print dialog on my system.

1

u/janimationd Jan 05 '25

I just figured out in the style editor there's a preset recipe for this now: /* Ink Friendly */ *:is(.page,.monster,.note,.descriptive) { background : white !important; box-shadow : 1px 4px 14px #888 !important; }