aboutsummaryrefslogtreecommitdiff
path: root/css/Section.hs
blob: 4e236a3c992f18c6b14450838482994a1247b017 (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
{-# LANGUAGE OverloadedStrings #-}

module Section
  ( style
  ) where

import           Clay  hiding (style)

import qualified Color
import qualified Media

style :: Css
style = do

  ".Section__Container" ? do
    position relative
    margin (pct 0) (pct 10) (pct 0) (pct 10)

  ".Section__Title" ? do
    color Color.red
    fontFamily [] [monospace]
    fontWeight bold

    Media.desktop $ do
      lineHeight (px 50)
      fontSize (px 30)
      marginBottom (px 40)
      marginTop (px 55)

    Media.tablet $ do
      lineHeight (px 40)
      fontSize (px 27)
      marginBottom (px 35)
      marginTop (px 45)

    Media.mobile $ do
      lineHeight (px 30)
      fontSize (px 22)
      marginBottom (px 20)
      marginTop (px 35)

  ".Section__Entries" ? do
    paddingLeft (px 0)