Try to improve the style and position of the Upload button

This commit is contained in:
James Mills 2020-03-22 23:40:13 +10:00
parent ce82e9b147
commit 1db57c8d3b
No known key found for this signature in database
GPG key ID: AC4C014F1440EBD6
3 changed files with 19 additions and 9 deletions

File diff suppressed because one or more lines are too long

View file

@ -40,6 +40,16 @@ nav {
height: 50px;
background: #171717;
border-bottom: 1px solid #272727;
position: relative;
overflow: hidden;
}
nav a.centered {
float: none;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
main {

View file

@ -14,7 +14,7 @@
<body>
<nav>
<a href="/">Tube</a>
<a href="/upload">Upload</a>
<a class="centered" href="/upload">Upload</a>
</nav>
<main>
{{template "content" .}}