git.iko.soy/typeable/elm-ui
on master help sign in
resolves #44, #82
commitb9b822b159c17eb79082f991938c4822aa1aff8f authorMatthew Griffith <mdg.griffith@gmail.com> dateWed 12 Jun 2019, 22:01 (7 years ago) parentd9ab9b1
3 files changed+15−15
src/Element/Border.elm+2−2 src/Element/Font.elm+2−2 src/Internal/Model.elm+11−11
src/Element/Border.elm+2−2
@@ -232,7 +232,7 @@ shadow almostShade =
232232 in
233233 Internal.StyleClass Flag.shadows <|
234234 Internal.Single
235− (Internal.boxShadowName shade)
235+ (Internal.boxShadowClass shade)
236236 "box-shadow"
237237 (Internal.formatBoxShadow shade)
238238
@@ -257,7 +257,7 @@ innerShadow almostShade =
257257 in
258258 Internal.StyleClass Flag.shadows <|
259259 Internal.Single
260− (Internal.boxShadowName shade)
260+ (Internal.boxShadowClass shade)
261261 "box-shadow"
262262 (Internal.formatBoxShadow shade)
263263
src/Element/Font.elm+2−2
@@ -346,7 +346,7 @@ shadow :
346346 -> Attr decorative msg
347347shadow shade =
348348 Internal.StyleClass Flag.txtShadows <|
349− Internal.Single (Internal.textShadowName shade) "text-shadow" (Internal.formatTextShadow shade)
349+ Internal.Single (Internal.textShadowClass shade) "text-shadow" (Internal.formatTextShadow shade)
350350
351351
352352{-| A glow is just a simplified shadow.
@@ -361,7 +361,7 @@ glow clr i =
361361 }
362362 in
363363 Internal.StyleClass Flag.txtShadows <|
364− Internal.Single (Internal.textShadowName shade) "text-shadow" (Internal.formatTextShadow shade)
364+ Internal.Single (Internal.textShadowClass shade) "text-shadow" (Internal.formatTextShadow shade)
365365
366366
367367
src/Internal/Model.elm+11−11
@@ -41,7 +41,7 @@ module Internal.Model exposing
4141 , asParagraph
4242 , asRow
4343 , asTextColumn
44− , boxShadowName
44+ , boxShadowClass
4545 , columnClass
4646 , composeTransformation
4747 , contextClasses
@@ -98,7 +98,7 @@ module Internal.Model exposing
9898 , spacingName
9999 , staticRoot
100100 , tag
101− , textShadowName
101+ , textShadowClass
102102 , toHtml
103103 , toStyleSheet
104104 , transformClass
@@ -3050,12 +3050,12 @@ formatTextShadow shadow =
30503050 ]
30513051
30523052
3053−textShadowName shadow =
3053+textShadowClass shadow =
30543054 String.concat
30553055 [ "txt"
3056− , String.fromFloat (Tuple.first shadow.offset) ++ "px"
3057− , String.fromFloat (Tuple.second shadow.offset) ++ "px"
3058− , String.fromFloat shadow.blur ++ "px"
3056+ , floatClass (Tuple.first shadow.offset) ++ "px"
3057+ , floatClass (Tuple.second shadow.offset) ++ "px"
3058+ , floatClass shadow.blur ++ "px"
30593059 , formatColorClass shadow.color
30603060 ]
30613061
@@ -3076,17 +3076,17 @@ formatBoxShadow shadow =
30763076 ]
30773077
30783078
3079−boxShadowName shadow =
3079+boxShadowClass shadow =
30803080 String.concat <|
30813081 [ if shadow.inset then
30823082 "box-inset"
30833083
30843084 else
30853085 "box-"
3086− , String.fromFloat (Tuple.first shadow.offset) ++ "px"
3087− , String.fromFloat (Tuple.second shadow.offset) ++ "px"
3088− , String.fromFloat shadow.blur ++ "px"
3089− , String.fromFloat shadow.size ++ "px"
3086+ , floatClass (Tuple.first shadow.offset) ++ "px"
3087+ , floatClass (Tuple.second shadow.offset) ++ "px"
3088+ , floatClass shadow.blur ++ "px"
3089+ , floatClass shadow.size ++ "px"
30903090 , formatColorClass shadow.color
30913091 ]
30923092