aboutsummaryrefslogtreecommitdiff
path: root/css/Resume.hs
blob: ec7af62607b91862eed37ece3496a9e7f29ed5e5 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{-# LANGUAGE OverloadedStrings #-}

module Resume
  ( style
  ) where

import           Clay  hiding (style)

import qualified Color
import qualified Media
import qualified Size

style :: Css
style = do

  ".Resume__NameAndPrint" ? do
    display flex
    justifyContent spaceBetween

  ".Resume__Print" ? do
    color Color.red
    transition "all" (ms 100) ease (sec 0)
    hover & transform (scale 1.2 1.2)
    marginLeft (px 10)

    Media.desktop $ do
      lineHeight (px 50)
      height (px 50)
      fontSize (px 40)

    Media.tablet $ do
      lineHeight (px 40)
      height (px 40)
      fontSize (px 30)

    Media.mobile $ do
      lineHeight (px 30)
      height (px 30)
      fontSize (px 20)

  ".Resume__GitLabLink" ? do
    Media.desktop $ marginLeft (px 30)
    Media.tablet $ marginLeft (px 20)

  ".Resume__Container" ? do
    Media.desktop $ do
      marginBottom (px 40)
      marginLeft (px 30)
    Media.tablet $ do
      marginBottom (px 40)
      marginLeft (px 20)
    Media.mobile $
      marginBottom (px 25)

  ".Resume__Name" <> ".Resume__Location" <> ".Resume__Description" ? do
    Size.lineHeight

  ".Resume__Name" ? do
    backgroundColor Color.orange
    color Color.white
    padding (px 0) (px 10) (px 0) (px 10)
    sym borderRadius (px 2)

    Media.desktop $ do
      display inlineBlock
      marginBottom (px 10)

    Media.mobileTablet $
      marginBottom (px 10)

  ".Resume__Time" ? do
    fontStyle italic
    marginBottom (px 10)

    Media.desktop $ do
      display inlineBlock
      marginLeft (px 15)

    Media.mobile $
      fontSize (pct 90)

  ".Resume__Location" ? do
    color Color.green
    Size.tabletMarginBottom
    Media.mobile $ do
      fontSize (pct 90)
      marginBottom (px 10)