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> <h1 class="name">{{ .Site.Params.Name }}</h1>
<div style="font-size: small;"> <div class="font-small">
{{ with .Site.Params.Phone }} {{ with .Site.Params.Phone }}
<a href="tel:{{ . }}">{{ . }}</a><span> |</span> <a href="tel:{{ . }}">{{ . }}</a><span> |</span>
{{ end }} {{ end }}

View File

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

View File

@ -5,14 +5,14 @@
<tbody> <tbody>
<tr> <tr>
<td><strong>{{ .Title }}</strong></td> <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.start_date }}{{ time.Format "Jan 2006" . }}{{ end }}
{{ with .Params.end_date }}{{ time.Format "Jan 2006" . }}{{ else }}{{ "Present" }}{{ end }} {{ with .Params.end_date }}{{ time.Format "Jan 2006" . }}{{ else }}{{ "Present" }}{{ end }}
</td> </td>
</tr> </tr>
<tr> <tr>
<td><em>{{with .Params.workplace}}{{ . }}{{ end }}</em></td> <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> </tr>
</tbody> </tbody>
</table> </table>

View File

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

View File

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