mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
feat(admin): nav logo links back to public site; all nav links right-aligned
templates/admin/head.php:
- admin-nav__logo now href="/" with target="_blank" rel="noopener noreferrer"
- Left arrow prefix (← via ←, aria-hidden) signals leaving admin
- sr-only suffix "(site public, nouvel onglet)" for screen readers
public/admin/login.php:
- Same treatment on the standalone login nav (was a bare <span>)
public/assets/css/admin.css:
- admin-nav__list: flex:1 removed; margin-left:auto added
→ entire link list now right-justified inside the nav bar,
mirroring the layout of the public site header
- .admin-nav__logout { margin-left:auto } removed (no longer needed;
logout is just the last item in a right-aligned list)
This commit is contained in:
@@ -50,12 +50,11 @@ html, body {
|
||||
/* Nav link list */
|
||||
.admin-nav__list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
margin: 0 0 0 auto;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2.5rem;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.admin-nav__list a {
|
||||
@@ -79,11 +78,7 @@ html, body {
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
|
||||
/* Logout link pushed to the far right */
|
||||
.admin-nav__logout {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/* Logout link — visually subdued, last in list */
|
||||
.admin-nav__logout a {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user