Improved header spacing and centering scope pills on small screens.

This commit is contained in:
DebaucheryLibrarian 2024-03-18 02:00:04 +01:00
parent 26d9a8621d
commit c2dfdcd350
2 changed files with 33 additions and 4 deletions

View File

@ -120,8 +120,11 @@
> >
<a <a
:href="`/login?r=${encodeURIComponent(currentPath)}`" :href="`/login?r=${encodeURIComponent(currentPath)}`"
class="login button button-submit" class="login button button-submit nolink"
>Log in</a> >
<span class="login-text">Log in</span>
<Icon icon="enter" />
</a>
</div> </div>
</div> </div>
</header> </header>
@ -172,7 +175,6 @@ async function logout() {
.logo { .logo {
display: flex; display: flex;
width: 8rem; width: 8rem;
height: 3rem;
box-sizing: border-box; box-sizing: border-box;
padding: .75rem; padding: .75rem;
margin-right: 1rem; margin-right: 1rem;
@ -282,7 +284,14 @@ async function logout() {
} }
.login { .login {
text-decoration: none; display: flex;
align-items: center;
.icon {
display: none;
padding: 0;
fill: var(--text-light);
}
} }
.menu { .menu {
@ -348,5 +357,21 @@ async function logout() {
width: 0; width: 0;
flex-grow: 1; flex-grow: 1;
} }
.logo {
margin-right: .75rem;
}
.userpanel {
padding-left: 1rem;
}
.login-text {
display: none;
}
.login .icon {
display: block;
}
} }
</style> </style>

View File

@ -339,6 +339,10 @@ function updateFilter(prop, value, reload = true) {
.scenes { .scenes {
grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
} }
.scopes {
justify-content: center;
}
} }
@media(--small-20) { @media(--small-20) {