diff options
author | Joris | 2016-06-12 23:54:17 +0200 |
---|---|---|
committer | Joris | 2016-06-12 23:54:17 +0200 |
commit | 6a0c5087f716ed6c876a666db6573491bfd3e094 (patch) | |
tree | bf439109143c7a1749c2661fc8b805b83a993027 /src/server/Design/LoggedIn | |
parent | 38896af4281d2e191cbde15836a23e4c0274fff6 (diff) |
Design income form
Diffstat (limited to 'src/server/Design/LoggedIn')
-rw-r--r-- | src/server/Design/LoggedIn/Home/Add.hs | 3 | ||||
-rw-r--r-- | src/server/Design/LoggedIn/Income.hs | 18 |
2 files changed, 19 insertions, 2 deletions
diff --git a/src/server/Design/LoggedIn/Home/Add.hs b/src/server/Design/LoggedIn/Home/Add.hs index f4e001f..6856af9 100644 --- a/src/server/Design/LoggedIn/Home/Add.hs +++ b/src/server/Design/LoggedIn/Home/Add.hs @@ -40,7 +40,8 @@ design = do defaultInput inputHeight borderRadius radius (px 0) (px 0) radius "width" -: "calc(100% - 40px)" - "input:focus + label" ? backgroundColor Color.silver + input # focus |+ label ? + backgroundColor Color.silver hover & do input ? borderColor Color.silver label ? backgroundColor Color.silver diff --git a/src/server/Design/LoggedIn/Income.hs b/src/server/Design/LoggedIn/Income.hs index 99626ba..bebd136 100644 --- a/src/server/Design/LoggedIn/Income.hs +++ b/src/server/Design/LoggedIn/Income.hs @@ -6,8 +6,24 @@ module Design.LoggedIn.Income import Clay +import qualified Design.Helper as Helper +import qualified Design.Constants as Constants +import qualified Design.Color as Color + design :: Css design = do + h1 ? paddingBottom (px 0) + form ? do - "margin-bottom" -: "3vh" + display flex + "alignItems" -: "center" + "margin-bottom" -: "4vh" + ".textInput" ? marginRight (px 30) + + button ? do + Helper.defaultButton Color.chestnutRose Color.white (px Constants.inputHeight) Constants.focusLighten + marginTop (px 3) + + ul # ".incomes" ? button ? + marginLeft (px 12) |