1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 18:05:32 -04:00

fix AMP footer spacing (closes #16)

This commit is contained in:
2019-11-19 18:58:03 -05:00
parent e79baa0175
commit a432512d79

View File

@@ -99,17 +99,25 @@
text-align: right; text-align: right;
} }
footer { footer {
width: 100%; display: flex;
justify-content: space-between;
padding: 20px; padding: 20px;
border-top: 1px solid #bbbbbb; border-top: 1px solid #bbbbbb;
color: #555; color: #555;
line-height: 1.5rem;
} }
footer a { footer a {
text-decoration: none; text-decoration: none;
} }
footer a.back-to-top { footer div {
position: absolute; vertical-align: middle;
right: 20px; height: 100%;
}
div.left {
text-align: left;
}
div.right {
text-align: right;
} }
code { code {
font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", "Courier", monospace; font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", "Courier", monospace;
@@ -168,8 +176,8 @@
{{ .Content }} {{ .Content }}
</article> </article>
<footer> <footer>
Content by <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>, licensed under <a href="https://creativecommons.org/licenses/by/4.0/" title="Creative Commons Attribution 4.0 International" target="_blank" rel="noopener noreferrer nofollow">CC-BY-4.0</a>. <div class="left">Content by <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>, licensed under <a href="https://creativecommons.org/licenses/by/4.0/" title="Creative Commons Attribution 4.0 International" target="_blank" rel="noopener noreferrer nofollow">CC-BY-4.0</a>.</div>
<a class="back-to-top" href="#top">↑ Back to top.</a> <div class="right"><a class="back-to-top" href="#top">↑ Back to top.</a></div>
</footer> </footer>
</body> </body>
</html> </html>