Compare commits

...

2 Commits

Author SHA1 Message Date
jordi fita mas 16e80b5ae0 Keep header fixed, and remove footer
Now that the navigation is inside the header, and the header is not
as tall as it once was, it makes sense to keep it always on the top of
the page, scrolling only within <main>, since it is the main menu, and
fairly used to switch from screen to screen.

I removed the footer because now it would be always visible, and i was
a bit weary of having the application name repeated that much.  It was
there mainly for the version number, that helps me check i installed the
application’s latest version on the server, but that role can also be
filled with meta tags.

Closes #97.
2024-09-05 14:37:30 +02:00
jordi fita mas 36423c8636 Shrink user menu’s button and application title
They were too big now that we have the main navigation in the header.

This is part of #98.
2024-09-05 14:23:22 +02:00
2 changed files with 9 additions and 12 deletions

View File

@ -173,6 +173,8 @@ body {
font-size: 1.6rem;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
display: flex;
flex-direction: column;
}
body, dialog {
@ -311,11 +313,7 @@ header nav a[aria-current] {
main {
padding: 2rem 3rem;
}
body > footer {
border-top: 1px solid var(--numerus--color--light-gray);
padding: .25em 3rem;
overflow-y: scroll;
}
.input {
@ -528,8 +526,8 @@ ul[role="menu"].action-menu li i[class^='ri-'] {
}
#profile-menu summary {
width: 7rem;
height: 7rem;
width: 4.5rem;
height: 4.5rem;
margin: 1rem 0;
border-radius: 50%;
border: none;

View File

@ -3,6 +3,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="application-name" content="Numerus">
<meta name="generator" content="Numerus {{ numerusVersion }}">
<title>{{ template "title" . }} — Numerus</title>
<link rel="stylesheet" type="text/css" media="screen" href="/static/numerus.css?v={{ numerusVersion }}">
<script src="/static/htmx@1.9.2.min.js"></script>
@ -12,7 +14,7 @@
</head>
<body class="filters-visible">
<header>
<h1><img src="/static/numerus.svg" alt="Numerus" width="261" height="33"></h1>
<h1><img src="/static/numerus.svg" alt="Numerus" width="168" height="21"></h1>
<nav aria-label="{{( pgettext "Main" "title" )}}" data-hx-target="main" data-hx-boost="true">
<ul>
<li><a{{if requestURIMatches (companyURI "/") }} aria-current="page"{{ end }} href="{{ companyURI "/" }}">{{( pgettext "Dashboard" "nav" )}}</a></li>
@ -26,7 +28,7 @@
</nav>
<details id="profile-menu" class="menu">
<summary aria-label="{{( gettext "Profile menu" )}}">
<i class="ri-user-6-line ri-3x"></i>
<i class="ri-user-6-line ri-2x"></i>
</summary>
<ul role="menu" class="action-menu" data-hx-push-url="false" data-hx-swap="beforeend">
<li role="presentation">
@ -87,9 +89,6 @@
{{- template "breadcrumbs" . }}
{{- template "content" . }}
</main>
<footer>
<p><small>{{printf ( gettext "<a href=\"https://numerus.cat/\">Numerus</a> Version: %s") numerusVersion | unsafe}}</small></p>
</footer>
</body>
<div x-data="snackbar">
<div x-show="show"