nprapps / dailygraphics-templates

Graphic templates for the dailygraphics-next rig
11 stars 14 forks source link

ai2html template: element styles don't match css #35

Closed connjin closed 1 year ago

connjin commented 1 year ago

In the new html template, the script adds a min-width style to each artboard id that corresponds with the artboard size in the Illustrator file. This can cause resizing issues with the base images when these widths don't match up with the media query CSS widths.

Could potentially remove the min-width styling altogether since it wasn't in the previous template. But not sure if it's providing a benefit elsewhere.

For example, in this graphic the artboard size (500 px) is larger than the media query cut-off (400px) so the base image is getting cut off at widths between 400 and 500px. Screen Shot 2023-02-28 at 1 33 19 PM