Pablo-Gonzalez-Calderon / showybox-package

A Typst package for creating colorful and customizable boxes
MIT License
50 stars 5 forks source link

Drawing order of shadow is inverted #5

Closed Pablo-Gonzalez-Calderon closed 1 year ago

Pablo-Gonzalez-Calderon commented 1 year ago

When a shadow is drew, the shadow is positionated where a non-shadowed showybox would be, and the showybox content (i.e. frame, title, body) is moved from there. As the shadow should be a secondary element, the shadow should be moved from the original position, not the content.

image

Pablo-Gonzalez-Calderon commented 1 year ago

To solve it, instead of drawing the shadow using the inset property, use the outset.