This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Nri.Css.Extra

Put helper functions, styles, and anything else that might be missing from elm-css. If it gets used enough and the use case is in the scope of elm-css, we can open PRs/Issues to discuss or add the features to that package.

lineHeightNum : Float -> Style

Use a Css.Num value for line height

module Nri.Css.Extra exposing (..)

{-| Put helper functions, styles, and anything else that might be missing from elm-css. If it gets used enough and the use case is in the scope of elm-css, we can open PRs/Issues to discuss or add the features to that package.

@docs lineHeightNum

-}

import Css exposing (..)


{-| Use a Css.Num value for line height
-}
lineHeightNum : Float -> Style
lineHeightNum height =
    property "line-height" <| toString height