diff options
author | Joris | 2019-10-06 19:41:17 +0200 |
---|---|---|
committer | Joris | 2019-10-06 19:41:17 +0200 |
commit | 2cbd43c3a0f0640776a4e7c7425b3210d2e6632b (patch) | |
tree | dd832cf562c1eb9f41f5909c16c5cf3e55386b97 /server | |
parent | f4c5df9e1b1afddeb5a482d4fbe654d0b321159c (diff) |
Make input label clickable again
Diffstat (limited to 'server')
-rw-r--r-- | server/src/Design/Form.hs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/server/src/Design/Form.hs b/server/src/Design/Form.hs index 0f236f7..506343d 100644 --- a/server/src/Design/Form.hs +++ b/server/src/Design/Form.hs @@ -15,10 +15,6 @@ design = do let inputTop = 22 let inputPaddingBottom = 3 - label ? do - cursor pointer - color Color.silver - ".textInput" ? do position relative marginBottom (em 2) @@ -40,7 +36,9 @@ design = do borderWidth (px 2) paddingBottom (px $ inputPaddingBottom - 1) - label ? do + ".label" ? do + zIndex (-1) + color Color.silver lineHeight (px inputHeight) position absolute top (px inputTop) @@ -56,7 +54,7 @@ design = do hover & svg ? "path" ? ("fill" -: Color.toString (Color.silver -. 25)) - (input # ".filled" |+ label) <> (input # focus |+ label) ? do + (input # ".filled" |+ ".label") <> (input # focus |+ ".label") ? do top (px 0) fontSize (pct 80) @@ -81,7 +79,8 @@ design = do ".selectInput" ? do marginBottom (em 2) - label ? do + ".label" ? do + color Color.silver display block marginBottom (px 10) fontSize (pct 80) |