Grey boxes / shadows around blockquotes (Mac Preview)
See original GitHub issueAs described here: https://old.reddit.com/r/homebrewery/comments/ch3v0d/psa_grey_boxesshadows_around_notes_stat_blocks_etc/
This issue is still a thing. OS: macOS 11.5.1 Chrome: 92
Seems like certain renderers like the macOS Preview App still have problems with the exported box-shadows.
Stupidly, if I replace the box-shadows with a drop-shadow filter, everything renders fine in every PDF App I have:
.phb blockquote {
/* workaround for grey boxes around blockquotes */
box-shadow: none;
filter: drop-shadow(2px 4px 6px #888);
}
Same holds for other elements using box-shadows like elements with the class descriptive:
.phb .descriptive {
box-shadow: none;
filter: drop-shadow(0 0 6px #faf7ea);
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:18 (8 by maintainers)
Top Results From Across the Web
PSA: Grey boxes/shadows around notes, stat blocks, etc...
On my Mac all PDFs are opened by something called "Preview." The shadowboxes appear in Preview. The shadowboxes do not appear if I...
Read more >help with using to Preview - markup on pdf creates shadows
Preview - annotating pdfs. Sometimes I need to change text on a pdf and I no longer can edit the original. I put...
Read more >Place and edit images in FigJam – Figma Help Center
Once the image is placed, you can edit and move it around the board. ... ratio presets like 1:1 squares or circles, 4:3...
Read more >Handbook Markdown Guide - GitLab
GitLab Orange Alert Panel; GitLab Orange Alert Box; GitLab Purple Alert Panel ... When there are repeated links across a single page, ...
Read more >Tailwind CSS Table - Flowbite
Use the table component to show text, images, links, and other elements inside a structured set of data made up of rows and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Following the issues encountered in #1661 , we might need to undo the changes to V3 back to using box-shadows since drop-shadow makes text unselectable and corrupts image quality.
We went ahead and changed to drop-shadows in the V3 branch. I think this should also be fine to add to the Legacy styling since it will only change appearance (very slightly) but positioning and sizing of elements should be the same. I.e., old brews shouldn’t “break”.
@Gazook89 Do you want to cook up another PR to apply this to Legacy as well? (I probably should have just had you add to #1577 but didn’t think about it until now)