aboutsummaryrefslogtreecommitdiff
path: root/src/server/Design/LoggedIn/Home/Pages.hs
blob: 71f32546cf4740602c6d2220c93f903941f376aa (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
{-# LANGUAGE OverloadedStrings #-}

module Design.LoggedIn.Home.Pages
  ( design
  ) where

import Clay

import qualified Design.Color as Color
import qualified Design.Helper as Helper
import qualified Design.Constants as Constants
import qualified Design.Media as Media

design :: Css
design = do
  textAlign (alignSide sideCenter)
  Helper.clearFix

  Media.desktop $ do
    padding (px 40) (px 30) (px 30) (px 30)

  Media.tablet $ do
    padding (px 30) (px 30) (px 30) (px 30)

  Media.mobile $ do
    padding (px 20) (px 0) (px 20) (px 0)
    lineHeight (px 40)

  ".page" ? do
    display inlineBlock
    fontWeight bold

    Media.desktop $ do
      Helper.button Color.white Color.dustyGray (px 50) Constants.focusDarken

    Media.tabletDesktop $ do
      border solid (px 2) Color.dustyGray
      marginRight (px 10)

    Media.tablet $ do
      Helper.button Color.white Color.dustyGray (px 40) Constants.focusDarken
      fontSize (px 15)

    Media.mobile $ do
      Helper.button Color.white Color.dustyGray (px 30) Constants.focusDarken
      fontSize (px 12)
      border solid (px 1) Color.dustyGray
      marginRight (px 5)

    ":not(.current)" & cursor pointer

    ".current" & do
      borderColor Color.chestnutRose
      color Color.chestnutRose