diff --git a/src/Main.elm b/src/Main.elm index 4225b57..77f094e 100644 --- a/src/Main.elm +++ b/src/Main.elm @@ -322,6 +322,11 @@ paragraphPartUi context = } +domFontSizePercentage : Float -> Html.Attribute event_ +domFontSizePercentage heightInRem = + Html.Attributes.style "font-size" ((heightInRem |> String.fromFloat) ++ "rem") + + domBackgroundColor : Color -> Html.Attribute event_ domBackgroundColor color = Html.Attributes.style "background-color" (color |> Color.toCssString) @@ -433,11 +438,6 @@ domFontColor color = Html.Attributes.style "color" (color |> Color.toCssString) -domFontSizePercentage : Float -> Html.Attribute event_ -domFontSizePercentage heightInRem = - Html.Attributes.style "font-size" ((heightInRem |> String.fromFloat) ++ "rem") - - port toJS : Json.Encode.Value -> Cmd msg_