Elegant.Surrounded

Generic module for surrounded values.


type alias Surrounded surroundType =

{ top : Maybe.Maybe surroundType, right : Maybe.Maybe surroundType, bottom : Maybe.Maybe surroundType, left : Maybe.Maybe surroundType }



all : a -> Modifiers.Modifiers a -> Modifiers.Modifier (Elegant.Surrounded.Surrounded a)



bottom : a -> Modifiers.Modifiers a -> Modifiers.Modifier (Elegant.Surrounded.Surrounded a)



default : Elegant.Surrounded.Surrounded a



horizontal : a -> Modifiers.Modifiers a -> Modifiers.Modifier (Elegant.Surrounded.Surrounded a)



left : a -> Modifiers.Modifiers a -> Modifiers.Modifier (Elegant.Surrounded.Surrounded a)



right : a -> Modifiers.Modifiers a -> Modifiers.Modifier (Elegant.Surrounded.Surrounded a)



surroundedToCouples : Maybe.Maybe String.String -> (a -> List.List ( String.String, String.String )) -> Elegant.Surrounded.Surrounded a -> List.List ( String.String, String.String )



top : a -> Modifiers.Modifiers a -> Modifiers.Modifier (Elegant.Surrounded.Surrounded a)



vertical : a -> Modifiers.Modifiers a -> Modifiers.Modifier (Elegant.Surrounded.Surrounded a)



applyModifiersOnDefault : Modifiers.Modifiers (Elegant.Surrounded.Surrounded a) -> Elegant.Surrounded.Surrounded a