git.iko.soy/typeable/elm-ui
on master help sign in
resolves #103
commitdf183055635bed46139a2662670e978a0776618a authorMatthew Griffith <mdg.griffith@gmail.com> dateSat 6 Jul 2019, 08:12 (7 years ago) parent99c5096
2 files changed+17−5
src/Element.elm+9−1 src/Internal/Style.elm+8−4
src/Element.elm+9−1
@@ -1143,6 +1143,8 @@ link attrs { url, label } =
11431143 (classes.contentCenterX
11441144 ++ " "
11451145 ++ classes.contentCenterY
1146+ ++ " "
1147+ ++ classes.link
11461148 )
11471149 :: attrs
11481150 )
@@ -1166,7 +1168,13 @@ newTabLink attrs { url, label } =
11661168 :: Internal.Attr (Html.Attributes.target "_blank")
11671169 :: width shrink
11681170 :: height shrink
1169− :: Internal.htmlClass (classes.contentCenterX ++ " " ++ classes.contentCenterY)
1171+ :: Internal.htmlClass
1172+ (classes.contentCenterX
1173+ ++ " "
1174+ ++ classes.contentCenterY
1175+ ++ " "
1176+ ++ classes.link
1177+ )
11701178 :: attrs
11711179 )
11721180 (Internal.Unkeyed [ label ])
src/Internal/Style.elm+8−4
@@ -253,6 +253,9 @@ classes =
253253 , inputText = "it"
254254 , inputMultiline = "iml"
255255 , inputMultilineParent = "imlp"
256+
257+ -- link
258+ , link = "lnk"
256259 }
257260
258261
@@ -1222,15 +1225,16 @@ baseSheet =
12221225 , Descriptor (dot classes.widthExact)
12231226 [ Prop "flex-basis" "auto"
12241227 ]
1228+ , Descriptor (dot classes.link)
1229+ [ Prop "flex-basis" "auto"
1230+ ]
12251231 ]
12261232 , 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
12291234 Prop "align-self" "stretch !important"
12301235 ]
12311236 , 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
12341238 Prop "align-self" "stretch !important"
12351239 ]
12361240