aboutsummaryrefslogtreecommitdiff
path: root/src/server/Design/Global.hs
blob: 3408b22c98660c09fb27a454bd567a5f006cefcd (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
{-# LANGUAGE OverloadedStrings #-}

module Design.Global
  ( globalDesign
  ) where

import Clay

import Data.Text.Lazy (Text)

import Design.Color as C

globalDesign :: Text
globalDesign = renderWith compact [] global

global :: Css
global = do

  header ?
    h1 ? do
      fontSize (px 40)
      textAlign (alignSide sideCenter)
      margin (px 30) (px 0) (px 30) (px 0)
      color C.brown

  table ? do
    width (pct 50)
    textAlign (alignSide (sideCenter))
    "border-spacing" -: "10 px"