I’m not sure.
At the moment I have a row…
on the left there is a column of elements (a big title, a smaller sub-title, a paragraph of text)
on the right there is an image
the image is an SVG, so it fills the whole space, and I can simply partition the element width using the fill and fillPortion attributes
the Title and Subtitle are my problem
they are normal text, with a BIG font size
I would like for them to shrink and expand just like the SVG image does… unless a specific DeviceClass is reached and then the view structure will change.
Element.Font.size only accepts an
Int value in pixels… no percentage, no Length value.
My questions are:
- what would be the Elm-UI way of approaching this problem?
DeviceClass to set breakpoints, and then change the original fixed values with new fixed values?
Or would it be possible to use
DeviceClass to dynamically produce an
Int to be passed to the
Font.size function? (and if so… how?)