-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path_print.scss
68 lines (63 loc) · 1.04 KB
/
_print.scss
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
@media print {
:root {
font-size: 12px;
}
main {
font-size: 16px;
margin-bottom: 0;
& > section {
margin-bottom: 1rem;
&:last-child {
margin-bottom: 0;
}
}
}
footer {
display: none;
}
h5 {
margin-bottom: 0.25rem;
}
ul {
margin-bottom: 0.25rem;
}
.experience,
.education {
ul,
details {
margin: 0.5rem 0;
font-size: small;
}
}
details {
& summary {
visibility: hidden;
transform: translate(-1em, -3.5px);
// 1em is to cancel out the hidden control
// No idea why 3.5px
& span {
text-decoration: none !important;
}
& > .svg-inline--fa {
visibility: visible;
position: absolute;
top: 0;
left: 1em;
}
}
&[open] summary {
position: absolute;
}
&:not([open]) summary {
& > span {
visibility: visible;
line-height: 0.9em;
padding-left: 1.5rem;
}
}
}
}
@page {
margin: 0;
size: A4 portrait;
}