Small docs fixes

This commit is contained in:
Max Goldstein 2018-09-06 17:31:47 -07:00
parent 91d3d8119e
commit b3d4fc8842
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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 =

View File

@ -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 =