Skip to content

Coy: Added padding to account for box shadow#3143

Merged
RunDevelopment merged 1 commit intoPrismJS:masterfrom
RunDevelopment:coy-pre-padding
Oct 19, 2021
Merged

Coy: Added padding to account for box shadow#3143
RunDevelopment merged 1 commit intoPrismJS:masterfrom
RunDevelopment:coy-pre-padding

Conversation

@RunDevelopment
Copy link
Copy Markdown
Member

This adds a 1px padding to Coy's pre elements.

Coy's code elements inside code blocks have a 1px box-shadow in all directions. Since the pre has padding: 0 and the code has margin: 0, the box-shadow will peek beyond the pre. This is a problem because there might be elements right next to the pre that can obscure the box-shadow border. This is a problem with the toolbar overflow fix we need on our site:

image

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 8, 2021

No JS Changes

Generated by 🚫 dangerJS against bd43be3

@RunDevelopment RunDevelopment merged commit a6a4ce7 into PrismJS:master Oct 19, 2021
@RunDevelopment RunDevelopment deleted the coy-pre-padding branch October 19, 2021 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant