elm-athlete / athlete / Elegant


type alias CommonStyle =
Helpers.Style.Style

commonStyle : Maybe DisplayBox -> List Helpers.Style.ScreenWidth -> Maybe String -> Helpers.Style.Style

commonStyleToCss : CommonStyle -> List ( String, String )

commonStyleToStyle : CommonStyle -> Style


type alias SizeUnit =
Helpers.Shared.SizeUnit


type Style

Contains all style for an element used with Elegant.

classes : Style -> String

Generate all the classes of a list of Styles

deg : Basics.Float -> Helpers.Shared.Angle

rad : Basics.Float -> Helpers.Shared.Angle

color : a -> { b | color : Maybe a } -> { b | color : Maybe a }

em : Basics.Float -> SizeUnit

emptyStyle : Style

inlineStyle : DisplayBox -> List (Html.Attribute msg)

opposite : SizeUnit -> SizeUnit

Calculate the opposite of a size unit value. Ex : opposite (Px 2) == Px -2

percent : Basics.Float -> SizeUnit

pt : Basics.Int -> SizeUnit

px : Basics.Int -> SizeUnit

rem : Basics.Float -> SizeUnit

screenWidthBetween : Basics.Int -> Basics.Int -> DisplayBox -> Style -> Style

screenWidthGE : Basics.Int -> DisplayBox -> Style -> Style

screenWidthLE : Basics.Int -> DisplayBox -> Style -> Style

setSuffix : String -> Style -> Style

style : DisplayBox -> Style

styleToCss : Style -> List ( String, String )

toCommonStyle : Style -> Helpers.Style.Style

toInlineStyles : Style -> List ( String, String )

vh : Basics.Float -> SizeUnit

vw : Basics.Float -> SizeUnit

withScreenWidth : List Helpers.Style.ScreenWidth -> Style -> Style