1
0

Update styles

This commit is contained in:
Serghei Cebotari 2023-12-02 23:21:28 +03:00
parent 0e0251936b
commit 48b9b6ce8a
5 changed files with 20 additions and 7 deletions

View File

@ -1,6 +1,6 @@
<div style="text-align: center;">
<div class="align-center">
<h1 class="name">{{ .Site.Params.Name }}</h1>
<div style="font-size: small;">
<div class="font-small">
{{ with .Site.Params.Phone }}
<a href="tel:{{ . }}">{{ . }}</a><span> |</span>
{{ end }}

View File

@ -5,12 +5,12 @@
{{ range sort (.Pages) "Params.end_date" "desc" }}
<tr>
<td><strong>{{ .Title }}</strong></td>
<td style="text-align: right;">{{ with .Params.location}}{{ . }}{{ end }}</td>
<td class="align-right">{{ with .Params.location}}{{ . }}{{ end }}</td>
</tr>
<tr>
<td><em>{{ with .Params.degree}}{{ . }}{{ end }}</em>
</td>
<td style="text-align: right;"><em>
<td class="align-right"><em>
{{ with .Params.start_date }}{{ time.Format "Jan 2006" . }}{{ end }}
{{ with .Params.end_date }}{{ time.Format "Jan 2006" . }}{{ else }}{{ "Present" }}{{ end }}</em>
</td>

View File

@ -5,14 +5,14 @@
<tbody>
<tr>
<td><strong>{{ .Title }}</strong></td>
<td style="text-align: right;">
<td class="align-right">
{{ with .Params.start_date }}{{ time.Format "Jan 2006" . }}{{ end }}
{{ with .Params.end_date }}{{ time.Format "Jan 2006" . }}{{ else }}{{ "Present" }}{{ end }}
</td>
</tr>
<tr>
<td><em>{{with .Params.workplace}}{{ . }}{{ end }}</em></td>
<td style="text-align: right;"><em>{{ with .Params.location}}{{ . }}{{ end }}</em></td>
<td class="align-right"><em>{{ with .Params.location}}{{ . }}{{ end }}</em></td>
</tr>
</tbody>
</table>

View File

@ -7,7 +7,7 @@
<td><strong>{{ .Title }} </strong><span>|</span>
<em>{{ range $i, $e := .Params.tags -}}{{- if $i -}}, {{ end -}}{{ . }}{{- end -}}</em>
</td>
<td style="text-align: right;">
<td class="align-right">
{{ with .Params.start_date }}{{ time.Format "Jan 2006" . }}{{ end }}
{{ with .Params.end_date }}{{ time.Format "Jan 2006" . }}{{ else }}{{ "Present" }}{{ end }}
</td>

View File

@ -32,12 +32,24 @@
font-display: swap;
}
.font-small {
font-size: small;
}
body {
font-family: 'Computer Modern Serif', serif;
font-size: 13pt;
line-height: 100%;
}
.align-center {
text-align: center;
}
.align-right {
text-align: right
}
.page {
background: white;
display: block;
@ -95,6 +107,7 @@
}
@media print {
body,
.page {
background: white;