mirror of
https://github.com/mdgriffith/elm-ui.git
synced 2024-12-01 13:46:37 +03:00
Small docs fixes
This commit is contained in:
parent
91d3d8119e
commit
b3d4fc8842
@ -65,7 +65,7 @@ Text layout needs some specific considerations.
|
||||
|
||||
# Padding and Spacing
|
||||
|
||||
There's no concept of margin in `style-elements`, instead we have padding and spacing.
|
||||
There's no concept of margin in `elm-ui`, instead we have padding and spacing.
|
||||
|
||||
Padding is the distance between the outer edge and the content, and spacing is the space between children.
|
||||
|
||||
@ -381,7 +381,7 @@ px =
|
||||
Internal.Px
|
||||
|
||||
|
||||
{-| Shrink an element to fit it's contents.
|
||||
{-| Shrink an element to fit its contents.
|
||||
-}
|
||||
shrink : Length
|
||||
shrink =
|
||||
@ -1336,7 +1336,7 @@ paddingXY x y =
|
||||
|
||||
And then just do
|
||||
|
||||
paddingEach { edges | right 5 }
|
||||
paddingEach { edges | right = 5 }
|
||||
|
||||
-}
|
||||
paddingEach : { top : Int, right : Int, bottom : Int, left : Int } -> Attribute msg
|
||||
|
@ -35,7 +35,7 @@ image src =
|
||||
Internal.Attr (VirtualDom.style "background" ("url(\"" ++ src ++ "\") center / cover no-repeat"))
|
||||
|
||||
|
||||
{-| A centered background image that keeps it's natural propostions, but scales to fit the space.
|
||||
{-| A centered background image that keeps its natural propostions, but scales to fit the space.
|
||||
-}
|
||||
uncropped : String -> Attribute msg
|
||||
uncropped src =
|
||||
|
@ -294,7 +294,7 @@ shadow shade =
|
||||
Internal.Single (Internal.textShadowName shade) "text-shadow" (Internal.formatTextShadow shade)
|
||||
|
||||
|
||||
{-| A glow is just a simplified shadow
|
||||
{-| A glow is just a simplified shadow.
|
||||
-}
|
||||
glow : Color -> Float -> Attr decorative msg
|
||||
glow clr i =
|
||||
|
Loading…
Reference in New Issue
Block a user