baseline-element
baseline-element copied to clipboard
Vertical rhythm for multiple line heights
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
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!
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
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!
+1 same thing :)
+1