{-# LANGUAGE OverloadedStrings #-} module Design.Header ( headerDesign ) where import Data.Monoid ((<>)) import Clay import Design.Color as C import Design.Constants headerDesign :: Css headerDesign = header ? 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 ".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