@@ -41,38 +41,81 @@ import Internal.Style as Style exposing (classes)
42color : Color -> Attr decorative msg
42color : Color -> Attr decorative msg
43color clr =
43color clr =
44− Internal.StyleClass Flag.borderColor (Internal.Colored ("border-color-" ++ Internal.formatColorClass clr) "border-color" clr)
47+ ("bc-" ++ Internal.formatColorClass clr)
48width : Int -> Attribute msg
54width : Int -> Attribute msg
50− Internal.StyleClass Flag.borderWidth (Internal.Single ("border-" ++ String.fromInt v) "border-width" (String.fromInt v ++ "px"))
56+ Internal.StyleClass
58+ (Internal.BorderWidth
59+ ("b-" ++ String.fromInt v)
53{-| Set horizontal and vertical borders.
67{-| Set horizontal and vertical borders.
55widthXY : Int -> Int -> Attribute msg
69widthXY : Int -> Int -> Attribute msg
56widthXY x y =
70widthXY x y =
57− Internal.StyleClass Flag.borderWidth (Internal.Single ("border-" ++ String.fromInt x ++ "-" ++ String.fromInt y) "border-width" (String.fromInt y ++ "px " ++ String.fromInt x ++ "px"))
71+ Internal.StyleClass
73+ (Internal.BorderWidth
61−widthEach : { bottom : Int, left : Int, right : Int, top : Int } -> Attribute msg
87+widthEach :
62widthEach { bottom, top, left, right } =
94widthEach { bottom, top, left, right } =
95+ if top == bottom && left == right then
63− Internal.StyleClass Flag.borderWidth
103+ Internal.StyleClass Flag.borderWidth
64− (Internal.Single ("border-" ++ String.fromInt top ++ "-" ++ String.fromInt right ++ String.fromInt bottom ++ "-" ++ String.fromInt left)
104+ (Internal.BorderWidth
65− "border-width"
105+ ("b-"
66− (String.fromInt top
106+ ++ String.fromInt top
108+ ++ String.fromInt right
110+ ++ String.fromInt bottom
112+ ++ String.fromInt left
68− ++ String.fromInt right
115+ right
70− ++ String.fromInt bottom
116+ bottom
72− ++ String.fromInt left
@@ -105,14 +148,34 @@ dotted =
106rounded : Int -> Attribute msg
149rounded : Int -> Attribute msg
107rounded radius =
150rounded radius =
108− Internal.StyleClass Flag.borderRound (Internal.Single ("border-radius-" ++ String.fromInt radius) "border-radius" (String.fromInt radius ++ "px"))
151+ Internal.StyleClass
154+ ("br-" ++ String.fromInt radius)
156+ (String.fromInt radius ++ "px")
112−roundEach : { topLeft : Int, topRight : Int, bottomLeft : Int, bottomRight : Int } -> Attribute msg
161+roundEach :
113roundEach { topLeft, topRight, bottomLeft, bottomRight } =
168roundEach { topLeft, topRight, bottomLeft, bottomRight } =
114 Internal.StyleClass Flag.borderRound
169 Internal.StyleClass Flag.borderRound
115− (Internal.Single ("border-radius-" ++ String.fromInt topLeft ++ "-" ++ String.fromInt topRight ++ String.fromInt bottomLeft ++ "-" ++ String.fromInt bottomRight)
170+ (Internal.Single
172+ ++ String.fromInt topLeft
174+ ++ String.fromInt topRight
175+ ++ String.fromInt bottomLeft
177+ ++ String.fromInt bottomRight
116 "border-radius"
179 "border-radius"
117 (String.fromInt topLeft
180 (String.fromInt topLeft
@@ -168,7 +231,10 @@ shadow almostShade =
170 Internal.StyleClass Flag.shadows <|
233 Internal.StyleClass Flag.shadows <|
235+ (Internal.boxShadowName shade)
171− Internal.Single (Internal.boxShadowName shade) "box-shadow" (Internal.formatBoxShadow shade)
237+ (Internal.formatBoxShadow shade)
@@ -190,7 +256,10 @@ innerShadow almostShade =
192 Internal.StyleClass Flag.shadows <|
258 Internal.StyleClass Flag.shadows <|
260+ (Internal.boxShadowName shade)
193− Internal.Single (Internal.boxShadowName shade) "box-shadow" (Internal.formatBoxShadow shade)
262+ (Internal.formatBoxShadow shade)