summaryrefslogtreecommitdiffstats
path: root/app/print.styl
blob: 8642f619967e93ecbb1d4b435652ef6078bdc014 (plain) (blame)
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
@page {
  margin-left: 1cm
  margin-right: 1cm
  padding-top: 1cm
  padding-bottom: 0.3cm
}

body {
  font-size: 9pt
}

.section-header {
  font-size: 18pt
  margin-bottom: -0.6em
}

@require "stylesheets/print/header.styl"
@require "stylesheets/print/summary.styl"
@require "stylesheets/print/skills.styl"

.work {
  // avoid page breaks inside a work experience section
  article {
    page-break-inside: avoid
  }

  article > .info {
    // company
    h2 {
      margin-top: 0.8em
    }
  }
}

.writing, .projects {
  // avoid page breaks inside the writing and projects sections
  page-break-inside: avoid

  article {
    // title
    h2 {
      margin-top: 1.2em
    }

    // description
    p {
      margin-bottom: -0.4em
    }
  }
}

.education {
  // avoid page breaks inside the education section
  page-break-inside: avoid

  article {
    // remove the extra space added for the website
    margin-bottom: 0

    // title
    h2 {
      margin-top: 1.2em
    }
  }
}

footer {
  display: block
  position: fixed
  bottom: 0;
  font-size: 5pt
}

footer:after {
  color: #F7F7F7
  content: "Disclaimer: generated from https://a14m.me"
}