aboutsummaryrefslogtreecommitdiff
path: root/src/server/Design/Helper.hs
diff options
context:
space:
mode:
authorJoris2016-06-29 23:33:40 +0200
committerJoris2016-06-29 23:33:40 +0200
commitba33dfef23d070bfff92d6322808507c1b7d2814 (patch)
tree9258e6972d6110ee44d25295d6dc30bfa4113d90 /src/server/Design/Helper.hs
parent071b07463ab3f6894928b13553e98cd47c9ccb18 (diff)
downloadbudget-ba33dfef23d070bfff92d6322808507c1b7d2814.tar.gz
budget-ba33dfef23d070bfff92d6322808507c1b7d2814.tar.bz2
budget-ba33dfef23d070bfff92d6322808507c1b7d2814.zip
Responsive home page
Diffstat (limited to 'src/server/Design/Helper.hs')
-rw-r--r--src/server/Design/Helper.hs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/server/Design/Helper.hs b/src/server/Design/Helper.hs
index c8b3070..36cedb0 100644
--- a/src/server/Design/Helper.hs
+++ b/src/server/Design/Helper.hs
@@ -2,8 +2,8 @@
module Design.Helper
( clearFix
- , defaultButton
- , defaultInput
+ , button
+ , input
, iconButton
, centeredWithMargin
, verticalCentering
@@ -11,7 +11,7 @@ module Design.Helper
import Prelude hiding (span)
-import Clay
+import Clay hiding (button, input)
import Data.Monoid ((<>))
@@ -26,8 +26,8 @@ clearFix =
display D.table
clear both
-defaultButton :: Color -> Color -> Size a -> (Color -> Color) -> Css
-defaultButton backgroundCol textCol h focusOp = do
+button :: Color -> Color -> Size a -> (Color -> Color) -> Css
+button backgroundCol textCol h focusOp = do
backgroundColor backgroundCol
padding (px 0) (px 10) (px 0) (px 10)
color textCol
@@ -42,7 +42,7 @@ defaultButton backgroundCol textCol h focusOp = do
iconButton :: Color -> Color -> Size Abs -> (Color -> Color) -> Css
iconButton backgroundCol textCol h focusOp = do
- defaultButton backgroundCol textCol h focusOp
+ button backgroundCol textCol h focusOp
i <> span ? do
height h
lineHeight h
@@ -53,8 +53,8 @@ iconButton backgroundCol textCol h focusOp = do
marginLeft (px 15)
marginRight (px 20)
-defaultInput :: Integer -> Css
-defaultInput h = do
+input :: Integer -> Css
+input h = do
height (px h)
padding (px 10) (px 10) (px 10) (px 10)
borderRadius radius radius radius radius