Correção do Botão de esconderbarra lateral principal agora mostrando o botão quando se passa o mouse

This commit is contained in:
2026-06-30 17:57:29 -03:00
parent ff9614d84c
commit 96d01aa52a
3 changed files with 15 additions and 12 deletions

View File

@@ -71,14 +71,17 @@
</div>
</aside>
<%# Botão flutuante (desktop) — esconde/mostra a sidebar do site inteiro %>
<button id="sidebar-toggle-btn" type="button" onclick="toggleSidebarCollapse()"
class="hidden md:flex fixed top-1/2 -translate-y-1/2 z-40 items-center justify-center
w-7 h-16 bg-[#1a1a1a] border border-[#2a2a2a] hover:border-orange-500
text-orange-500 rounded-r-lg shadow-lg"
title="Esconder/mostrar menu" aria-label="Esconder ou mostrar o menu">
<span id="sidebar-toggle-icon" class="text-lg leading-none">◀</span>
</button>
<%# Botão flutuante (desktop) — esconde/mostra a sidebar do site inteiro.
Fica invisível e só aparece quando o mouse chega perto (zona de hover). %>
<div id="sidebar-edge" class="hidden md:flex group fixed top-1/2 -translate-y-1/2 z-40 h-32 w-12 items-center">
<button id="sidebar-toggle-btn" type="button" onclick="toggleSidebarCollapse()"
class="flex items-center justify-center w-7 h-16 bg-[#1a1a1a] border border-[#2a2a2a]
hover:border-orange-500 text-orange-500 rounded-r-lg shadow-lg
opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity duration-200"
title="Esconder/mostrar menu" aria-label="Esconder ou mostrar o menu">
<span id="sidebar-toggle-icon" class="text-lg leading-none">◀</span>
</button>
</div>
<%# Topbar mobile %>
<header class="md:hidden fixed top-0 left-0 right-0 z-30 bg-[#111111] border-b border-[#2a2a2a] px-4 py-3 flex items-center justify-between">