betsol / baseline-element

JavaScript library to fix responsive images in vertical rhythm environments
24 stars 5 forks source link

Vertical rhythm for multiple line heights #2

Open anartfulscience opened 8 years ago

anartfulscience commented 8 years ago

Hello,

Is there a way of setting the baseline line height for multiple heights?

I've a site where the font size and line height changes based on the breakpoint and it would be great to use this script taking this into account.

Thanks, Stephen

slavafomin commented 8 years ago

Hello Stephen!

Thank you for your interest in this library. Sadly, right now there is no such ability.

This library is considered experimental for us and therefore I consider it low-priority. However, I will keep it in mind and maybe we will introduce such a feature later on. Do you have implementational ideas?

Cheers!

anartfulscience commented 8 years ago

Thanks for the quick reply :) The only thing I've devised so far was a sass mixin where you defined the height by the number of lines which included breakpoints. The image is set as a cover or contain. It works quite well, but I'd prefer simpler implientation and your script almost fit.

All the best. Stephen

pandroid commented 8 years ago

Hi,

I have the same "problem". I tried to change the variable for baseline depending on window.width and my breakpoints. But your script don't check the baseline variable on window.resize.

But my javascript knowledge is very limited. ;-)

It would be really great if your script could do this.

Cheers!

luishdez commented 8 years ago

+1 same thing :)

bovisp commented 8 years ago

+1