parallaxr icon indicating copy to clipboard operation
parallaxr copied to clipboard

Feature: Customize image and widget sizes

Open durraniu opened this issue 4 years ago • 2 comments

Thank you for this awesome package. I have a question about modifying the image and widget sizes. Since parallaxr parses .md files only, is there any documentation of all the header options of .md files? I have never used .md before (only .Rmd).

Specifically, is it possible to change the size of the images on left and right in .md? I want to make my widget larger than the image. In some cases, I want to put just the image taking all the space. Is that possible?

Thank you for your time.

durraniu avatar Dec 10 '20 06:12 durraniu

Thanks @durraniu - currently, the documentation for parse_md does mention that the YAML header only allows two options, which is imgurl and position. It's quite a simple / basic set-up currently: https://martinctc.github.io/parallaxr/reference/parse_md.html

There are also no options for changing sizes at the moment, but this can be over-ridden by providing a custom CSS file which we will merge in soon (#3). In the CSS file you should be able to make size over-rides. I will link this issue with the pull request so you will get a notification once it is merged.

Ideally, we'd want that option to be available, but I think I will require some help / it will take more time!

martinctc avatar Dec 10 '20 17:12 martinctc

Thank you. I wish I could help, but I don't know CSS.

durraniu avatar Dec 10 '20 18:12 durraniu