blob: d4546f87187a83552cf1ec58a4d1855ab6df80b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{-# LANGUAGE OverloadedStrings #-}
module Design.Header
( design
) where
import Data.Monoid ((<>))
import Clay
import Design.Color as C
import Design.Constants
design :: Css
design = do
let headerHeight = px 80
let headerPadding = px 20
let darkenedRed = C.red +. 10
lineHeight headerHeight
height headerHeight
marginBottom blockMarginBottom
position relative
backgroundColor C.red
color C.white
".item" ? do
float floatLeft
paddingLeft headerPadding
paddingRight headerPadding
hover & backgroundColor darkenedRed
focus & backgroundColor darkenedRed
position relative
".current" & after & do
display block
content (stringContent "")
height (px 5)
width (pct 100)
position absolute
bottom (px 0)
left (px 0)
backgroundColor C.white
".title" ? do
height (pct 100)
fontSize (px 35)
textAlign (alignSide sideLeft)
paddingLeft headerPadding
paddingRight headerPadding
(".name" <> ".signOut") ? float floatRight
".name" ? do
paddingLeft headerPadding
paddingRight headerPadding
".signOut" ? do
height (pct 100)
fontSize iconFontSize
color C.white
|