diff options
author | Joris | 2016-06-25 22:51:12 +0200 |
---|---|---|
committer | Joris | 2016-06-25 22:51:12 +0200 |
commit | 0886d5916ae28e2a0d1d5c70fb81842a6d0dc70f (patch) | |
tree | 8016750c80cac177d2bf315b2f59605f3a8f80d3 /src/server/Design/Form.hs | |
parent | 70720548c9af024dbb6080638ac8e5470c2213eb (diff) | |
download | budget-0886d5916ae28e2a0d1d5c70fb81842a6d0dc70f.tar.gz budget-0886d5916ae28e2a0d1d5c70fb81842a6d0dc70f.tar.bz2 budget-0886d5916ae28e2a0d1d5c70fb81842a6d0dc70f.zip |
Add a remove icon to empty a input text field
Diffstat (limited to 'src/server/Design/Form.hs')
-rw-r--r-- | src/server/Design/Form.hs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/server/Design/Form.hs b/src/server/Design/Form.hs index c2537f1..00de12d 100644 --- a/src/server/Design/Form.hs +++ b/src/server/Design/Form.hs @@ -16,6 +16,7 @@ design = do let inputHeight = 30 let inputTop = 22 let inputPaddingBottom = 3 + let inputZIndex = 1 ".textInput" ? do position relative @@ -25,7 +26,7 @@ design = do input ? do position relative - zIndex 1 + zIndex inputZIndex backgroundColor transparent paddingBottom (px inputPaddingBottom) borderStyle none @@ -45,6 +46,12 @@ design = do color Color.silver transition "all" (sec 0.2) easeIn (sec 0) + button ? do + position absolute + right (px 0) + top (px 27) + zIndex inputZIndex + (input # ".filled" |+ label) <> (input # focus |+ label) ? do top (px 0) fontSize (pct 80) |