Header: properly center title
This commit is contained in:
parent
6983118f0c
commit
c870c2c7fc
1 changed files with 44 additions and 20 deletions
|
@ -4,7 +4,7 @@ import { SITE_TITLE } from '../consts';
|
|||
---
|
||||
|
||||
<header style="width: 100%" class="font-sans sticky top-0 md:static bg-white underline-offset-4 z-40">
|
||||
<nav class="hidden select-none mx-auto md:flex justify-between items-center px-6 py-3.5 text-md md:text-lg leading-6">
|
||||
<nav>
|
||||
<div class="flex items-center space-x-8">
|
||||
<a href="https://git.mami2.moe/akemi/noway.moe" target="_blank">
|
||||
<span class="sr-only">Forgejo</span>
|
||||
|
@ -48,3 +48,27 @@ import { SITE_TITLE } from '../consts';
|
|||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<style>
|
||||
header nav {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
padding: 14px 24px;
|
||||
font-size: 1.125rem;
|
||||
user-select: none;
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
}
|
||||
header nav div {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
}
|
||||
header nav div:first-child {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
header nav div:last-child {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue