git.iko.soy/typeable/elm-ui
on master help sign in
resolves #103
df18305Matthew Griffith
src/Element.elm+9−1
@@ -1143,6 +1143,8 @@ link attrs { url, label } =
1143 (classes.contentCenterX
1143 (classes.contentCenterX
1144 ++ " "
1144 ++ " "
1145 ++ classes.contentCenterY
1145 ++ classes.contentCenterY
1146+ ++ " "
1147+ ++ classes.link
1146 )
1148 )
1147 :: attrs
1149 :: attrs
1148 )
1150 )
@@ -1166,7 +1168,13 @@ newTabLink attrs { url, label } =
1166 :: Internal.Attr (Html.Attributes.target "_blank")
1168 :: Internal.Attr (Html.Attributes.target "_blank")
1167 :: width shrink
1169 :: width shrink
1168 :: height shrink
1170 :: height shrink
1171+ :: Internal.htmlClass
1169− :: Internal.htmlClass (classes.contentCenterX ++ " " ++ classes.contentCenterY)
1172+ (classes.contentCenterX
1173+ ++ " "
1174+ ++ classes.contentCenterY
1175+ ++ " "
1176+ ++ classes.link
1177+ )
1170 :: attrs
1178 :: attrs
1171 )
1179 )
1172 (Internal.Unkeyed [ label ])
1180 (Internal.Unkeyed [ label ])
src/Internal/Style.elm+8−4
@@ -253,6 +253,9 @@ classes =
253 , inputText = "it"
253 , inputText = "it"
254 , inputMultiline = "iml"
254 , inputMultiline = "iml"
255 , inputMultilineParent = "imlp"
255 , inputMultilineParent = "imlp"
256+
257+ -- link
258+ , link = "lnk"
256 }
259 }
257
260
258
261
@@ -1222,15 +1225,16 @@ baseSheet =
1222 , Descriptor (dot classes.widthExact)
1225 , Descriptor (dot classes.widthExact)
1223 [ Prop "flex-basis" "auto"
1226 [ Prop "flex-basis" "auto"
1224 ]
1227 ]
1228+ , Descriptor (dot classes.link)
1229+ [ Prop "flex-basis" "auto"
1230+ ]
1225 ]
1231 ]
1226 , Child (dot classes.heightFill)
1232 , Child (dot classes.heightFill)
1227− [ --Prop "height" "100%"
1228− -- alignTop, centerY, and alignBottom need to be disabled
1233+ [ -- alignTop, centerY, and alignBottom need to be disabled
1229 Prop "align-self" "stretch !important"
1234 Prop "align-self" "stretch !important"
1230 ]
1235 ]
1231 , Child (dot classes.heightFillPortion)
1236 , Child (dot classes.heightFillPortion)
1232− [ --Prop "height" "100%"
1233− -- alignTop, centerY, and alignBottom need to be disabled
1237+ [ -- alignTop, centerY, and alignBottom need to be disabled
1234 Prop "align-self" "stretch !important"
1238 Prop "align-self" "stretch !important"
1235 ]
1239 ]
1236
1240