admin header: replace déconnexion text with SVG sign-out icon

This commit is contained in:
Pontoporeia
2026-04-30 14:16:23 +02:00
parent 0f849468f7
commit e8bf89d184
3 changed files with 9 additions and 1 deletions

View File

@@ -29,10 +29,15 @@
.admin-body header nav ul [data-nav-logout] a {
opacity: 0.6;
display: flex;
align-items: center;
}
.admin-body header nav ul [data-nav-logout] a:hover {
opacity: 1;
}
.admin-body header nav ul [data-nav-logout] a svg {
display: block;
}
/* Public-site link icon in admin nav */
.admin-body header nav > a svg {

View File

@@ -30,7 +30,7 @@ $_thesisId = $_GET['id'] ?? null;
<li><a href="/admin/edit.php?id=<?= intval($_thesisId) ?>" <?= $_currentPage === 'edit.php' ? 'aria-current="page"' : '' ?>>Modifier</a></li>
<?php endif; ?>
<?php if ($_isAdmin && AdminAuth::hasPassword()): ?>
<li data-nav-logout><a href="/admin/logout.php">Déconnexion</a></li>
<li data-nav-logout><a href="/admin/logout.php" aria-label="Déconnexion"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 256 256"><path d="M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"></path></svg><span class="sr-only">Déconnexion</span></a></li>
<?php endif; ?>
</ul>
</nav>