git.iko.soy/typeable/elm-ui
on master help sign in
resolves #44, #82
b9b822bMatthew Griffith
src/Element/Border.elm+2−2
@@ -232,7 +232,7 @@ shadow almostShade =
232 in
232 in
233 Internal.StyleClass Flag.shadows <|
233 Internal.StyleClass Flag.shadows <|
234 Internal.Single
234 Internal.Single
235− (Internal.boxShadowName shade)
235+ (Internal.boxShadowClass shade)
236 "box-shadow"
236 "box-shadow"
237 (Internal.formatBoxShadow shade)
237 (Internal.formatBoxShadow shade)
238
238
@@ -257,7 +257,7 @@ innerShadow almostShade =
257 in
257 in
258 Internal.StyleClass Flag.shadows <|
258 Internal.StyleClass Flag.shadows <|
259 Internal.Single
259 Internal.Single
260− (Internal.boxShadowName shade)
260+ (Internal.boxShadowClass shade)
261 "box-shadow"
261 "box-shadow"
262 (Internal.formatBoxShadow shade)
262 (Internal.formatBoxShadow shade)
263
263
src/Element/Font.elm+2−2
@@ -346,7 +346,7 @@ shadow :
346 -> Attr decorative msg
346 -> Attr decorative msg
347shadow shade =
347shadow shade =
348 Internal.StyleClass Flag.txtShadows <|
348 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)
350
350
351
351
352{-| A glow is just a simplified shadow.
352{-| A glow is just a simplified shadow.
@@ -361,7 +361,7 @@ glow clr i =
361 }
361 }
362 in
362 in
363 Internal.StyleClass Flag.txtShadows <|
363 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)
365
365
366
366
367
367
src/Internal/Model.elm+11−11
@@ -41,7 +41,7 @@ module Internal.Model exposing
41 , asParagraph
41 , asParagraph
42 , asRow
42 , asRow
43 , asTextColumn
43 , asTextColumn
44− , boxShadowName
44+ , boxShadowClass
45 , columnClass
45 , columnClass
46 , composeTransformation
46 , composeTransformation
47 , contextClasses
47 , contextClasses
@@ -98,7 +98,7 @@ module Internal.Model exposing
98 , spacingName
98 , spacingName
99 , staticRoot
99 , staticRoot
100 , tag
100 , tag
101− , textShadowName
101+ , textShadowClass
102 , toHtml
102 , toHtml
103 , toStyleSheet
103 , toStyleSheet
104 , transformClass
104 , transformClass
@@ -3050,12 +3050,12 @@ formatTextShadow shadow =
3050 ]
3050 ]
3051
3051
3052
3052
3053−textShadowName shadow =
3053+textShadowClass shadow =
3054 String.concat
3054 String.concat
3055 [ "txt"
3055 [ "txt"
3056− , String.fromFloat (Tuple.first shadow.offset) ++ "px"
3056+ , floatClass (Tuple.first shadow.offset) ++ "px"
3057− , String.fromFloat (Tuple.second shadow.offset) ++ "px"
3057+ , floatClass (Tuple.second shadow.offset) ++ "px"
3058− , String.fromFloat shadow.blur ++ "px"
3058+ , floatClass shadow.blur ++ "px"
3059 , formatColorClass shadow.color
3059 , formatColorClass shadow.color
3060 ]
3060 ]
3061
3061
@@ -3076,17 +3076,17 @@ formatBoxShadow shadow =
3076 ]
3076 ]
3077
3077
3078
3078
3079−boxShadowName shadow =
3079+boxShadowClass shadow =
3080 String.concat <|
3080 String.concat <|
3081 [ if shadow.inset then
3081 [ if shadow.inset then
3082 "box-inset"
3082 "box-inset"
3083
3083
3084 else
3084 else
3085 "box-"
3085 "box-"
3086− , String.fromFloat (Tuple.first shadow.offset) ++ "px"
3086+ , floatClass (Tuple.first shadow.offset) ++ "px"
3087− , String.fromFloat (Tuple.second shadow.offset) ++ "px"
3087+ , floatClass (Tuple.second shadow.offset) ++ "px"
3088− , String.fromFloat shadow.blur ++ "px"
3088+ , floatClass shadow.blur ++ "px"
3089− , String.fromFloat shadow.size ++ "px"
3089+ , floatClass shadow.size ++ "px"
3090 , formatColorClass shadow.color
3090 , formatColorClass shadow.color
3091 ]
3091 ]
3092
3092