baseline-element icon indicating copy to clipboard operation
baseline-element copied to clipboard

Vertical rhythm for multiple line heights

Open anartfulscience opened this issue 9 years ago • 5 comments

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

anartfulscience avatar Sep 27 '15 16:09 anartfulscience

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!

slavafomin avatar Sep 27 '15 17:09 slavafomin

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

anartfulscience avatar Sep 28 '15 08:09 anartfulscience

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!

pandroid avatar Oct 15 '15 22:10 pandroid

+1 same thing :)

luishdez avatar Nov 06 '15 02:11 luishdez

+1

bovisp avatar Jun 21 '16 18:06 bovisp