question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Grey boxes / shadows around blockquotes (Mac Preview)

See original GitHub issue

As 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:open
  • Created 2 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
calculuschildcommented, Dec 16, 2021

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.

This actually seems to make things objectively worse. I’m also thinking we might want to go back and undo the change to V3 as well. Selectable text and good image quality in almost every PDF viewer is preferable to just catering to the weird edge case in Mac Preview.

1reaction
calculuschildcommented, Aug 26, 2021

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found