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

Block

overflowHidden : Modifier Display.BlockDetails
alignCenter : Modifier Display.BlockDetails
alignRight : Modifier Display.BlockDetails
alignLeft : Modifier Display.BlockDetails
maxWidth : SizeUnit -> Modifier Display.BlockDetails
maxHeight : SizeUnit -> Modifier Display.BlockDetails
minWidth : SizeUnit -> Modifier Display.BlockDetails
minHeight : SizeUnit -> Modifier Display.BlockDetails
width : SizeUnit -> Modifier Display.BlockDetails
height : SizeUnit -> Modifier Display.BlockDetails
fullWidth : Modifier Display.BlockDetails
fullHeight : Modifier Display.BlockDetails
module Block exposing (..)

{-|

@docs overflowHidden
@docs alignCenter
@docs alignRight
@docs alignLeft
@docs maxWidth
@docs maxHeight
@docs minWidth
@docs minHeight
@docs width
@docs height
@docs fullWidth
@docs fullHeight

-}

import Dimensions
import Display
import Helpers.Shared exposing (..)
import Modifiers exposing (..)
import Overflow


{-| -}
overflowHidden : Modifier Display.BlockDetails
overflowHidden =
    Display.overflow [ Overflow.overflowXY Overflow.hidden ]


{-| -}
alignCenter : Modifier Display.BlockDetails
alignCenter =
    Display.alignment Display.center


{-| -}
alignRight : Modifier Display.BlockDetails
alignRight =
    Display.alignment Display.right


{-| -}
alignLeft : Modifier Display.BlockDetails
alignLeft =
    Display.alignment Display.left


{-| -}
maxWidth : SizeUnit -> Modifier Display.BlockDetails
maxWidth size =
    Display.dimensions [ Dimensions.maxWidth size ]


{-| -}
maxHeight : SizeUnit -> Modifier Display.BlockDetails
maxHeight size =
    Display.dimensions [ Dimensions.maxHeight size ]


{-| -}
minWidth : SizeUnit -> Modifier Display.BlockDetails
minWidth size =
    Display.dimensions [ Dimensions.minWidth size ]


{-| -}
minHeight : SizeUnit -> Modifier Display.BlockDetails
minHeight size =
    Display.dimensions [ Dimensions.minHeight size ]


{-| -}
width : SizeUnit -> Modifier Display.BlockDetails
width size =
    Display.dimensions [ Dimensions.width size ]


{-| -}
height : SizeUnit -> Modifier Display.BlockDetails
height size =
    Display.dimensions [ Dimensions.height size ]


{-| -}
fullWidth : Modifier Display.BlockDetails
fullWidth =
    width (Percent 100)


{-| -}
fullHeight : Modifier Display.BlockDetails
fullHeight =
    height (Percent 100)