Improve print CSS

This commit is contained in:
Jan-Lukas Else 2021-06-24 19:09:59 +02:00
parent 6bc70f0a0e
commit 95a7ff134c
4 changed files with 28 additions and 10 deletions

View File

@ -245,7 +245,18 @@ footer {
nav, nav,
#post-actions, #post-actions,
#related, #related,
#interactions { #interactions,
#posteditactions,
#tor {
display: none; display: none;
} }
a {
text-decoration: none;
}
// Show link
.e-content a[href]:after {
content: " [" attr(href) "]";
}
} }

View File

@ -211,7 +211,17 @@ footer * {
nav, nav,
#post-actions, #post-actions,
#related, #related,
#interactions { #interactions,
#posteditactions,
#tor {
display: none; display: none;
} }
a {
text-decoration: none;
}
.e-content a[href]:after {
content: " [" attr(href) "]";
}
} }

View File

@ -1,18 +1,15 @@
{{ define "footer" }} {{ define "footer" }}
<footer> <footer>
{{ with index .Blog.Menus "footer" }} {{ with index .Blog.Menus "footer" }}
<p> <nav>{{ range $i, $item := .Items }}{{ if ne $i 0 }} &bull; {{ end }}<a href="{{ $item.Link }}">{{ $item.Title }}</a>{{ end }}
{{ range $i, $item := .Items }} </nav>
{{ if ne $i 0 }} &bull; {{ end }}<a href="{{ $item.Link }}">{{ $item.Title }}</a>
{{ end }}
</p>
{{ end }} {{ end }}
<p translate="no">&copy; {{ dateformat now "2006" }} {{ with .User.Name }}{{ . }}{{ else }}{{ .Blog.Title }}{{ end }}</p> <p translate="no">&copy; {{ dateformat now "2006" }} {{ with .User.Name }}{{ . }}{{ else }}{{ .Blog.Title }}{{ end }}</p>
{{ if .TorUsed }} {{ if .TorUsed }}
<p>🔐 {{ string .Blog.Lang "connectedviator" }}</p> <p id="tor">🔐 {{ string .Blog.Lang "connectedviator" }}</p>
{{ else }} {{ else }}
{{ if .TorAddress }} {{ if .TorAddress }}
<p>🔓 <a href="{{ .TorAddress }}">{{ string .Blog.Lang "connectviator" }}</a> <a href="https://www.torproject.org/" target="_blank" rel="nofollow noopener noreferrer">{{ string .Blog.Lang "whatistor" }}</a></p> <p id="tor">🔓 <a href="{{ .TorAddress }}">{{ string .Blog.Lang "connectviator" }}</a> <a href="https://www.torproject.org/" target="_blank" rel="nofollow noopener noreferrer">{{ string .Blog.Lang "whatistor" }}</a></p>
{{ end }} {{ end }}
{{ end }} {{ end }}
</footer> </footer>

View File

@ -28,7 +28,7 @@
{{ include "author" . }} {{ include "author" . }}
</main> </main>
{{ if .LoggedIn }} {{ if .LoggedIn }}
<div class="p"> <div id="posteditactions" class="p">
<form class="in" method="post" action="{{ .Blog.RelativePath "/editor" }}#update"> <form class="in" method="post" action="{{ .Blog.RelativePath "/editor" }}#update">
<input type="hidden" name="editoraction" value="loadupdate"> <input type="hidden" name="editoraction" value="loadupdate">
<input type="hidden" name="url" value="{{ .Canonical }}"> <input type="hidden" name="url" value="{{ .Canonical }}">