aboutsummaryrefslogtreecommitdiff
path: root/src/server/Design/Global.hs
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-08-12 22:40:21 +0200
committerJoris Guyonvarch2015-08-12 22:40:21 +0200
commit398477cb76fc8346a41afb11fc65d97eb24ba06e (patch)
treeabc81551348a15ad83e7ca247c4d95fb13bfb195 /src/server/Design/Global.hs
parent999e05703f028ff21232b501f4af8d1b246ea3de (diff)
downloadbudget-398477cb76fc8346a41afb11fc65d97eb24ba06e.tar.gz
budget-398477cb76fc8346a41afb11fc65d97eb24ba06e.tar.bz2
budget-398477cb76fc8346a41afb11fc65d97eb24ba06e.zip
Input and label design glued together
Diffstat (limited to 'src/server/Design/Global.hs')
-rw-r--r--src/server/Design/Global.hs15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/server/Design/Global.hs b/src/server/Design/Global.hs
index 59e4171..15d3196 100644
--- a/src/server/Design/Global.hs
+++ b/src/server/Design/Global.hs
@@ -64,14 +64,16 @@ global = do
width (pct 49)
label ? do
display inlineBlock
- width (pct 20)
+ width (px 60)
textAlign (alignSide sideCenter)
- color C.brown
+ backgroundColor C.darkgrey
+ color C.white
height (px inputHeight)
lineHeight (px inputHeight)
fontSize (px 22)
verticalAlign middle
input ? defaultInput inputHeight
+ "input:focus + label" ? backgroundColor C.grey
".name" ? do
float floatLeft
@@ -86,7 +88,10 @@ global = do
width (pct 20)
height (px inputHeight)
- input # ".error" ? borderColor C.red
+ ".error" ? do
+ input ? borderColor C.red
+ label ? backgroundColor C.red
+
".errorMessage" ? do
position absolute
color C.red
@@ -156,6 +161,6 @@ defaultInput inputHeight = do
height (px inputHeight)
padding (px 10) (px 10) (px 10) (px 10)
borderRadius (px 0) (px 0) (px 0) (px 0)
- border solid (px 1) C.grey
- focus & borderColor C.green
+ border solid (px 1) C.darkgrey
+ focus & borderColor C.grey
verticalAlign middle