minicomp / wax

Jekyll based framework for minimal exhibitions with IIIF 🐝
https://minicomp.github.io/wax/
MIT License
160 stars 84 forks source link

Enable users to change "background-position-x" property for image via YAML header #163

Closed melaniewalsh closed 1 year ago

melaniewalsh commented 1 year ago

Our front page banner image looked fine on desktop computers but wonky on mobile, so we wanted to change the "background-position-x" property on the banner image in addition to the "background-position-y" property. It seems like it would be useful to allow Wax users to change this property in the YAML header with an "x" option.

I believe the x property would be added here in parallax_image.html.

More ambitiously, it would be interesting to add styling possibilities that are separate for desktop and mobile.

mnyrop commented 1 year ago

@melaniewalsh closing this for now in favor of Slack conversation; I can reopen it if needed!