Try to improve the style and position of the Upload button
This commit is contained in:
parent
ce82e9b147
commit
1db57c8d3b
3 changed files with 19 additions and 9 deletions
File diff suppressed because one or more lines are too long
|
@ -40,6 +40,16 @@ nav {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
background: #171717;
|
background: #171717;
|
||||||
border-bottom: 1px solid #272727;
|
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 {
|
main {
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<body>
|
<body>
|
||||||
<nav>
|
<nav>
|
||||||
<a href="/">Tube</a>
|
<a href="/">Tube</a>
|
||||||
<a href="/upload">Upload</a>
|
<a class="centered" href="/upload">Upload</a>
|
||||||
</nav>
|
</nav>
|
||||||
<main>
|
<main>
|
||||||
{{template "content" .}}
|
{{template "content" .}}
|
||||||
|
|
Loading…
Reference in a new issue