-
Notifications
You must be signed in to change notification settings - Fork 0
/
cv.css
169 lines (142 loc) · 2.29 KB
/
cv.css
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
:root {
--font: 'Computer Modern';
--link-color: #31e;
--v-padding: 10mm;
--h-padding: 20mm;
}
@font-face {
font-family: 'Computer Modern';
src: url('cmu-regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Computer Modern';
src: url('cmu-italic.woff2') format('woff2');
font-weight: normal;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: 'Computer Modern';
src: url('cmu-bold.woff2') format('woff2');
font-weight: bold;
font-style: normal;
font-display: swap;
}
@page {
size: A4;
margin: 0;
}
* {
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
html {
font-size: 62.5%;
}
a {
color: var(--link-color);
}
:is(h1, h2) {
font-size: 1em;
margin: 0;
}
h2 {
padding-block-start: 1em;
margin-block-end: 1em;
border-top: 1px solid #ddd;
}
small {
color: #666;
font-size: 1em;
font-style: italic;
}
dt {
font-style: italic;
white-space: nowrap;
width: 15mm;
}
dd {
margin-inline-start: 0;
}
ul {
padding-inline-start: 0;
list-style-type: square;
}
:is(header, dd, footer) p {
margin: 0;
}
main {
flex-grow: 1;
}
.cv {
background-color: white;
color: black;
font-family: var(--font);
font-size: 1.2rem;
line-height: 1.5;
display: flex;
flex-direction: column;
width: 210mm;
height: 297mm;
padding: var(--v-padding) var(--h-padding);
margin: 0;
}
@media screen {
.cv {
position: relative;
margin: 1rem;
outline: 2px dashed #fcc;
}
.cv::before {
content: '';
position: absolute;
inset: var(--v-padding) var(--h-padding);
outline: 1px dashed #fcc;
pointer-events: none;
}
}
.cv__warning {
background-color: #fcc;
font-family: sans-serif;
position: absolute;
inset: -2px -2px auto -2px;
padding: 0.5rem 1rem;
margin-block: 0;
}
@media print {
.cv__warning {
display: none;
}
}
.cv__header {
margin-block-end: 1em;
}
.cv__header .cv__column {
margin-block: 1em;
}
.cv__footer {
margin-block-start: 1em;
}
.cv__section {
break-inside: avoid;
margin-block-end: 1em;
}
.cv__column {
columns: 2;
column-gap: 10mm;
align-items: start;
}
.cv__text {
text-align: justify;
}
.cv__list {
display: grid;
grid-template-columns: auto 1fr;
gap: 0.5em 2em;
margin: 0;
}